|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
jve.generated.SwingDataServiceAction
This action will execute a data source service with a single argument. The argument is specified by a ObjectReference.
| Nested Class Summary |
| Nested classes inherited from class jve.generated.IActionBinder |
IActionBinder.ActionBinderEvent, IActionBinder.ActionBinderListener |
| Field Summary | |
static boolean |
debug
|
| Fields inherited from interface jve.generated.IActionBinder1 |
FLAGS_ACTION_PERFORMED, FLAGS_ACTION_PERFORMED_NULL_OBJECT, FLAGS_ACTION_PERFORMED_OBJECT, FLAGS_NONE, FLAGS_NULL_OBJECT_CHANGE, FLAGS_NULL_PROPERTY_CHANGE, FLAGS_OBJECT_CHANGE, FLAGS_PROPERTY_CHANGE |
| Fields inherited from interface jve.generated.IActionBinder |
ENABLE_DISABLE_ACTION, ENABLE_ENABLE_ACTION, ENABLE_NO_ACTION |
| Fields inherited from interface jve.generated.IBoundObject |
DELIMITER, PROPERTY_OBJ_CHANGED |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
SwingDataServiceAction()
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Respond to an action, by invoking the data source service. |
void |
actionPerformed(IActionBinder action)
Notify the bound object that an action was performed where the reference object was used to perform an action. |
void |
addActionBinderListener(IActionBinder.ActionBinderListener l)
Add a new ActionBinderListner to the listener list. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
int |
getActionType()
Get the type of the action |
IDataSource |
getDataSource()
Get the Data Source associated with this action. |
int |
getDisableFlags()
|
int |
getEnableFlags()
|
java.lang.Object |
getObject()
Get the bound object. |
java.lang.String |
getProperty()
Get the property of the source object that will be used as the bound object. |
ObjectReference |
getServiceArgument()
Get the argument used as the parameter for the service call. |
java.lang.String |
getServiceSignature()
Get the service signature for this action. |
java.lang.Object |
getSourceObject()
Get the source object that is used to reference the bound object. |
java.lang.Class |
getType()
Get the class type of the referenced object. |
java.lang.Object |
getValue(java.lang.String property)
Use the getter of an object to get a property |
boolean |
isPrimitive(java.lang.String property)
Get to see if the type of the given property is a Java primitive type. |
boolean |
isReadOnly(java.lang.String property)
Check if the given property has a setter method. |
void |
refresh()
Refresh the referenced object. |
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 |
setDataSource(IDataSource datasource)
Set the Data Source associated with this action. |
void |
setDisableFlags(int flags)
This method is used to configure when the visual will disable itself. |
void |
setEnabled(boolean newValue)
Set the enabled state of the action. |
void |
setEnableFlags(int flags)
This method is used to configure when the visual will enable itself. |
void |
setProperty(java.lang.String property)
Set the property of the source object that will be the bound object. |
void |
setServiceArgument(ObjectReference arg)
Set the argument for the service call, according to the method signature set with the setService method. |
void |
setServiceSignature(java.lang.String signature)
This is the service method signature that is to be use. |
void |
setSourceObject(java.lang.Object object)
Set the source object that will be used as a reference for the bound object. |
void |
setSourceObject(java.lang.Object object,
java.lang.String property)
Set the source object and target property simultaneously. |
void |
setValue(java.lang.String property,
java.lang.Object value)
Use the setter of an object to set a property. |
java.lang.String |
toString()
|
| Methods inherited from class javax.swing.AbstractAction |
getKeys, getPropertyChangeListeners, isEnabled, putValue, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jve.generated.IActionBinder |
isEnabled |
| Methods inherited from interface jve.generated.IBoundObject |
removePropertyChangeListener |
| Field Detail |
public static boolean debug
| Constructor Detail |
public SwingDataServiceAction()
| Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic java.lang.String getServiceSignature()
IDataSourceService
getServiceSignature in interface IDataSourceServicepublic void setServiceSignature(java.lang.String signature)
IDataSourceService
setServiceSignature in interface IDataSourceServicesignature - signaturepublic IDataSource getDataSource()
IDataSourceService
getDataSource in interface IDataSourceServicepublic void setDataSource(IDataSource datasource)
IDataSourceService
setDataSource in interface IDataSourceServicedatasource - DataSource to use for this servicepublic int getActionType()
IActionBinder
getActionType in interface IActionBinderpublic void setActionType(int type)
IActionBinderENABLE_ENABLE_ACTION it will be enabled
when an its argument property has changed, and vice versa when the
actionType is ENABLE_DISABLE_ACTION.
setActionType in interface IActionBindertype - the action type.public void setServiceArgument(ObjectReference arg)
IDataSourceService
setServiceArgument in interface IDataSourceServicearg - the service argumentpublic ObjectReference getServiceArgument()
IDataSourceService
getServiceArgument in interface IDataSourceServicepublic void setEnabled(boolean newValue)
IActionBinder
setEnabled in interface IActionBinderpublic void removeActionBinderListener(IActionBinder.ActionBinderListener l)
IActionBinder
removeActionBinderListener in interface IActionBinderl - the listener to removepublic void setDisableFlags(int flags)
IActionBinder1
setDisableFlags in interface IActionBinder1flags - public int getDisableFlags()
public void setEnableFlags(int flags)
IActionBinder1
setEnableFlags in interface IActionBinder1flags - public int getEnableFlags()
public java.lang.String toString()
public void setValue(java.lang.String property,
java.lang.Object value)
IDataObject
setValue in interface IDataObjectproperty - property to set on the target objectvalue - the value to set
public boolean isReadOnly(java.lang.String property)
throws java.lang.IllegalArgumentException
IDataObject
isReadOnly in interface IDataObjectproperty - the property to check
java.lang.IllegalArgumentException - if the target property is invalid
public boolean isPrimitive(java.lang.String property)
throws java.lang.IllegalArgumentException
IDataObject
isPrimitive in interface IDataObjectproperty - the property to check
java.lang.IllegalArgumentException - if the target property is invalidpublic void setProperty(java.lang.String property)
IBoundObject
setProperty in interface IBoundObjectproperty - the property of the source objectpublic java.lang.String getProperty()
IBoundObject
getProperty in interface IBoundObjectpublic void setSourceObject(java.lang.Object object)
IBoundObject
setSourceObject in interface IBoundObjectobject - the source object
public void setSourceObject(java.lang.Object object,
java.lang.String property)
IBoundObject
setSourceObject in interface IBoundObjectobject - the source objectproperty - the target propertypublic java.lang.Object getSourceObject()
IBoundObject
getSourceObject in interface IBoundObjectpublic java.lang.Object getObject()
IBoundObject
getObject in interface IBoundObjectpublic void actionPerformed(IActionBinder action)
IBoundObject
actionPerformed in interface IBoundObjectaction - the action that used the referenced objectpublic void refresh()
IBoundObject
refresh in interface IBoundObject
public java.lang.Class getType()
throws java.lang.IllegalStateException
IBoundObject
getType in interface IBoundObjectjava.lang.IllegalStateException - if the target object can not be determined due to a
miss-configuration. The exception includes a message denoting the reason.public void addActionBinderListener(IActionBinder.ActionBinderListener l)
IActionBinder
addActionBinderListener in interface IActionBinderl - the new listenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
IBoundObjectPROPERTY_OBJ_CHANGED as the
property type.
addPropertyChangeListener in interface IBoundObjectpublic java.lang.Object getValue(java.lang.String property)
IDataObject
getValue in interface IDataObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||