WebObjects 5.2

com.webobjects.eogeneration
Class EOTreeController

java.lang.Object
  |
  +--com.webobjects.eoapplication.EOController
        |
        +--com.webobjects.eoapplication.EOComponentController
              |
              +--com.webobjects.eogeneration.EOWidgetController
                    |
                    +--com.webobjects.eogeneration.EOAssociationController
                          |
                          +--com.webobjects.eogeneration.EODefaultActionTrigger
                                |
                                +--com.webobjects.eogeneration.EOTreeController
All Implemented Interfaces:
EOAction.Enabling, EOAssociationConnector, EOEditable, EventListener, MouseListener, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, TreeSelectionListener

public class EOTreeController
extends EODefaultActionTrigger
implements TreeSelectionListener


Inner classes inherited from class com.webobjects.eogeneration.EOWidgetController
EOWidgetController.DefaultAction, EOWidgetController.FormatWidget, EOWidgetController.QueryWidget, EOWidgetController.TableWidget
 
Inner classes inherited from class com.webobjects.eoapplication.EOComponentController
EOComponentController.ActionCollector, EOComponentController.Activation, EOComponentController.EndEditing, EOComponentController.Modal, EOComponentController.ResetUserInterface
 
Inner classes inherited from class com.webobjects.eoapplication.EOController
EOController.Enumeration
 
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Fields inherited from class com.webobjects.eogeneration.EOAssociationController
ControllerDisplayGroupProviderMethodName
 
Fields inherited from class com.webobjects.eoapplication.EOComponentController
Bottom, BottomLeft, BottomRight, Center, Left, Right, Top, TopLeft, TopRight
 
Fields inherited from class com.webobjects.eoapplication.EOController
ControllerAndSubcontrollersEnumeration, ControllerAndSupercontrollersEnumeration, SubcontrollersEnumeration, SupercontrollersEnumeration
 
Fields inherited from interface com.webobjects.eoapplication.EOEditable
AlwaysEditable, IfSupercontrollerEditable, NeverEditable
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Constructor Summary
EOTreeController()
           
EOTreeController(EOXMLUnarchiver unarchiver)
           
 
Method Summary
 boolean allowsDiscontiguousSelection()
           
 boolean allowsMultipleSelection()
           
 String childrenKey()
           
 String expandedIconKey()
           
 String iconKey()
           
 String isLeafKey()
           
 boolean isRootVisible()
           
protected  JComponent mouseListenerViewInWidget()
           
protected  EOAssociation newAssociation(JComponent widget, EODisplayGroup displayGroup, String enabledKey, EODisplayGroup enabledDisplayGroup)
           
protected  JComponent newWidget()
           
 String parentKey()
           
protected  int preferredLabelComponentPosition()
           
protected  boolean preferredUsesLabelComponent()
           
protected  int preferredWidgetAutosizingMask()
           
 String rootKey()
           
 NSArray selectedObjectPaths()
           
 NSArray selectedObjects()
           
protected  void selectionDidChange(NSArray addedObjects, NSArray removedObjects)
           
 void setAllowsDiscontiguousSelection(boolean flag)
           
 void setAllowsMultipleSelection(boolean flag)
           
 void setChildrenKey(String string)
           
 void setExpandedIconKey(String string)
           
 void setIconKey(String string)
           
 void setIsLeafKey(String string)
           
 void setParentKey(String string)
           
 void setRootKey(String string)
           
 void setRootVisible(boolean flag)
           
 void setSelectedObject(Object newSelectedObject)
           
 void setSelectedObjects(NSArray newSelectedObjects)
           
 void setSelectedObjectsWithNumericPaths(NSArray newSelectedNumericPaths)
           
 void setSelectedObjectsWithObjectPaths(NSArray newSelectedObjectPaths)
           
 void setSelectedObjectsWithParentKey(NSArray newSelectedObjects)
           
 void setSelectedObjectWithNumericPath(NSArray newSelectedNumericPath)
           
 void setSelectedObjectWithObjectPath(NSArray newSelectedObjectPath)
           
 void setSelectedObjectWithParentKey(Object newSelectedObject)
           
 void setValueKey(String string)
           
protected  void startListeningToWidget()
           
protected  void stopListeningToWidget()
           
 JTree tree()
           
 void valueChanged(TreeSelectionEvent event)
           
 String valueKey()
           
 
Methods inherited from class com.webobjects.eogeneration.EODefaultActionTrigger
invokesDefaultAction, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setInvokesDefaultAction, triggerDefaultAction
 
Methods inherited from class com.webobjects.eogeneration.EOAssociationController
association, connectionWasBroken, connectionWasEstablished, controllerDisplayGroup, displayGroup, displayGroupProviderMethodName, dispose, disposeAssociations, disposeIfTransient, editability, enabledDisplayGroup, enabledDisplayGroupProviderMethodName, enabledKey, isEditable, prefersContinuousChangeNotification, setAssociation, setDisplayGroup, setDisplayGroupProviderMethodName, setEditability, setEnabledDisplayGroup, setEnabledDisplayGroupProviderMethodName, setEnabledKey, setPrefersContinuousChangeNotification, setSuppressesAssociation, supercontrollerEditabilityDidChange, suppressesAssociation, takeResponsibilityForEditabilityOfAssociation, takeResposibilityForConnectionOfAssociation, toString
 
Methods inherited from class com.webobjects.eogeneration.EOWidgetController
generateComponent, highlightsLabel, labelComponent, labelComponentAlignment, labelComponentPosition, labelComponentWidth, minimumWidgetSize, newLabelComponent, setAlignmentForWidget, setHighlightsLabel, setLabelComponent, setLabelComponentAlignment, setLabelComponentPosition, setLabelComponentWidth, setMinimumWidgetSize, setUsesLabelComponent, setWidget, setWidgetAlignment, toolTipComponent, usesLabelComponent, widget, widgetAlignment
 
Methods inherited from class com.webobjects.eoapplication.EOComponentController
activateFirstFocusComponent, addComponentOfSubcontroller, alignsComponents, canBeTransient, canResizeHorizontally, canResizeVertically, component, componentDidBecomeInvisible, componentDidBecomeVisible, defaultComponentSize, ensureMinimumComponentSizeWithoutSubcontrollers, ensureMinimumSubcontrollerAreaSize, firstFocusComponent, handleTakeValueForUnboundKey, hideInSupercontroller, hideSubcontroller, icon, insets, integrationComponent, integrationComponentDidBecomeInvisible, integrationComponentDidBecomeVisible, isComponentPrepared, isRootComponentController, isVisible, label, lastFocusComponent, makeInvisible, makeVisible, minimumComponentSize, minimumComponentSizeWithoutSubcontrollers, minimumIntegrationComponentSize, minimumSubcontrollerAreaSize, prefersIconOnly, prepareComponent, removeComponentOfSubcontroller, removeTransientSubcontroller, setAlignsComponents, setCanResizeHorizontally, setCanResizeVertically, setComponent, setDefaultComponentSize, setFirstFocusComponent, setIcon, setInsets, setLabel, setLastFocusComponent, setPrefersIconOnly, setSubcontrollerArea, setToolTip, setUsesHorizontalLayout, setVisible, showInSupercontroller, showSubcontroller, subcontrollerArea, subcontrollerMinimumSizeDidChange, subcontrollerWasAdded, subcontrollerWasRemoved, toolTip, usesHorizontalLayout
 
Methods inherited from class com.webobjects.eoapplication.EOController
actionNames, actions, actionWithName, additionalActions, additionalKeyValuePairs, addSubcontroller, breakConnection, breakConnectionToSubcontrollers, canAccessFieldsDirectly, canPerformActionNamed, controllerEnumeration, controllersInEnumeration, controllersWithKeyValuePair, controllersWithKeyValuePairs, controllerWithKeyValuePair, controllerWithKeyValuePairs, defaultActions, disableActionNamed, disposableRegistry, enableActionNamed, enabledActions, establishConnection, establishConnectionToSupercontrollers, handleQueryWithUnboundKey, hierarchicalControllerForKey, hierarchicalValueForKey, invokeMethod, isActionNamedEnabled, isAncestorOfController, isConnected, isSupercontrollerOfController, isTransientExplicitlyForbidden, prepareForNewTask, removeFromSupercontroller, removeSubcontroller, resetActions, setAdditionalActions, setAdditionalKeyValuePair, setAdditionalKeyValuePairs, setConnected, setSupercontroller, setTransientExplicitlyForbidden, setTypeName, subcontrollers, supercontroller, supercontroller, takeValueForKey, takeValueForKeyPath, typeName, unableToSetNullForKey, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOTreeController

public EOTreeController()

EOTreeController

public EOTreeController(EOXMLUnarchiver unarchiver)
Method Detail

allowsDiscontiguousSelection

public boolean allowsDiscontiguousSelection()

allowsMultipleSelection

public boolean allowsMultipleSelection()

childrenKey

public String childrenKey()

expandedIconKey

public String expandedIconKey()

iconKey

public String iconKey()

isLeafKey

public String isLeafKey()

isRootVisible

public boolean isRootVisible()

mouseListenerViewInWidget

protected JComponent mouseListenerViewInWidget()
Overrides:
mouseListenerViewInWidget in class EODefaultActionTrigger

newAssociation

protected EOAssociation newAssociation(JComponent widget,
                                       EODisplayGroup displayGroup,
                                       String enabledKey,
                                       EODisplayGroup enabledDisplayGroup)
Overrides:
newAssociation in class EOAssociationController

newWidget

protected JComponent newWidget()
Overrides:
newWidget in class EOWidgetController

parentKey

public String parentKey()

preferredLabelComponentPosition

protected int preferredLabelComponentPosition()
Overrides:
preferredLabelComponentPosition in class EOWidgetController

preferredUsesLabelComponent

protected boolean preferredUsesLabelComponent()
Overrides:
preferredUsesLabelComponent in class EOWidgetController

preferredWidgetAutosizingMask

protected int preferredWidgetAutosizingMask()
Overrides:
preferredWidgetAutosizingMask in class EOWidgetController

rootKey

public String rootKey()

selectedObjectPaths

public NSArray selectedObjectPaths()

selectedObjects

public NSArray selectedObjects()

selectionDidChange

protected void selectionDidChange(NSArray addedObjects,
                                  NSArray removedObjects)

setAllowsDiscontiguousSelection

public void setAllowsDiscontiguousSelection(boolean flag)

setAllowsMultipleSelection

public void setAllowsMultipleSelection(boolean flag)

setChildrenKey

public void setChildrenKey(String string)

setExpandedIconKey

public void setExpandedIconKey(String string)

setIconKey

public void setIconKey(String string)

setIsLeafKey

public void setIsLeafKey(String string)

setParentKey

public void setParentKey(String string)

setRootKey

public void setRootKey(String string)

setRootVisible

public void setRootVisible(boolean flag)

setSelectedObject

public void setSelectedObject(Object newSelectedObject)

setSelectedObjectWithNumericPath

public void setSelectedObjectWithNumericPath(NSArray newSelectedNumericPath)

setSelectedObjectWithObjectPath

public void setSelectedObjectWithObjectPath(NSArray newSelectedObjectPath)

setSelectedObjectWithParentKey

public void setSelectedObjectWithParentKey(Object newSelectedObject)

setSelectedObjects

public void setSelectedObjects(NSArray newSelectedObjects)

setSelectedObjectsWithNumericPaths

public void setSelectedObjectsWithNumericPaths(NSArray newSelectedNumericPaths)

setSelectedObjectsWithObjectPaths

public void setSelectedObjectsWithObjectPaths(NSArray newSelectedObjectPaths)

setSelectedObjectsWithParentKey

public void setSelectedObjectsWithParentKey(NSArray newSelectedObjects)

setValueKey

public void setValueKey(String string)

startListeningToWidget

protected void startListeningToWidget()
Overrides:
startListeningToWidget in class EODefaultActionTrigger

stopListeningToWidget

protected void stopListeningToWidget()
Overrides:
stopListeningToWidget in class EODefaultActionTrigger

tree

public JTree tree()

valueChanged

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

valueKey

public String valueKey()

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

Copyright © 2003 Apple Computer, Inc.