org.embl.ebi.escience.scuflui.actions
Class OfflineToggleModel

java.lang.Object
  extended by javax.swing.DefaultButtonModel
      extended by javax.swing.JToggleButton.ToggleButtonModel
          extended by org.embl.ebi.escience.scuflui.actions.OfflineToggleModel
All Implemented Interfaces:
java.awt.ItemSelectable, java.io.Serializable, javax.swing.ButtonModel, ScuflModelEventListener

public class OfflineToggleModel
extends javax.swing.JToggleButton.ToggleButtonModel
implements ScuflModelEventListener

COMMENT

Version:
$Revision$
Author:
Kevin Glover
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultButtonModel
ARMED, ENABLED, PRESSED, ROLLOVER, SELECTED
 
Constructor Summary
OfflineToggleModel(ScuflModel model)
           
 
Method Summary
 boolean isSelected()
           
 void receiveModelEvent(ScuflModelEvent event)
           
 void setSelected(boolean b)
           
 
Methods inherited from class javax.swing.JToggleButton.ToggleButtonModel
setPressed
 
Methods inherited from class javax.swing.DefaultButtonModel
addActionListener, addChangeListener, addItemListener, getActionCommand, getActionListeners, getChangeListeners, getGroup, getItemListeners, getListeners, getMnemonic, getSelectedObjects, isArmed, isEnabled, isPressed, isRollover, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setRollover
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineToggleModel

public OfflineToggleModel(ScuflModel model)
Method Detail

isSelected

public boolean isSelected()
Specified by:
isSelected in interface javax.swing.ButtonModel
Overrides:
isSelected in class javax.swing.JToggleButton.ToggleButtonModel

setSelected

public void setSelected(boolean b)
Specified by:
setSelected in interface javax.swing.ButtonModel
Overrides:
setSelected in class javax.swing.JToggleButton.ToggleButtonModel

receiveModelEvent

public void receiveModelEvent(ScuflModelEvent event)
Specified by:
receiveModelEvent in interface ScuflModelEventListener