ilog.views.appframe.event
Interface ActionHandler

All Superinterfaces:
ActionListener, EventListener
All Known Subinterfaces:
IlvDocument, IlvDocumentView, IlvFileDocument, IlvMDIViewContainer, IlvStreamDocument, IlvViewContainer
All Known Implementing Classes:
IlvAbstractDocument, IlvAbstractFileDocument, IlvAbstractStaticViewContainer, IlvActionHandlerArray, IlvCheckableActionHandler, IlvComponentVisibilityActionHandler, IlvDataContainerDocument, IlvDataDocument, IlvDefaultStaticViewContainer, IlvDocumentTemplate, IlvDocumentViewSupport, IlvDOMDocument, IlvExplorerView, IlvFileDocumentTemplate, IlvInternalFrame, IlvListActionHandler, IlvMDITab, IlvMessageMapper, IlvPanelView, IlvProjectDocument, IlvSingleActionHandler, IlvTextDocument, IlvTextView, IlvTreeView, IlvWorkspaceDocument

public interface ActionHandler
extends ActionListener

The listener interface for receiving action events and specifying the state of the actions.


Method Summary
 boolean isProcessingAction(String command)
          Determines whether the action handler is able to perform the action with the specified command key in its ActionListener.actionPerformed(java.awt.event.ActionEvent) method.
 boolean updateAction(Action action)
          Invoked by the application for updating the state of the specified action.
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Method Detail

isProcessingAction

boolean isProcessingAction(String command)
Determines whether the action handler is able to perform the action with the specified command key in its ActionListener.actionPerformed(java.awt.event.ActionEvent) method.

Parameters:
command - The command key of the action.
Returns:
true if the action handler is able to handle the specified action; false otherwise.

updateAction

boolean updateAction(Action action)
Invoked by the application for updating the state of the specified action. For example, the implementation of this method can enable or disable the action.

Parameters:
action - The action to update.
Returns:
true if the action handler has updated the state of the action; false otherwise.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.