Package com.jformdesigner.model
Class FormEvent
- java.lang.Object
-
- com.jformdesigner.model.FormEvent
-
public class FormEvent extends Object
A form event.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_HANDLERstatic StringFIELD_PASS_PARAMSstatic StringFIELD_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description FormEvent(FormEvent orig)Copy constructor.FormEvent(String listener, String listenerMethod, String handler, boolean passParams)Constructs a form event.FormEvent(String listener, String listenerMethod, String handler, boolean passParams, String propertyName)Constructs a form event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormComponentgetComponent()Returns the form component for this object.StringgetHandler()Returns the name of the method that the event handler will invoke on the target.StringgetListener()Returns the name of the listener interface (e.g.StringgetListenerMethod()Returns the name of the method in the listener interface that should trigger the handler (e.g.booleangetPassParams()Returns whether the listener method parameters should passed to the handler method.StringgetPropertyName()Returns the property name used to add PropertyChangeListeners.voidsetHandler(String handler)Sets the name of the event handler method.voidsetPassParams(boolean passParams)Sets whether the listener method parameters should passed to the handler method.voidsetPropertyName(String propertyName)Sets the property name used to add PropertyChangeListeners.StringtoString()Returns a string representation of the object.
-
-
-
Field Detail
-
FIELD_HANDLER
public static final String FIELD_HANDLER
- See Also:
- Constant Field Values
-
FIELD_PASS_PARAMS
public static final String FIELD_PASS_PARAMS
- See Also:
- Constant Field Values
-
FIELD_PROPERTY_NAME
public static final String FIELD_PROPERTY_NAME
- Since:
- 3.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FormEvent
public FormEvent(String listener, String listenerMethod, String handler, boolean passParams)
Constructs a form event.- Parameters:
listener- The name of the listener interface (e.g. "java.awt.event.ActionListener").listenerMethod- The name of the method in the listener interface that should trigger the handler (e.g. "actionPerformed").handler- The name of the event handler method.passParams- If true, pass listener method parameters to the handler method.
-
FormEvent
public FormEvent(String listener, String listenerMethod, String handler, boolean passParams, String propertyName)
Constructs a form event.- Parameters:
listener- The name of the listener interface (e.g. "java.awt.event.ActionListener").listenerMethod- The name of the method in the listener interface that should trigger the handler (e.g. "actionPerformed").handler- The name of the event handler method.passParams- If true, pass listener method parameters to the handler method.propertyName- The property name used to add PropertyChangeListeners.- Since:
- 3.0
-
FormEvent
public FormEvent(FormEvent orig)
Copy constructor.
-
-
Method Detail
-
getListener
public String getListener()
Returns the name of the listener interface (e.g. "java.awt.event.ActionListener").
-
getListenerMethod
public String getListenerMethod()
Returns the name of the method in the listener interface that should trigger the handler (e.g. "actionPerformed").
-
getHandler
public String getHandler()
Returns the name of the method that the event handler will invoke on the target.
-
setHandler
public void setHandler(String handler)
Sets the name of the event handler method.
-
getPassParams
public boolean getPassParams()
Returns whether the listener method parameters should passed to the handler method.
-
setPassParams
public void setPassParams(boolean passParams)
Sets whether the listener method parameters should passed to the handler method.
-
getPropertyName
public String getPropertyName()
Returns the property name used to add PropertyChangeListeners.- Since:
- 3.0
-
setPropertyName
public void setPropertyName(String propertyName)
Sets the property name used to add PropertyChangeListeners.- Since:
- 3.0
-
getComponent
public FormComponent getComponent()
Returns the form component for this object.
-
-