|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.appframe.event.IlvSingleActionHandler
ilog.views.appframe.event.IlvCheckableActionHandler
ilog.views.appframe.event.IlvComponentVisibilityActionHandler
public class IlvComponentVisibilityActionHandler
Defines action handlers associated with the visibility of a component or a document view container. Checking the action toggles the visibility of the associated component. When the visibility of the component is changed by code or through a UI interaction, the check state of the action is automatically updated.
By default, the action handler manages the visibility of two kinds of object:
Component.isVisible() method.IlvViewContainer.isContainerVisible()
method.
This class can be overridden to reflect the state of visibility of other kinds
of graphical component. For example, the action handler class that
reflects the visibility of dockable panes in a docking area
(see IlvDockingArea) inherits from
this class. In this case, you are recommended to implement the
derived class following these steps:
IlvComponentVisibilityActionHandler(String).isVisible() and setVisible(boolean).
| Constructor Summary | |
|---|---|
protected |
IlvComponentVisibilityActionHandler(String command)
Constructs a new IlvComponentVisibilityActionHandler that
processes the action with the specified command key. |
|
IlvComponentVisibilityActionHandler(String command,
Component component)
Constructs a new IlvComponentVisibilityActionHandler that
processes the action with the specified command key. |
|
IlvComponentVisibilityActionHandler(String command,
IlvViewContainer viewContainer)
Construct a new IlvComponentVisibilityActionHandler that
processes the action with the specified command key. |
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs. |
protected boolean |
isVisible()
Determines whether the component associated with the action handler is visible. |
protected void |
setVisible(boolean visible)
Shows or hides the component associated with this action handler depending on the value of the visible parameter. |
protected boolean |
updateSingleAction(Action action)
Invoked by the IlvSingleActionHandler.updateAction(javax.swing.Action) method. |
| Methods inherited from class ilog.views.appframe.event.IlvCheckableActionHandler |
|---|
checkStateChanged, getGroup, isChecked, isLocked, isOneShot, lockStateChanged, setAction, setChecked, setLocked, setOneShot |
| Methods inherited from class ilog.views.appframe.event.IlvSingleActionHandler |
|---|
getAction, getCommand, isProcessingAction, setCommand, updateAction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IlvComponentVisibilityActionHandler(String command)
IlvComponentVisibilityActionHandler that
processes the action with the specified command key.
This constructor should be used by classes that inherit from this class.
command - The command key of the action this handler processes.
public IlvComponentVisibilityActionHandler(String command,
Component component)
IlvComponentVisibilityActionHandler that
processes the action with the specified command key.
command - The command key of the action that this handler processes.component - The component with the visibility state associated
with the check state of the action that this handler processes.
public IlvComponentVisibilityActionHandler(String command,
IlvViewContainer viewContainer)
IlvComponentVisibilityActionHandler that
processes the action with the specified command key.
command - The command key of the action this handler processes.viewContainer - The document view container with the visibility state
associated with the check state of the action that this handler processes.| Method Detail |
|---|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListeneractionPerformed in class IlvSingleActionHandlere - The action event.protected boolean updateSingleAction(Action action)
IlvSingleActionHandler.updateAction(javax.swing.Action) method.
Checks the action depending on the visibility state of the component
associated with this action handler.
updateSingleAction in class IlvSingleActionHandleraction - The action to update the state of.
true.protected boolean isVisible()
true if the component is visible;
false otherwise.setVisible(boolean)protected void setVisible(boolean visible)
visible parameter.
visible - If true, the component will be shown;
if false, the component will be hidden.isVisible()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||