public abstract class AbstractControlAccessor extends Object implements ControlAccessor, Serializable
| Constructor and Description |
|---|
AbstractControlAccessor()
Default ctor.
|
AbstractControlAccessor(Object control)
Create a ContolAccesor and set the control
|
| Modifier and Type | Method and Description |
|---|---|
void |
addControlChangeListener(ControlChangeListener l)
Add a ControlChangeListener
|
protected <T> T |
convertIfNecessary(Object value,
Class<T> requiredType)
Convert Object to required type using
SimpleTypeConverter |
protected void |
fireControlChange()
Notifiy Listeners that control value has changed
|
Object |
getControl() |
boolean |
isEnabled()
Test control enabled state
|
boolean |
isTextControl()
Test if control is a TextControlAccessor.
|
void |
removeControlChangeListener(ControlChangeListener l)
Remove a ControlChangeListener
|
void |
setControl(Object control) |
void |
setEnabled(boolean enabled)
Enable/disable the control
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetControlValue, setControlValuepublic AbstractControlAccessor()
public AbstractControlAccessor(Object control)
control - the control to setpublic void addControlChangeListener(ControlChangeListener l)
addControlChangeListener in interface ControlAccessorl - the ControlChangeListener to add.public void removeControlChangeListener(ControlChangeListener l)
removeControlChangeListener in interface ControlAccessorl - the ControlChangeListener to removeprotected <T> T convertIfNecessary(Object value, Class<T> requiredType) throws org.springframework.beans.TypeMismatchException
SimpleTypeConverterT - type to convert tovalue - value to convertrequiredType - type to convertorg.springframework.beans.TypeMismatchExceptionTypeConverter.convertIfNecessary(java.lang.Object, java.lang.Class)protected void fireControlChange()
public Object getControl()
public void setControl(Object control)
control - the control to setpublic void setEnabled(boolean enabled)
setEnabled in interface ControlAccessorenabled - true if enabledpublic boolean isEnabled()
isEnabled in interface ControlAccessorpublic boolean isTextControl()
isTextControl in interface ControlAccessorCopyright © 2014 JDAL. All Rights Reserved.