public interface WindowData
Definition of an interface for providing (platform-independent) information about a window to be created.
This interface is used in communication with the WindowManager
implementation. The methods it defines can be called to extract all
information necessary for creating a new window object. Usually an
implementation of this interface is created and initialized by tag handler
classes of the window builder tag library.
Modifier and Type | Field and Description |
---|---|
static int |
UNDEFINED
Constant for an undefined coordinate or size information.
|
Modifier and Type | Method and Description |
---|---|
ComponentBuilderData |
getComponentBuilderData()
Returns the current
ComponentBuilderData object. |
Object |
getController()
Returns the new window's controller.
|
int |
getHeight()
Returns the height of the new window.
|
Object |
getIcon()
Returns an icon for the new window.
|
Object |
getMenuBar()
Returns the menu bar for the new window.
|
String |
getTitle()
Returns the window's title.
|
int |
getWidth()
Returns the width of the new window.
|
int |
getXPos()
Returns the X position of the new window.
|
int |
getYPos()
Returns the Y position of the new window.
|
boolean |
isAutoClose()
Returns a flag whether auto-close is active for the new window.
|
boolean |
isCenter()
Returns a flag whether the new window should be centered on the screen.
|
boolean |
isClosable()
Returns a flag whether the new window should have a close icon.
|
boolean |
isCloseOnEsc()
Returns a flag whether the window should close itself if the user presses
the
ESCAPE key. |
boolean |
isIconifiable()
Returns a flag whether the new window should be iconifiable.
|
boolean |
isMaximizable()
Returns a flag whether the new window should be maximizable.
|
boolean |
isResizable()
Returns a flag whether the new window should be resizable.
|
static final int UNDEFINED
int getXPos()
UNDEFINED
if this is
not definedint getYPos()
UNDEFINED
if this is
not definedint getWidth()
UNDEFINED
if this is not
definedint getHeight()
UNDEFINED
if this is not
definedboolean isCenter()
String getTitle()
Object getIcon()
boolean isResizable()
boolean isMaximizable()
boolean isIconifiable()
boolean isClosable()
boolean isAutoClose()
boolean isCloseOnEsc()
ESCAPE
key. This is especially useful for dialog windows.ESCAPE
key should close the windowObject getMenuBar()
Object getController()
Window
interface, so that the
window's controller can be queried by application code.ComponentBuilderData getComponentBuilderData()
ComponentBuilderData
object. This object can
be queried by a WindowManager
implementation to obtain context
information needed for the creation of a window.ComponentBuilderData
objectCopyright © 2016 The JGUIraffe Team. All rights reserved.