|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
com.webobjects.eointerface.EOValueSelectionAssociation.ValueSelectionPlugin
com.webobjects.eointerface.swing.EOSwingComboBoxPlugin
public class EOSwingComboBoxPlugin
EOSwingComboBoxPlugin is a concrete subclass of EOValueSelectionAssociation.ValueSelectionPlugin which is used with Swing's JComboBox.
Associations classes: EOValueSelectionAssociation
Widgets classes: JComboBox
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
---|
EOWidgetAssociation.WidgetPlugin.Formatting |
Field Summary |
---|
Fields inherited from class com.webobjects.eointerface.EOValueSelectionAssociation.ValueSelectionPlugin |
---|
NoSelection |
Constructor Summary | |
---|---|
EOSwingComboBoxPlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOSwingComboBoxPlugin connected to an association and a UI widget. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent event)
Invokes widgetSelectionDidChange on this plugin's EOValueSelectionAssociation. |
void |
breakConnection()
Clean up (end) the plugin's connection to its JComboBox widget. |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
int |
selectionIndex()
Returns the selected choice in the JComboBox. |
void |
setSelectionIndex(int selectionIndex,
boolean isEnabled)
Sets the selected choice and whether the JCombobox is enabled |
void |
setTitlesFromObjects(Object[] objects)
Sets the titles in the plugin's JComboBox. |
void |
setValueFormatter(Object formatter)
Sets a formatter for the available choices (titles) in the JComboBox, which will format an array of objects coming from the EOValueSelectionAssociation into displayed strings. |
String[] |
titles()
Returns an array of available titles in the plugin's combo box |
Object |
valueFormatter()
Returns the format set with setValueFormatter . |
String[] |
widgetKeysTaken()
Returns an array of Strings which represent outlet names in Interface Builder These outlets are disabled by Interface Builder once the button is connected to this plugins association. |
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 EOSwingComboBoxPlugin(EOWidgetAssociation association, Object widget)
association
- Association of class EOValueSelectionAssociation or subclass for the plugin to usewidget
- Widget of class JComboBox or subclass that the plugin will manageMethod Detail |
---|
public void establishConnection()
establishConnection
in class EOWidgetAssociation.WidgetPlugin
public void breakConnection()
breakConnection
in class EOWidgetAssociation.WidgetPlugin
public String[] widgetKeysTaken()
widgetKeysTaken
in class EOWidgetAssociation.WidgetPlugin
public void setTitlesFromObjects(Object[] objects)
If objects is null
, clear out titles -- (only invoked if EOAssociation.TitlesAspect is bound).
setTitlesFromObjects
in class EOValueSelectionAssociation.ValueSelectionPlugin
objects
- an object array of the choices to display in the combo boxpublic String[] titles()
titles
in class EOValueSelectionAssociation.ValueSelectionPlugin
public void setSelectionIndex(int selectionIndex, boolean isEnabled)
setSelectionIndex
in class EOValueSelectionAssociation.ValueSelectionPlugin
selectionIndex
- the selected choice, as an index into the array of titlesisEnabled
- whether or not the JComboBox will be enabledpublic int selectionIndex()
selectionIndex
in class EOValueSelectionAssociation.ValueSelectionPlugin
public void setValueFormatter(Object formatter)
setValueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
formatter
- an object of class Format or subclass whose format(Object) method will be called for each title displayedpublic Object valueFormatter()
setValueFormatter
.
valueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
public void actionPerformed(ActionEvent event)
widgetSelectionDidChange
on this plugin's EOValueSelectionAssociation.
actionPerformed
in interface ActionListener
event
- the ActionEvent received from the AWT event dispatcher
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |