|
WebObjects 5.4.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webobjects.eoapplication.EOController
com.webobjects.eoapplication.EOComponentController
com.webobjects.eoapplication.EOWindowController
public abstract class EOWindowController
EOWindowController extends EOComponentController for windows and dialogs. It is a common superclass for more specific controllers, providing common behavior for controllers which handle different kinds of windows. There are methods to deal with the border size, the activation button, user defaults and others.
| Nested Class Summary |
|---|
| 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.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.foundation.NSKeyValueCodingAdditions |
|---|
KeyPathSeparator |
| Constructor Summary | |
|---|---|
EOWindowController()
The (plain) constructor for EOWindowController. |
|
EOWindowController(EOXMLUnarchiver unarchiver)
A constructor for EOWindowController (re-)creating an EOWindowController from the definitions stored in an EOXMLUnarchiver. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Called to notify this controller that the specified ActionEvent has been handled. |
boolean |
activate()
This implementation of activate calls activateWindow
and returns true. |
abstract void |
activateWindow()
Activates the controller's window. |
Dimension |
borderedSizeForComponentSize(Dimension componentSize)
Returns the total size including the border for a specific component size. |
Dimension |
borderSize()
|
protected void |
componentDidBecomeInvisible()
Notification method which is called when this controller's component bomes invisible. |
protected boolean |
componentShouldBeResizable(JComponent component)
Returns whether the component should be configured as being resizable. |
Dimension |
componentSizeForBorderedSize(Dimension componentSize)
Calculates the component size implied by the specified size including the border. |
protected NSArray |
defaultActions()
Returns the array of default actions. |
void |
dispose()
Called when this controller isn't needed anymore. |
protected static Dimension |
generateBorderSizeForRootPaneContainerClass(Class rootPaneContainerWindowClass,
boolean useMenuBar)
Returns the border size for a specific window class, which is the difference between the outer and inner size of the window. |
protected void |
generateComponent()
Actually creates the component for this controller. |
JComponent |
integrationComponent()
Returns the integeration component. |
Dimension |
minimumIntegrationComponentSize()
Returns the minimum size for the integration component. |
protected boolean |
removeTransientSubcontroller(EOController controller)
See the method description in the superclass EOController specification. |
void |
setUsesActivationAction(boolean flag)
Sets whether the activation action is to be used The activation action usually appears within another window's toolbar or menu and will open a new window controlled by this controller. |
void |
setUsesActivationButton(boolean flag)
Sets the flag whether an activation button is used for this window (controller). |
void |
setUsesUserDefaultsWindowLocation(boolean flag)
Sets the flag whether this window will use user-defaults for its window location. |
void |
setUsesUserDefaultsWindowSize(boolean flag)
Sets the flag whether this window will use user-defaults for its window size. |
void |
setWindowPosition(int position)
Sets the window position, as defined by the constants in EOComponentController, for example Left or Center. |
boolean |
usesActivationAction()
Returns whether the activation action is used The activation action usually appears within another window's toolbar or menu and will open a new window controlled by this controller. |
boolean |
usesActivationButton()
Returns whether an activation button is used for this window (controller). |
boolean |
usesUserDefaultsWindowLocation()
Returns whether this window uses user-defaults for its window location. |
boolean |
usesUserDefaultsWindowSize()
Returns whether this window uses user-defaults for its window size. |
protected Dimension |
windowBorderSize()
|
int |
windowPosition()
Returns the window positionas defined by the constants in EOComponentController, for example Left or Center. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EOWindowController()
public EOWindowController(EOXMLUnarchiver unarchiver)
unarchiver - the unarchiver with the stored definitions| Method Detail |
|---|
protected static Dimension generateBorderSizeForRootPaneContainerClass(Class rootPaneContainerWindowClass,
boolean useMenuBar)
rootPaneContainerWindowClass - the window class, must be a subclass of java.awt.Window as well as
implement the interface javax.swing.RootPaneContainer (as does, for example, javax.swing.JWindow)useMenuBar - indicates whether the window will have a menu bar (inside the window)
public void dispose()
dispose in interface NSDisposabledispose in class EOComponentControllerprotected boolean removeTransientSubcontroller(EOController controller)
false
since its subcontroller is not allowed to become transient.
removeTransientSubcontroller in class EOComponentControllercontroller - The subcontroller becoming transient
true if the subcontroller can be allowed to become transient; false otherwiseEOController.disposeIfTransient()public void setUsesActivationButton(boolean flag)
flag - public boolean usesActivationButton()
false otherwisepublic void setUsesActivationAction(boolean flag)
flag - true if the activation action is used; false otherwisepublic boolean usesActivationAction()
true if the activation action is used; false otherwisepublic void setWindowPosition(int position)
Left or Center.
position - the new position, one of the constants defined in EOComponentControllerEOComponentControllerpublic int windowPosition()
Left or Center.
EOComponentControllerpublic void setUsesUserDefaultsWindowSize(boolean flag)
flag - false otherwisepublic boolean usesUserDefaultsWindowSize()
false otherwisepublic void setUsesUserDefaultsWindowLocation(boolean flag)
flag - false otherwisepublic boolean usesUserDefaultsWindowLocation()
false otherwiseprotected void componentDidBecomeInvisible()
componentDidBecomeInvisible in class EOComponentControllerprotected void generateComponent()
generateComponent in class EOComponentControllerprotected boolean componentShouldBeResizable(JComponent component)
component - The component in question
true if resizable; false otherwisepublic JComponent integrationComponent()
component.
integrationComponent in class EOComponentControllerpublic Dimension minimumIntegrationComponentSize()
minimumIntegrationComponentSize in class EOComponentControllerprotected Dimension windowBorderSize()
public Dimension borderSize()
public Dimension borderedSizeForComponentSize(Dimension componentSize)
componentSize - the component size
public Dimension componentSizeForBorderedSize(Dimension componentSize)
componentSize - the borderd size (the component size including border)
protected NSArray defaultActions()
defaultActions in class EOControllerEOActionsEOController.actions(),
EOController.resetActions()public abstract void activateWindow()
public boolean activate()
activate calls activateWindow
and returns true.
activate in interface EOComponentController.ActivationtrueEOWindowController.activateWindow()public void actionPerformed(ActionEvent event)
EOSwingUtilities.eventEnded().
actionPerformed in interface ActionListenerevent - the action event that has been handled (performed)
|
Last updated June 2008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||