com.webobjects.eointerface
Class EOTextAssociation.TextPlugin
java.lang.Object
com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
com.webobjects.eointerface.EOValueAssociation.ValuePlugin
com.webobjects.eointerface.EOTextAssociation.TextPlugin
- All Implemented Interfaces:
- NSDisposable
- Direct Known Subclasses:
- EOCocoaSimpleTextPlugin, EOSwingTextPlugin
- Enclosing class:
- EOTextAssociation
- public abstract static class EOTextAssociation.TextPlugin
- extends EOValueAssociation.ValuePlugin
TextPlugin communicates with a UI widget (NSTextFieldCell or JTextField, for example) on behalf of an EOTextAssociation. The TextPlugin class
defines some basic functionality concrete subclasses must implement for this communication to work.
Method Summary |
abstract void |
setColors(Object textColor,
Object bgColor)
This method sets the foreground and background colors for the text widget. |
abstract void |
setFontProperties(int boldState,
int italicState)
This method sets the font properties (bold and italic) of the text widget. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOTextAssociation.TextPlugin
public EOTextAssociation.TextPlugin(EOWidgetAssociation association,
Object widget)
- Subclasses should override this constructor to do any initialization they need to, but should
call the
super(association, widget)
constructor.
- Parameters:
association
- EOTextAssociation object for which the plugin will handle setting
and getting values on the UI widgetwidget
- user interface object that the plugin will use for display
setColors
public abstract void setColors(Object textColor,
Object bgColor)
- This method sets the foreground and background colors for the text widget.
- Parameters:
textColor
- the color to be used for the text being displayedbgColor
- the background color for the text
setFontProperties
public abstract void setFontProperties(int boldState,
int italicState)
- This method sets the font properties (bold and italic) of the text widget.
- Parameters:
boldState
- one of the following: EOAssociation.SetValue(bold),
EOAssociation.UnsetValue(not bold), EOAssociation.IgnoreValue(not set).italicState
- one of the following: EOAssociation.SetValue(italic),
EOAssociation.UnsetValue(not italic), EOAssociation.IgnoreValue(not set).
Copyright © 2004 Apple Computer, Inc.