com.sdm.quasar.client.core.states
Interface BooleanStateAdapter

All Superinterfaces:
Disposable
All Known Implementing Classes:
AbstractBooleanStateAdapter

public interface BooleanStateAdapter
extends Disposable

The BooleanStateAdapter observes a State (see #setBooleanState(State)), and adapts it's value to something.

Note: BooleanStateAdapter extends Disposable. If disposed, the adapted State will be set to null; so no state value further will be adapted.

Version:
1.$Revision$
Author:
Thomas Wolf

Method Summary
 BooleanState getBooleanState()
           
 java.lang.String getName()
          Return the name of the BooleanStateAdapter.
 void setBooleanState(BooleanState state)
          Sets (or resets if state==null) the state this adapter acts on.
 void setName(java.lang.String name)
          Set the name of the BooleanStateAdapter.
 
Methods inherited from interface com.sdm.quasar.client.core.common.Disposable
dispose
 

Method Detail

getName

public java.lang.String getName()
Return the name of the BooleanStateAdapter.

Returns:
the name of the BooleanStateAdapter (never null)

setName

public void setName(java.lang.String name)
Set the name of the BooleanStateAdapter.

Parameters:
name - the name of the BooleanStateAdapter (not null)
Throws:
java.lang.IllegalArgumentException - if name is null

getBooleanState

public BooleanState getBooleanState()
Returns:
the State to adapt, or null, if currently no state is adapted.

setBooleanState

public void setBooleanState(BooleanState state)
Sets (or resets if state==null) the state this adapter acts on.

Parameters:
state - the state we act upon or null