Class FormEvent
java.lang.Object
com.jformdesigner.model.FormEvent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the form component for this object.Returns the name of the method that the event handler will invoke on the target.Returns the name of the listener interface (e.g.Returns the name of the method in the listener interface that should trigger the handler (e.g.booleanReturns whether the listener method parameters should passed to the handler method.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.toString()Returns a string representation of the object.
-
Field Details
-
FIELD_HANDLER
- See Also:
-
FIELD_PASS_PARAMS
- See Also:
-
FIELD_PROPERTY_NAME
- Since:
- 3.0
- See Also:
-
-
Constructor Details
-
FormEvent
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
Copy constructor.
-
-
Method Details
-
getListener
Returns the name of the listener interface (e.g. "java.awt.event.ActionListener"). -
getListenerMethod
Returns the name of the method in the listener interface that should trigger the handler (e.g. "actionPerformed"). -
getHandler
Returns the name of the method that the event handler will invoke on the target. -
setHandler
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
Returns the property name used to add PropertyChangeListeners.- Since:
- 3.0
-
setPropertyName
Sets the property name used to add PropertyChangeListeners.- Since:
- 3.0
-
getComponent
Returns the form component for this object. -
toString
-