WebObjects 5.4.2

com.webobjects.eointerface.swing
Class EOSwingTreePlugin

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

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


Nested Class Summary
 
Nested classes/interfaces 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

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

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

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

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

setRootObject

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

setRootObjectChildren

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

valueChanged

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

treeWillExpand

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

treeWillCollapse

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

Last updated June 2008

Copyright © 2000-2008 Apple Inc.