WebObjects 5.4.2

com.webobjects.eogeneration
Class EOTreeController

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

public class EOTreeController
extends EODefaultActionTrigger
implements TreeSelectionListener


Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.eogeneration.EOWidgetController
EOWidgetController.DefaultAction, EOWidgetController.FormatWidget, EOWidgetController.QueryWidget, EOWidgetController.TableWidget
 
Nested classes/interfaces inherited from class com.webobjects.eoapplication.EOComponentController
EOComponentController.ActionCollector, EOComponentController.Activation, EOComponentController.EndEditing, EOComponentController.Modal, EOComponentController.ResetUserInterface
 
Nested classes/interfaces inherited from class com.webobjects.eoapplication.EOController
EOController.Enumeration
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Field Summary
 
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.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

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

setChildrenKey

public void setChildrenKey(String string)

childrenKey

public String childrenKey()

setParentKey

public void setParentKey(String string)

parentKey

public String parentKey()

setIsLeafKey

public void setIsLeafKey(String string)

isLeafKey

public String isLeafKey()

setRootKey

public void setRootKey(String string)

rootKey

public String rootKey()

setValueKey

public void setValueKey(String string)

valueKey

public String valueKey()

setIconKey

public void setIconKey(String string)

iconKey

public String iconKey()

setExpandedIconKey

public void setExpandedIconKey(String string)

expandedIconKey

public String expandedIconKey()

setRootVisible

public void setRootVisible(boolean flag)

isRootVisible

public boolean isRootVisible()

setAllowsMultipleSelection

public void setAllowsMultipleSelection(boolean flag)

allowsMultipleSelection

public boolean allowsMultipleSelection()

setAllowsDiscontiguousSelection

public void setAllowsDiscontiguousSelection(boolean flag)

allowsDiscontiguousSelection

public boolean allowsDiscontiguousSelection()

selectedObjects

public NSArray selectedObjects()

selectedObjectPaths

public NSArray selectedObjectPaths()

setSelectedObjectWithNumericPath

public void setSelectedObjectWithNumericPath(NSArray newSelectedNumericPath)

setSelectedObjectsWithNumericPaths

public void setSelectedObjectsWithNumericPaths(NSArray newSelectedNumericPaths)

setSelectedObjectWithObjectPath

public void setSelectedObjectWithObjectPath(NSArray newSelectedObjectPath)

setSelectedObjectsWithObjectPaths

public void setSelectedObjectsWithObjectPaths(NSArray newSelectedObjectPaths)

setSelectedObject

public void setSelectedObject(Object newSelectedObject)

setSelectedObjects

public void setSelectedObjects(NSArray newSelectedObjects)

setSelectedObjectWithParentKey

public void setSelectedObjectWithParentKey(Object newSelectedObject)

setSelectedObjectsWithParentKey

public void setSelectedObjectsWithParentKey(NSArray newSelectedObjects)

selectionDidChange

protected void selectionDidChange(NSArray addedObjects,
                                  NSArray removedObjects)

newWidget

protected JComponent newWidget()
Specified by:
newWidget in class EOWidgetController

startListeningToWidget

protected void startListeningToWidget()
Overrides:
startListeningToWidget in class EODefaultActionTrigger

stopListeningToWidget

protected void stopListeningToWidget()
Overrides:
stopListeningToWidget in class EODefaultActionTrigger

tree

public JTree tree()

mouseListenerViewInWidget

protected JComponent mouseListenerViewInWidget()
Overrides:
mouseListenerViewInWidget in class EODefaultActionTrigger

newAssociation

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

valueChanged

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

Last updated June 2008

Copyright © 2000-2008 Apple Inc.