Package  Use  Tree  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

 

jve.generated
Interface IActionBinder

All Known Implementing Classes:
SwingDataServiceAction


public interface IActionBinder

IActionBinder has the ability to automatically change an enabled state on an Action when the arguments for the Action change. The meaning of the argument and the changes that trigger an enabled state change are up to the implementation. For example, an Action that invokes a service call could change its enabled state when the parameters for that service call change.


Nested Class Summary
static class IActionBinder.ActionBinderEvent
          A action binder event is fired before and after the ActionBinder's action is performed.
static interface IActionBinder.ActionBinderListener
          Interface used to register for action triggering notification.
 

Field Summary
static int ENABLE_DISABLE_ACTION
          Bound visual will be disabled when the argument is changed
static int ENABLE_ENABLE_ACTION
          Bound visual will be enabled when the argument is changed
static int ENABLE_NO_ACTION
          Bound visual's enabled state will not change when the argument is changed
 

Method Summary
 void addActionBinderListener(IActionBinder.ActionBinderListener l)
          Add a new ActionBinderListner to the listener list.
 int getActionType()
          Get the type of the action
 boolean isEnabled()
          Retrieves the enabled state of the action.
 void removeActionBinderListener(IActionBinder.ActionBinderListener l)
          Remove an existing ActionBinderListener from the listener list.
 void setActionType(int type)
          Set the way the action binder will drive its enable state.
 void setEnabled(boolean state)
          Set the enabled state of the action.
 

 

Field Detail

 

 

ENABLE_ENABLE_ACTION

public static final int ENABLE_ENABLE_ACTION

Bound visual will be enabled when the argument is changed

See Also:
Constant Field Values


 

 

ENABLE_DISABLE_ACTION

public static final int ENABLE_DISABLE_ACTION

Bound visual will be disabled when the argument is changed

See Also:
Constant Field Values


 

 

ENABLE_NO_ACTION

public static final int ENABLE_NO_ACTION

Bound visual's enabled state will not change when the argument is changed

See Also:
Constant Field Values

Method Detail

 

 

getActionType

public int getActionType()

Get the type of the action

Returns:
the action type. Will be ENABLE_ENABLE_ACTION, ENABLE_DISABLE_ACTION or ENABLE_NO_ACTION


 

 

setActionType

public void setActionType(int type)

Set the way the action binder will drive its enable state. On ENABLE_ENABLE_ACTION it will be enabled when an its argument property has changed, and vice versa when the actionType is ENABLE_DISABLE_ACTION.

Parameters:
type - the action type.


 

 

isEnabled

public boolean isEnabled()

Retrieves the enabled state of the action.

Returns:
true if the action is enabled, false if it is disabled.


 

 

setEnabled

public void setEnabled(boolean state)

Set the enabled state of the action.

Parameters:
state - true if the action should be enabled, false if disabled.


 

 

addActionBinderListener

public void addActionBinderListener(IActionBinder.ActionBinderListener l)

Add a new ActionBinderListner to the listener list.

Parameters:
l - the new listener


 

 

removeActionBinderListener

public void removeActionBinderListener(IActionBinder.ActionBinderListener l)

Remove an existing ActionBinderListener from the listener list.

Parameters:
l - the listener to remove


Package  Use  Tree  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD