|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin com.webobjects.eointerface.EOValueAssociation.ValuePlugin com.webobjects.eointerface.swing.EOSwingCheckBoxPlugin
EOSwingCheckBoxPlugin is a concrete subclass of EOValueAssociation.ValuePlugin which is used with Swing's JCheckBox.
Associations classes: EOValueAssociation
Widgets classes: JCheckBox
Nested Class Summary |
Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
EOWidgetAssociation.WidgetPlugin.Formatting |
Constructor Summary | |
EOSwingCheckBoxPlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOSwingCheckBoxPlugin connected to an association and a UI widget. |
Method Summary | |
void |
breakConnection()
Clean up (end) the plugin's connection to its JCheckBox widget. |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
void |
itemStateChanged(ItemEvent event)
Invokes widgetDidChange on the plugin's EOValueAssociation. |
void |
setValue(Object value,
boolean isEnabled)
Sets the checkbox to 'checked' or 'not-checked' and also sets the enabled state. |
Object |
value()
Return whether or not the checkbox is checked. |
String[] |
widgetKeysTaken()
Returns an array of Strings which represent outlet names in Interface Builder. |
Methods inherited from class com.webobjects.eointerface.EOValueAssociation.ValuePlugin |
endEditing, useURLAsValue |
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
association, dispose, unacceptableAspects, widget |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EOSwingCheckBoxPlugin(EOWidgetAssociation association, Object widget)
association
- association of class EOValueAssociation or subclass for the plugin to usewidget
- widget of class JCheckBox or subclass that the plugin will manageMethod Detail |
public void breakConnection()
breakConnection
in class EOWidgetAssociation.WidgetPlugin
public void establishConnection()
establishConnection
in class EOWidgetAssociation.WidgetPlugin
public void itemStateChanged(ItemEvent event)
widgetDidChange
on the plugin's EOValueAssociation.
itemStateChanged
in interface ItemListener
event
- the ItemEvent received from the AWT event dispatcherpublic void setValue(Object value, boolean isEnabled)
setValue
in class EOValueAssociation.ValuePlugin
value
- the new value of the checkbox, either a Boolean or Number objectisEnabled
- enables or disables the checkboxpublic Object value()
value
in class EOValueAssociation.ValuePlugin
public String[] widgetKeysTaken()
widgetKeysTaken
in class EOWidgetAssociation.WidgetPlugin
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |