|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentModel
Describes bound properties for the frequently used JComponent state enabled,visible and JTextComponent state editable.
ComponentValueModel| Field Summary | |
|---|---|
static String |
PROPERTY_EDITABLE
The name of the property used to synchronize this model with the editable property of JTextComponents. |
static String |
PROPERTY_ENABLED
The name of the property used to synchronize this model with the enabled property of JComponents. |
static String |
PROPERTY_VISIBLE
The name of the property used to synchronize this model with the visible property of JComponents. |
| Method Summary | |
|---|---|
boolean |
isEditable()
Returns if this model represents the editable or non-editable text component state. |
boolean |
isEnabled()
Returns if this model represents an enabled or disabled component state. |
boolean |
isVisible()
Returns if this model represents the visible or invisible component state. |
void |
setEditable(boolean b)
Sets this model state to editable or non-editable, which in turn will make all text components bound to this model editable or non-editable. |
void |
setEnabled(boolean b)
Enables or disabled this model, which in turn will enable or disable all Swing components bound to this model. |
void |
setVisible(boolean b)
Sets this model state to visible or invisible, which in turn will make all Swing components bound to this model visible or invisible. |
| Methods inherited from interface com.jgoodies.common.bean.ObservableBean2 |
|---|
addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener |
| Methods inherited from interface com.jgoodies.common.bean.ObservableBean |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
static final String PROPERTY_ENABLED
static final String PROPERTY_VISIBLE
static final String PROPERTY_EDITABLE
| Method Detail |
|---|
boolean isEnabled()
void setEnabled(boolean b)
b - true to enable, false to disable.boolean isVisible()
void setVisible(boolean b)
b - true for visible, false for invisibleboolean isEditable()
void setEditable(boolean b)
b - true for editable, false for non-editable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||