public class FormEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIELD_HANDLER |
static java.lang.String |
FIELD_PASS_PARAMS |
static java.lang.String |
FIELD_PROPERTY_NAME |
Constructor and Description |
---|
FormEvent(FormEvent orig)
Copy constructor.
|
FormEvent(java.lang.String listener,
java.lang.String listenerMethod,
java.lang.String handler,
boolean passParams)
Constructs a form event.
|
FormEvent(java.lang.String listener,
java.lang.String listenerMethod,
java.lang.String handler,
boolean passParams,
java.lang.String propertyName)
Constructs a form event.
|
Modifier and Type | Method and Description |
---|---|
FormComponent |
getComponent()
Returns the form component for this object.
|
java.lang.String |
getHandler()
Returns the name of the method that the event handler will invoke on the target.
|
java.lang.String |
getListener()
Returns the name of the listener interface
(e.g.
|
java.lang.String |
getListenerMethod()
Returns the name of the method in the listener interface that should
trigger the handler (e.g.
|
boolean |
getPassParams()
Returns whether the listener method parameters should passed to the handler method.
|
java.lang.String |
getPropertyName()
Returns the property name used to add PropertyChangeListeners.
|
void |
setHandler(java.lang.String handler)
Sets the name of the event handler method.
|
void |
setPassParams(boolean passParams)
Sets whether the listener method parameters should passed to the handler method.
|
void |
setPropertyName(java.lang.String propertyName)
Sets the property name used to add PropertyChangeListeners.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public static final java.lang.String FIELD_HANDLER
public static final java.lang.String FIELD_PASS_PARAMS
public static final java.lang.String FIELD_PROPERTY_NAME
public FormEvent(java.lang.String listener, java.lang.String listenerMethod, java.lang.String handler, boolean passParams)
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.public FormEvent(java.lang.String listener, java.lang.String listenerMethod, java.lang.String handler, boolean passParams, java.lang.String propertyName)
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.public FormEvent(FormEvent orig)
public java.lang.String getListener()
public java.lang.String getListenerMethod()
public java.lang.String getHandler()
public void setHandler(java.lang.String handler)
public boolean getPassParams()
public void setPassParams(boolean passParams)
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
public FormComponent getComponent()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (C) 2004-2017 FormDev Software GmbH. All rights reserved.