info.joseluismartin.gui.bind
Class ToggleButtonAccessor

java.lang.Object
  extended by info.joseluismartin.gui.bind.AbstractControlAccessor
      extended by info.joseluismartin.gui.bind.ToggleButtonAccessor
All Implemented Interfaces:
ControlAccessor, EventListener, ChangeListener

public class ToggleButtonAccessor
extends AbstractControlAccessor
implements ChangeListener

ControlAccessor for JToggleButton

Since:
1.1
Author:
Jose Luis Martin - (jlm@joseluismartin.info)
See Also:
ControlAccessor

Constructor Summary
ToggleButtonAccessor(Object button)
           
 
Method Summary
 JToggleButton getControl()
          
 Boolean getControlValue()
          Gets the control value
 void setControlValue(Object value)
          Sets the control value
 void stateChanged(ChangeEvent e)
          
 
Methods inherited from class info.joseluismartin.gui.bind.AbstractControlAccessor
addControlChangeListener, convertIfNecessary, fireControlChange, isEnabled, isTextControl, removeControlChangeListener, setControl, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToggleButtonAccessor

public ToggleButtonAccessor(Object button)
Method Detail

getControlValue

public Boolean getControlValue()
Gets the control value

Specified by:
getControlValue in interface ControlAccessor
Returns:
the control value

setControlValue

public void setControlValue(Object value)
Sets the control value

Specified by:
setControlValue in interface ControlAccessor
Parameters:
value - the value to set

getControl

public JToggleButton getControl()

Overrides:
getControl in class AbstractControlAccessor
Returns:
the control

stateChanged

public void stateChanged(ChangeEvent e)

Specified by:
stateChanged in interface ChangeListener


Copyright © 2013 JDAL. All Rights Reserved.