|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.model.DefaultExpansionModel
public class DefaultExpansionModel
A generic implementation of ExpansionModel.
| Field Summary | |
|---|---|
protected ChangeEvent |
changeEvent
Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property. |
protected boolean |
isExpanded
|
protected EventListenerList |
listenerList
|
| Constructor Summary | |
|---|---|
DefaultExpansionModel()
An ExpansionModel that is not expanded |
|
DefaultExpansionModel(boolean isExpanded)
An ExpansionModel that is set to 'isExpanded'. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to the button. |
void |
fireStateChanged()
Notifies all listeners that have registered for this event type. |
boolean |
isExpanded()
Returns the model's expansion. |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button. |
void |
setExpanded(boolean isExpanded)
Sets the model's expansion Notifies any listeners if the model changes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient ChangeEvent changeEvent
protected boolean isExpanded
protected EventListenerList listenerList
| Constructor Detail |
|---|
public DefaultExpansionModel()
ExpansionModel that is not expanded
public DefaultExpansionModel(boolean isExpanded)
ExpansionModel that is set to 'isExpanded'.
| Method Detail |
|---|
public void addChangeListener(ChangeListener l)
ChangeListener to the button.
addChangeListener in interface ExpansionModell - The ChangeListener to be added.public void fireStateChanged()
public boolean isExpanded()
isExpanded in interface ExpansionModelpublic void removeChangeListener(ChangeListener l)
ChangeListener from the button.
removeChangeListener in interface ExpansionModell - The ChangeListener to be removed.public void setExpanded(boolean isExpanded)
setExpanded in interface ExpansionModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||