public interface ComponentModel
extends com.jgoodies.common.bean.ObservableBean2
ComponentValueModel
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final String PROPERTY_ENABLED
static final String PROPERTY_VISIBLE
static final String PROPERTY_EDITABLE
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-editableCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.