com.sdm.quasar.client.swing.states.adapters
Class AbstractSwingBooleanStateAdapter

java.lang.Object
  extended bycom.sdm.quasar.client.core.states.AbstractBooleanStateAdapter
      extended bycom.sdm.quasar.client.swing.states.adapters.AbstractSwingBooleanStateAdapter
All Implemented Interfaces:
BooleanStateAdapter, Disposable
Direct Known Subclasses:
ActionEnabledBooleanStateAdapter, EmplDetailPresentation.JComponentMarkedBooleanStateAdapter, GlassPaneBlockingBooleanStateAdapter, JComponentEnabledBooleanStateAdapter, JComponentVisibleBooleanStateAdapter, JTextComponentEditableBooleanStateAdapter

public abstract class AbstractSwingBooleanStateAdapter
extends AbstractBooleanStateAdapter

The base class for all BooleanStateAdapters, that adapt the boolean state value to some swing-element. The main reason for this class is to ensure that the code manipulating swing elements is executed in the swing event dispatch thread.

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
AbstractSwingBooleanStateAdapter()
          Creates a new AbstractSwingBooleanStateAdapter.
AbstractSwingBooleanStateAdapter(BooleanState state)
          Creates a new AbstractBooleanStateAdapter.
AbstractSwingBooleanStateAdapter(java.lang.String name)
          Creates a new AbstractSwingBooleanStateAdapter.
AbstractSwingBooleanStateAdapter(java.lang.String name, BooleanState state)
          Creates a new AbstractBooleanStateAdapter.
 
Method Summary
 void updateAdaptedValue()
          Forces an update of the current state value to the adapted objects.
 
Methods inherited from class com.sdm.quasar.client.core.states.AbstractBooleanStateAdapter
addTarget, addTarget, addTargetInverse, dispose, getBooleanState, getName, removeTarget, setAdaptedValue, setAdaptedValue, setBooleanState, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSwingBooleanStateAdapter

public AbstractSwingBooleanStateAdapter()
Creates a new AbstractSwingBooleanStateAdapter.


AbstractSwingBooleanStateAdapter

public AbstractSwingBooleanStateAdapter(java.lang.String name)
Creates a new AbstractSwingBooleanStateAdapter.

Parameters:
name -

AbstractSwingBooleanStateAdapter

public AbstractSwingBooleanStateAdapter(BooleanState state)
Creates a new AbstractBooleanStateAdapter.

Parameters:
state - the state to set

AbstractSwingBooleanStateAdapter

public AbstractSwingBooleanStateAdapter(java.lang.String name,
                                        BooleanState state)
Creates a new AbstractBooleanStateAdapter.

Parameters:
name - the name to set
state - the state to set
Method Detail

updateAdaptedValue

public final void updateAdaptedValue()
Description copied from class: AbstractBooleanStateAdapter
Forces an update of the current state value to the adapted objects.

Overrides:
updateAdaptedValue in class AbstractBooleanStateAdapter
See Also:
AbstractBooleanStateAdapter.updateAdaptedValue()