jve.generated
Interface IActionBinder

All Known Subinterfaces:
IActionBinder1
All Known Implementing Classes:
SwingDataServiceAction

public interface IActionBinder

IActionBinder includes methods for enabling and disabling the state of a bound visual element. See IActionBinder1 for flags and methods that can be used to dynamically enable or disable the state.


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
          Deprecated.  
static int ENABLE_ENABLE_ACTION
          Deprecated.  
static int ENABLE_NO_ACTION
          Deprecated.  
 
Method Summary
 void addActionBinderListener(IActionBinder.ActionBinderListener l)
          Add a new ActionBinderListner to the listener list.
 int getActionType()
          Deprecated.  
 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)
          Deprecated.  
 void setEnabled(boolean state)
          Set the enabled state of the action.
 

Field Detail

ENABLE_ENABLE_ACTION

public static final int ENABLE_ENABLE_ACTION
Deprecated.  

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
Deprecated.  

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
Deprecated.  

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

See Also:
Constant Field Values
Method Detail

getActionType

public int getActionType()
Deprecated.  

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)
Deprecated.  

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