org.topbraidcomposer.editors.forms.layout.actions
Interface IControlAction

All Superinterfaces:
org.eclipse.jface.action.IAction
All Known Implementing Classes:
AbstractControlAction, CreateLabelAction, CreatePanelAction, CreatePropertyWidgetAction, CreatePropertyWidgetGroupAction, CreateSeparatorAction, DeleteControlAction, MoveDownAction, MoveUpAction, SetOneColumnLayoutAction, SetTwoColumnLayoutAction

public interface IControlAction
extends org.eclipse.jface.action.IAction

An IAction that can be applied to a selected panel Resource. This interface is used by both the PanelTreeViewer and the PreviewPanel.

Author:
Holger Knublauch

Field Summary
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Method Summary
 void init(com.hp.hpl.jena.rdf.model.Resource panel, IControlActionDriver driver)
           
 boolean isEnabled(com.hp.hpl.jena.rdf.model.Resource panel)
          Assuming that isVisible(panel) is also true, this method checks if this action shall also be enabled for a given panel.
 boolean isVisible(com.hp.hpl.jena.rdf.model.Resource panel)
          Checks if this action shall show up in the drop down menu for a given panel.
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 

Method Detail

init

void init(com.hp.hpl.jena.rdf.model.Resource panel,
          IControlActionDriver driver)

isEnabled

boolean isEnabled(com.hp.hpl.jena.rdf.model.Resource panel)
Assuming that isVisible(panel) is also true, this method checks if this action shall also be enabled for a given panel.

Parameters:
panel - the panel Resource to validate
Returns:
true if this shall be enabled for panel

isVisible

boolean isVisible(com.hp.hpl.jena.rdf.model.Resource panel)
Checks if this action shall show up in the drop down menu for a given panel.

Parameters:
panel - the panel Resource to validate
Returns:
true if this shall be made visible for panel