|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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)
Inner 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.WidgetPlugin
public void changedUpdate(DocumentEvent event)
EOValueAssociation.widgetDidBeginEditing
.changedUpdate
in interface DocumentListener
event
- the DocumentEvent received from the AWT event dispatcherpublic boolean endEditing()
endEditing
in class EOValueAssociation.ValuePlugin
true
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.WidgetPlugin
public void focusGained(FocusEvent event)
focusGained
in interface FocusListener
event
- the FocusEvent received from the AWT event dispatcherpublic void focusLost(FocusEvent event)
EOValueAssociation.widgetDidEndEditing
.focusLost
in interface FocusListener
event
- the FocusEvent received from the AWT event dispatcherpublic void insertUpdate(DocumentEvent event)
EOValueAssociation.widgetDidBeginEditing
.insertUpdate
in interface DocumentListener
event
- the DocumentEvent received from the AWT event dispatcherpublic void removeUpdate(DocumentEvent event)
EOValueAssociation.widgetDidBeginEditing
.removeUpdate
in interface DocumentListener
event
- the DocumentEvent received from the AWT event dispatcherpublic void setColors(Object textColor, Object bgColor)
setColors
in class EOTextAssociation.TextPlugin
textColor
- not currently implementedbgColor
- the background color, an object of the Swing class Colorpublic void setFontProperties(int boldState, int italicState)
setFontProperties
in class EOTextAssociation.TextPlugin
boldState
- not currently implementeditalicState
- not currently implementedpublic void setValue(Object value, boolean isEnabled)
setValue
in class EOValueAssociation.ValuePlugin
value
- 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.Formatting
formatter
- of type Formatpublic Object value()
value
in class EOValueAssociation.ValuePlugin
parseObject
methodpublic Object valueFormatter()
valueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
public String[] widgetKeysTaken()
widgetKeysTaken
in class EOWidgetAssociation.WidgetPlugin
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |