|
WebObjects 5.2.3 | ||||||||||
| 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.EOValueAssociation.ValuePlugin
com.webobjects.eointerface.EOTextAssociation.TextPlugin
com.webobjects.eointerface.swing.EOSwingTextPlugin
EOSwingTextPlugin is a concrete subclass of EOTextAssociation.TextPlugin which is used a Swing JTextComponent (or a EOTextComponentAccess, which includes a JTextComponent).
Associations classes: EOTextAssociation
Widgets classes: JTextComponent (EOTextField) or EOTextComponentAccess (EOTextField, EOTextArea, EOFormCell)
value classes: String or other classes with formatters (Numbers with NSNumberFormatter, NSTimestamp with NSTimestampFormatter)
| Nested Class Summary |
| Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
EOWidgetAssociation.WidgetPlugin.Formatting |
| Constructor Summary | |
EOSwingTextPlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOSwingTextPlugin connected to an association and a UI widget. |
|
| Method Summary | |
void |
breakConnection()
Cleans up (ends) the plugin's connection to its JTextComponent widget. |
void |
changedUpdate(DocumentEvent event)
Conforming to DocumentListener. |
boolean |
endEditing()
Called to halt editing of this plugin's widget. |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
void |
focusGained(FocusEvent event)
Conforming to FocusListener. |
void |
focusLost(FocusEvent event)
Conforming to FocusListener. |
void |
insertUpdate(DocumentEvent event)
Conforming to DocumentListener. |
void |
removeUpdate(DocumentEvent event)
Conforming to DocumentListener. |
void |
setColors(Object textColor,
Object bgColor)
Sets the colors of the text widget. |
void |
setFontProperties(int boldState,
int italicState)
Sets the font properties of the text widget. |
void |
setValue(Object value,
boolean isEnabled)
Sets value as the object to display in the plugin's widget . |
void |
setValueFormatter(Object formatter)
Set the formatter for this plugin's text component. |
Object |
value()
Returns the value of the text widget. |
Object |
valueFormatter()
Returns the Format for this plugin's text component. |
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.EOValueAssociation.ValuePlugin |
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 EOSwingTextPlugin(EOWidgetAssociation association,
Object widget)
association - association of class EOTextAssociation or subclass for the plugin to usewidget - widget of class JTextComponent or subclass,
or a subclass of EOTextComponentAccess (which includes a JTextComponent), that the plugin will manage.| Method Detail |
public void breakConnection()
breakConnection in class EOWidgetAssociation.WidgetPluginpublic void changedUpdate(DocumentEvent event)
EOValueAssociation.widgetDidBeginEditing.
changedUpdate in interface DocumentListenerevent - the DocumentEvent received from the AWT event dispatcherpublic boolean endEditing()
endEditing in class EOValueAssociation.ValuePlugintrue if editing ended successfully, false if this widget
would not allow editing to end, typically because of a formatting errorpublic void establishConnection()
establishConnection in class EOWidgetAssociation.WidgetPluginpublic void focusGained(FocusEvent event)
focusGained in interface FocusListenerevent - the FocusEvent received from the AWT event dispatcherpublic void focusLost(FocusEvent event)
EOValueAssociation.widgetDidEndEditing.
focusLost in interface FocusListenerevent - the FocusEvent received from the AWT event dispatcherpublic void insertUpdate(DocumentEvent event)
EOValueAssociation.widgetDidBeginEditing.
insertUpdate in interface DocumentListenerevent - the DocumentEvent received from the AWT event dispatcherpublic void removeUpdate(DocumentEvent event)
EOValueAssociation.widgetDidBeginEditing.
removeUpdate in interface DocumentListenerevent - the DocumentEvent received from the AWT event dispatcher
public void setColors(Object textColor,
Object bgColor)
setColors in class EOTextAssociation.TextPlugintextColor - not currently implementedbgColor - the background color, an object of the Swing class Color
public void setFontProperties(int boldState,
int italicState)
setFontProperties in class EOTextAssociation.TextPluginboldState - not currently implementeditalicState - not currently implemented
public void setValue(Object value,
boolean isEnabled)
setValue in class EOValueAssociation.ValuePluginvalue - the new value for the text widget, a String or
other classes with formatters (Numbers with NSNumberFormatter,
NSTimestamp with NSTimestampFormatter)isEnabled - enables or disables editability of the text widgetpublic void setValueFormatter(Object formatter)
setValueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formattingformatter - of type Formatpublic Object value()
value in class EOValueAssociation.ValuePluginparseObject methodpublic Object valueFormatter()
valueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formattingpublic 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 | ||||||||||