|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.swing.binder.PropertyBooleanRadioButtonGroupModel
JYesNoUnknownRadioButtonPanel model that binds to a property. Use of this model is best achieved by using SwingBinder.
This class can be used for both mutable and immutable properties. Immutable properties cannot be updated by the swing GUI, however they will update correctly if their value changes.
Nested Class Summary | |
class |
PropertyBooleanRadioButtonGroupModel.RadioButtonModel
The button model that is attached to each button |
Constructor Summary | |
PropertyBooleanRadioButtonGroupModel()
Constructor |
|
PropertyBooleanRadioButtonGroupModel(JYesNoUnknownRadioButtonPanel comp,
BooleanProperty property)
Constructor that binds to a particular property. |
Method Summary | |
protected void |
activate()
Activate the connection between the GUI and the model |
void |
bind(javax.swing.JComponent component,
Property property)
Bind a Property object to the component. |
protected void |
deactivate()
Deactivate the connection between the GUI and the model |
protected boolean |
isReadOnly()
Is the property read only |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle programmatic changes made to the property by updating the swing model. |
void |
setActive(boolean active)
Set the model to GUI binding as active or inactive |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyBooleanRadioButtonGroupModel()
public PropertyBooleanRadioButtonGroupModel(JYesNoUnknownRadioButtonPanel comp, BooleanProperty property)
Method Detail |
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
event
- the property change eventprotected boolean isReadOnly()
public void setActive(boolean active)
setActive
in interface JComponentBinder
protected void activate()
protected void deactivate()
public void bind(javax.swing.JComponent component, Property property)
JComponentBinder
bind
in interface JComponentBinder
component
- the component to bindproperty
- the property to bind toJComponentBinder.bind(JComponent,Property)
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |