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