|
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.EOTextAssociation.TextPlugin com.webobjects.eointerface.cocoa.EOCocoaSimpleTextPlugin com.webobjects.eointerface.cocoa.EOCocoaTextFieldPlugin
EOCocoaTextFieldPlugin is used in Cocoa applications to connect text field widgets to EOTextAssociations and EOPickTextAssociations.
Usage:
Association classes: EOTextAssociation, EOPickTextAssociation
Widget classes: NSTextField, NSTextFieldCell, NSFormCell
Value classes: String or other formattable classes
Nested Class Summary |
Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
EOWidgetAssociation.WidgetPlugin.Formatting |
Constructor Summary | |
EOCocoaTextFieldPlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOCocoaTextFieldPlugin for use with association and widget. |
Method Summary | |
void |
breakConnection()
Tells the plugin to halt communication with its NSTextField object. |
boolean |
endEditing()
Asks the plugin to halt editing of its widget in the UI. |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
void |
setColors(Object textColor,
Object bgColor)
Sets the text and background colors for the text field this plugin manages. |
void |
setFontProperties(int boldState,
int italicState)
Sets the bold and italic properties for this plugin's text fields. |
void |
setValue(Object value,
boolean editable)
Sets the attributes of this plugin's text field based on value and isEnabled . |
void |
setValueFormatter(Object formatter)
Sets the formatter used to format values in the interface. |
Object |
value()
|
Object |
valueFormatter()
Returns the formatter object of the receiver. |
Methods inherited from class com.webobjects.eointerface.cocoa.EOCocoaSimpleTextPlugin |
hasChanges, saveEdits, setHasChanges, widgetKeysTaken |
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 EOCocoaTextFieldPlugin(EOWidgetAssociation association, Object widget)
association
- EOValueAssociation for this plugin to communicate withwidget
- the NSTextField or NSMatrix object for this plugin to manageMethod Detail |
public void breakConnection()
breakConnection
in class EOWidgetAssociation.WidgetPlugin
public boolean endEditing()
endEditing
in class EOValueAssociation.ValuePlugin
true
if editing ended successfully, false
if the widget
would not allow editing to end, typically because of a formatting errorpublic void establishConnection()
establishConnection
in class EOCocoaSimpleTextPlugin
public void setColors(Object textColor, Object bgColor)
setColors
in class EOTextAssociation.TextPlugin
textColor
- NSColor object to use to set the text field's text colorbgColor
- NSColor object to use to set teh text field's background colorpublic void setFontProperties(int boldState, int italicState)
setFontProperties
in class EOTextAssociation.TextPlugin
boldState
- If EOAssociation.IgnoreValue, the bold state of the
text field's text is not changed. If EOAssociation.SetValue, the text
of the text field will be bold. If EOAssociation.UnsetValue, the text
of the text field will not be bold.italicState
- If EOAssociation.IgnoreValue, the italic state of the
text field's text is not changed. If EOAssociation.SetValue, the text
of the text field will be italic. If EOAssociation.UnsetValue, the text
of the text field will not be italic.public void setValue(Object value, boolean editable)
value
and isEnabled
.
setValue
in class EOValueAssociation.ValuePlugin
value
- Object to use as display text in this plugin's
text fieldeditable
- if true
, the text field will be editable;
if false
, editing the contents of the text field
will be disabled, but the text will always be selectablepublic void setValueFormatter(Object formatter)
setValueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
formatter
- NSFormatter used to format values in the interfacepublic Object value()
value
in class EOValueAssociation.ValuePlugin
public Object valueFormatter()
EOWidgetAssociation.WidgetPlugin.Formatting
valueFormatter
in interface EOWidgetAssociation.WidgetPlugin.Formatting
|
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 |