|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.states.AbstractBooleanStateAdapter
com.sdm.quasar.client.swing.states.adapters.AbstractSwingBooleanStateAdapter
com.sdm.quasar.client.swing.states.adapters.JComponentVisibleBooleanStateAdapter
Adapts the value of a BooleanState
to the visibility of a JComponent.
| Constructor Summary | |
JComponentVisibleBooleanStateAdapter()
Creates a new JComponentVisibleBooleanStateAdapter. |
|
JComponentVisibleBooleanStateAdapter(java.lang.String name)
Creates a new JComponentVisibleBooleanStateAdapter. |
|
| Method Summary | |
void |
addJComponent(javax.swing.JComponent jcomponent)
Adds a JComponent, whos visibility should be adapted from the state. |
void |
addJComponentInverse(javax.swing.JComponent jcomponent)
Adds a JComponent, whos visibility should be adapted inverse from the state. |
void |
removeJComponent(javax.swing.JComponent jcomponent)
Removes a previously added JComponent from adapting its enablement. |
protected void |
setAdaptedValue(java.lang.Object target,
boolean value)
Sets the adapted value for the given target object (that was added before to this adapter). |
| Methods inherited from class com.sdm.quasar.client.swing.states.adapters.AbstractSwingBooleanStateAdapter |
updateAdaptedValue |
| Methods inherited from class com.sdm.quasar.client.core.states.AbstractBooleanStateAdapter |
addTarget, addTarget, addTargetInverse, dispose, getBooleanState, getName, removeTarget, setAdaptedValue, setBooleanState, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JComponentVisibleBooleanStateAdapter()
JComponentVisibleBooleanStateAdapter.
public JComponentVisibleBooleanStateAdapter(java.lang.String name)
JComponentVisibleBooleanStateAdapter.
name - the name of the adapter| Method Detail |
public void addJComponent(javax.swing.JComponent jcomponent)
JComponent, whos visibility should be adapted from the state.
jcomponent - the JComponent to addpublic void addJComponentInverse(javax.swing.JComponent jcomponent)
JComponent, whos visibility should be adapted inverse from the state.
jcomponent - the JComponent to addpublic void removeJComponent(javax.swing.JComponent jcomponent)
JComponent from adapting its enablement.
jcomponent - the JComponent to remove
protected void setAdaptedValue(java.lang.Object target,
boolean value)
AbstractBooleanStateAdapter
setAdaptedValue in class AbstractBooleanStateAdaptertarget - the target to adapt the value tovalue - the value to adaptAbstractBooleanStateAdapter.setAdaptedValue(java.lang.Object, boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||