info.joseluismartin.gui.bind
Interface ControlAccessor

All Known Implementing Classes:
AbstractControlAccessor, ComboAccessor, LabelAccessor, ListAccessor, SelectorAccessor, TablePanelAccessor, TextComponentAccessor, ToggleButtonAccessor, ViewAccessor

public interface ControlAccessor

Interface for generic access to ui controls

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Method Summary
 void addControlChangeListener(ControlChangeListener l)
          Add a ControlChangeListener
 Object getControlValue()
          Gets the control value
 boolean isEnabled()
          Test control enabled state
 boolean isTextControl()
          Test if control is a TextControlAccessor.
 void removeControlChangeListener(ControlChangeListener l)
          Remove a ControlChangeListener
 void setControlValue(Object value)
          Sets the control value
 void setEnabled(boolean enabled)
          Enable/disable the control
 

Method Detail

getControlValue

Object getControlValue()
Gets the control value

Returns:
the control value

setControlValue

void setControlValue(Object value)
Sets the control value

Parameters:
value - the value to set

addControlChangeListener

void addControlChangeListener(ControlChangeListener l)
Add a ControlChangeListener

Parameters:
l - the ControlChangeListener to add.

removeControlChangeListener

void removeControlChangeListener(ControlChangeListener l)
Remove a ControlChangeListener

Parameters:
l - the ControlChangeListener to remove

setEnabled

void setEnabled(boolean enabled)
Enable/disable the control

Parameters:
enabled - true if enabled

isEnabled

boolean isEnabled()
Test control enabled state

Returns:
true if control is enabled

isTextControl

boolean isTextControl()
Test if control is a TextControlAccessor.

Returns:
true if you want to format text in the control, false otherwise.


Copyright © 2013 JDAL. All Rights Reserved.