WebObjects 5.2.3

com.webobjects.eointerface
Class EOTextAssociation.TextPlugin

java.lang.Object
  extended bycom.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
      extended bycom.webobjects.eointerface.EOValueAssociation.ValuePlugin
          extended bycom.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.


Nested Class Summary
 
Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
EOWidgetAssociation.WidgetPlugin.Formatting
 
Constructor Summary
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.
 
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 com.webobjects.eointerface.EOValueAssociation.ValuePlugin
endEditing, setValue, useURLAsValue, value
 
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
association, breakConnection, dispose, establishConnection, unacceptableAspects, widget, widgetKeysTaken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 widget
widget - user interface object that the plugin will use for display
Method Detail

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 displayed
bgColor - 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).

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.