WebObjects 5.2

com.webobjects.eointerface.swing
Class EOSwingTreePlugin

java.lang.Object
  |
  +--com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
        |
        +--com.webobjects.eointerface.EOTreeAssociation.TreePlugin
              |
              +--com.webobjects.eointerface.swing.EOSwingTreePlugin
All Implemented Interfaces:
EOWidgetAssociation.WidgetPlugin.Formatting, EventListener, NSDisposable, TreeSelectionListener, TreeWillExpandListener

public class EOSwingTreePlugin
extends EOTreeAssociation.TreePlugin
implements TreeWillExpandListener, TreeSelectionListener, EOWidgetAssociation.WidgetPlugin.Formatting


Inner classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
EOWidgetAssociation.WidgetPlugin.Formatting
 
Constructor Summary
EOSwingTreePlugin(EOWidgetAssociation association, Object widget)
           
 
Method Summary
 void breakConnection()
          Removes the receiver from its EOAssociation and display object.
 void establishConnection()
          Overridden by subclasses to attach the receiver to its display object, and to otherwise configure the display object.
 void setRootObject(Object root)
           
 void setRootObjectChildren(NSArray objects)
           
 void setValueFormatter(Object formatter)
          Set the formatter for this plugin's text component.
 void treeWillCollapse(TreeExpansionEvent event)
           
 void treeWillExpand(TreeExpansionEvent event)
           
 void valueChanged(TreeSelectionEvent event)
           
 Object valueFormatter()
          Returns the Format for this plugin's text component.
 
Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
association, dispose, unacceptableAspects, widget, widgetKeysTaken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOSwingTreePlugin

public EOSwingTreePlugin(EOWidgetAssociation association,
                         Object widget)
Method Detail

breakConnection

public void breakConnection()
Description copied from class: EOWidgetAssociation.WidgetPlugin
Removes the receiver from its EOAssociation and display object. Subclasses should override this method to clear references to the display object and association and invoke super's implementation at the end.
Overrides:
breakConnection in class EOWidgetAssociation.WidgetPlugin

establishConnection

public void establishConnection()
Description copied from class: EOWidgetAssociation.WidgetPlugin
Overridden by subclasses to attach the receiver to its display object, and to otherwise configure the display object. Subclasses should invoke super's implementation after establishing their own connections.
Overrides:
establishConnection in class EOWidgetAssociation.WidgetPlugin

setRootObject

public void setRootObject(Object root)
Overrides:
setRootObject in class EOTreeAssociation.TreePlugin

setRootObjectChildren

public void setRootObjectChildren(NSArray objects)
Overrides:
setRootObjectChildren in class EOTreeAssociation.TreePlugin

setValueFormatter

public void setValueFormatter(Object formatter)
Set the formatter for this plugin's text component.
Specified by:
setValueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formatting
Parameters:
formatter - of type Format

treeWillCollapse

public void treeWillCollapse(TreeExpansionEvent event)
                      throws ExpandVetoException
Specified by:
treeWillCollapse in interface TreeWillExpandListener

treeWillExpand

public void treeWillExpand(TreeExpansionEvent event)
                    throws ExpandVetoException
Specified by:
treeWillExpand in interface TreeWillExpandListener

valueChanged

public void valueChanged(TreeSelectionEvent event)
Specified by:
valueChanged in interface TreeSelectionListener

valueFormatter

public Object valueFormatter()
Returns the Format for this plugin's text component.
Specified by:
valueFormatter in interface EOWidgetAssociation.WidgetPlugin.Formatting
Returns:
the formatter for this plugin's widget, if one exists

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.