|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.eoapplication.EOController | +--com.webobjects.eoapplication.EOComponentController | +--com.webobjects.eoapplication.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.
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.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.NSKeyValueCoding |
NullValue |
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 definitionsMethod Detail |
public void actionPerformed(ActionEvent event)
EOSwingUtilities.eventEnded()
.actionPerformed
in interface ActionListener
event
- the action event that has been handled (performed)public boolean activate()
activate
calls activateWindow
and returns true
.activate
in interface EOComponentController.Activation
true
activateWindow()
public abstract void activateWindow()
public Dimension borderSize()
public Dimension borderedSizeForComponentSize(Dimension componentSize)
componentSize
- the component sizeprotected void componentDidBecomeInvisible()
componentDidBecomeInvisible
in class EOComponentController
protected boolean componentShouldBeResizable(JComponent component)
component
- The component in questiontrue
if resizable; false
otherwisepublic Dimension componentSizeForBorderedSize(Dimension componentSize)
componentSize
- the borderd size (the component size including border)protected NSArray defaultActions()
defaultActions
in class EOController
EOAction
spublic void dispose()
dispose
in class EOComponentController
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)protected void generateComponent()
generateComponent
in class EOComponentController
public JComponent integrationComponent()
component
.integrationComponent
in class EOComponentController
public Dimension minimumIntegrationComponentSize()
minimumIntegrationComponentSize
in class EOComponentController
protected boolean removeTransientSubcontroller(EOController controller)
false
since its subcontroller is not allowed to become transient.removeTransientSubcontroller
in class EOComponentController
controller
- The subcontroller becoming transienttrue
if the subcontroller can be allowed to become transient; false
otherwisepublic void setUsesActivationAction(boolean flag)
flag
- true
if the activation action is used; false
otherwisepublic void setUsesActivationButton(boolean flag)
flag
- public void setUsesUserDefaultsWindowLocation(boolean flag)
flag
- false
otherwisepublic void setUsesUserDefaultsWindowSize(boolean flag)
flag
- false
otherwisepublic void setWindowPosition(int position)
Left
or Center
.position
- the new position, one of the constants defined in EOComponentControllerEOComponentController
public boolean usesActivationAction()
true
if the activation action is used; false
otherwisepublic boolean usesActivationButton()
false
otherwisepublic boolean usesUserDefaultsWindowLocation()
false
otherwisepublic boolean usesUserDefaultsWindowSize()
false
otherwiseprotected Dimension windowBorderSize()
public int windowPosition()
Left
or Center
.EOComponentController
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |