com.webobjects.eogeneration
Class EOWidgetController
java.lang.Object
com.webobjects.eoapplication.EOController
com.webobjects.eoapplication.EOComponentController
com.webobjects.eogeneration.EOWidgetController
- All Implemented Interfaces:
- EOAction.Enabling, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions
- Direct Known Subclasses:
- EOAssociationController, EORangeWidgetController
public abstract class EOWidgetController
- extends EOComponentController
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, toString, usesHorizontalLayout |
Methods inherited from class com.webobjects.eoapplication.EOController |
actionNames, actions, actionWithName, additionalActions, additionalKeyValuePairs, addSubcontroller, breakConnection, breakConnectionToSubcontrollers, canAccessFieldsDirectly, canPerformActionNamed, connectionWasBroken, connectionWasEstablished, controllerEnumeration, controllersInEnumeration, controllersWithKeyValuePair, controllersWithKeyValuePairs, controllerWithKeyValuePair, controllerWithKeyValuePairs, defaultActions, disableActionNamed, disposableRegistry, disposeIfTransient, 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 |
EOWidgetController
public EOWidgetController()
EOWidgetController
public EOWidgetController(EOXMLUnarchiver unarchiver)
dispose
public void dispose()
- Description copied from class:
EOComponentController
- Prepares the receiver so it is disposed when Java performs garbage collection.
- Specified by:
dispose
in interface NSDisposable
- Overrides:
dispose
in class EOComponentController
toolTipComponent
protected JComponent toolTipComponent()
- Description copied from class:
EOComponentController
- Returns the component that will be used to display tool tip text.
- Overrides:
toolTipComponent
in class EOComponentController
- Returns:
JComponent
the tool tip component for this controller
preferredLabelComponentPosition
protected int preferredLabelComponentPosition()
preferredUsesLabelComponent
protected boolean preferredUsesLabelComponent()
newLabelComponent
protected JComponent newLabelComponent(String label,
int minimumWidth,
boolean appendColon,
int alignment,
boolean highlightLabel)
preferredWidgetAutosizingMask
protected int preferredWidgetAutosizingMask()
generateComponent
protected void generateComponent()
- Description copied from class:
EOComponentController
Invoked when it's necessary to create the receiver's component,
including setting up the subcontroller area. Subclass implementations
of this method usually invoke setComponent
and if necessary
setSubcontrollerArea
. EOComponentController's default implementation
creates an empty EOView to hold subcontroller components.
The layout mechanisms used to integrate the components of controllers
expect that the component is generated with the minimum size possible.
- Overrides:
generateComponent
in class EOComponentController
setLabelComponentPosition
public void setLabelComponentPosition(int position)
labelComponentPosition
public int labelComponentPosition()
setWidgetAlignment
public void setWidgetAlignment(int alignment)
widgetAlignment
public int widgetAlignment()
setLabelComponentAlignment
public void setLabelComponentAlignment(int alignment)
labelComponentAlignment
public int labelComponentAlignment()
setUsesLabelComponent
public void setUsesLabelComponent(boolean flag)
usesLabelComponent
public boolean usesLabelComponent()
setHighlightsLabel
public void setHighlightsLabel(boolean flag)
highlightsLabel
public boolean highlightsLabel()
setLabelComponentWidth
public void setLabelComponentWidth(int labelComponentWidth)
- Sets the receiver's alignment width, the minimum width used for text
labels in its component (and its integrated subcontroller components).
Throws an
IllegalStateException
if the receiver's component is already prepared.
In other words, you can only set the alignment behavior
before the component is generated.
- Parameters:
labelComponentWidth
- the alignment width
labelComponentWidth
public int labelComponentWidth()
- Returns the receiver's alignment width, the minimum width used for text
labels in its component (and its integrated subcontroller components).
- Returns:
- the alignment width
setMinimumWidgetSize
public void setMinimumWidgetSize(Dimension size)
minimumWidgetSize
public Dimension minimumWidgetSize()
newWidget
protected abstract JComponent newWidget()
setAlignmentForWidget
protected void setAlignmentForWidget(JComponent widget,
int alignment)
startListeningToWidget
protected void startListeningToWidget()
stopListeningToWidget
protected void stopListeningToWidget()
setWidget
public void setWidget(JComponent widget)
widget
public JComponent widget()
setLabelComponent
public void setLabelComponent(JComponent labelComponent)
labelComponent
public JComponent labelComponent()
Copyright © 2000-2008 Apple Inc.