Package Class Use Tree Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
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 changedstatic int ENABLE_ENABLE_ACTION
Bound visual will be enabled when the argument is changedstatic 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 actionboolean 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
public static final int ENABLE_ENABLE_ACTION
public static final int ENABLE_DISABLE_ACTION
public static final int ENABLE_NO_ACTION
Method Detail
public int getActionType()
public void setActionType(int type)
public boolean isEnabled()
public void setEnabled(boolean state)
public void addActionBinderListener(IActionBinder.ActionBinderListener l)
public void removeActionBinderListener(IActionBinder.ActionBinderListener l)
Package Class Use Tree Index Help PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD