public interface DockingWindow
Modifier and Type | Method and Description |
---|---|
ActionDelegate |
getActionDelegate()
Provides the optional action delegate responsible for shared buttons and menu items.
|
java.awt.Component |
getComponent()
Provides the component to be displayed by the docking manager.
|
DockingManager |
getDockingManager()
Provides the docking manager specified when
windowAdded() was called. |
javax.swing.ImageIcon |
getIcon()
Provides the graphical icon of the window used for display.
|
java.lang.String |
getID()
Provides the identifier for the window.
|
int |
getMode()
Provides the mode the window is presented.
|
int |
getPreferredHeight()
Provides the preferred height of the component for TOP and BOTTOM locations.
|
int |
getPreferredWidth()
Provides the preferred width of the component for LEFT and RIGHT locations.
|
java.lang.String |
getTitle()
Provides the title of the window used for display.
|
java.lang.String |
getToolTip()
Provides the tooltip of the window used for display.
|
int |
getWindowHeight()
Provides the height when in window mode.
|
int |
getWindowLocation()
Provides the last location of the window passed to the
windowxxx() methods. |
int |
getWindowLocationX()
Provides the location on the x-axis when in window mode.
|
int |
getWindowLocationY()
Provides the location on the y-axis when in window mode.
|
int |
getWindowState()
Provides the state (iconified etc.) when in window mode.
|
int |
getWindowWidth()
Provides the width when in window mode.
|
boolean |
isAutomatic()
Provides if the window may be controlled externally.
|
boolean |
isButtonPressed()
Provides the info whether the window is showing or not (hidden).
|
boolean |
isButtonVisible()
Provides the info whether the control button is visible or not.
|
boolean |
isGrowing()
Provides if the window fills the location completely.
|
boolean |
isWindowMode()
Provides the info whether the window is being displayed as separate window.
|
boolean |
isWindowVisible()
Provides if the window is currently being shown.
|
void |
refresh()
Updates the contents of the docking window.
|
void |
setAutomatic(boolean enable)
Sets if the window may be controlled externally.
|
void |
setButtonPressed(boolean pressed)
Sets the info whether the window is showing or not (hidden).
|
void |
setButtonVisible(boolean visible)
Sets the info whether the control button is visible or not.
|
void |
setGrowing(boolean enable)
Sets if the window fills the location completely.
|
void |
setMode(int mode)
Sets the mode the the window is presented.
|
void |
setPreferredHeight(int height)
Sets the preferred height of the component for TOP and BOTTOM locations.
|
void |
setPreferredWidth(int width)
Sets the preferred width of the component for LEFT and RIGHT locations.
|
void |
setWindowHeight(int height)
Sets the height when in window mode.
|
void |
setWindowLocationX(int locx)
Sets the location on the x-axis when in window mode.
|
void |
setWindowLocationY(int locy)
Sets the location on the y-axis when in window mode.
|
void |
setWindowMode(boolean enable)
Sets the info whether the window is being displayed as separate window.
|
void |
setWindowState(int state)
Sets the state (iconified etc.) when in window mode.
|
void |
setWindowVisible(boolean visible)
Sets the state if the window is currently being shown.
|
void |
setWindowWidth(int width)
Sets the width when in window mode.
|
void |
windowAdded(DockingManager manager,
int location)
Informs the docking window that it was added by the manager.
|
void |
windowBecomesHidden(int location)
Informs the docking window that it will be made invisible by the manager.
|
void |
windowBecomesShown(int location)
Informs the docking window that it will be made visible by the manager.
|
void |
windowIsActive(int location)
Informs the docking window that it is now the active window.
|
void |
windowIsHiding(int location)
Informs the docking window that it was made invisible by the manager.
|
void |
windowIsInactive(int location)
Informs the docking window that it is not the active window any longer.
|
void |
windowIsShowing(int location)
Informs the docking window that it was made visible by the manager.
|
void |
windowRemoved(DockingManager manager,
int location)
Informs the docking window that it was removed by the manager.
|
java.lang.String getID()
java.lang.String getTitle()
java.lang.String getToolTip()
javax.swing.ImageIcon getIcon()
java.awt.Component getComponent()
int getPreferredWidth()
void setPreferredWidth(int width)
width
- The preferred widthint getPreferredHeight()
void setPreferredHeight(int height)
height
- The preferred heightint getMode()
void setMode(int mode)
mode
- The mode (MODE_DOCKING_PINNED, MODE_DOCKING_UNPINNED, ...)boolean isAutomatic()
void setAutomatic(boolean enable)
enable
- The automatic modeboolean isGrowing()
void setGrowing(boolean enable)
enable
- The growing modeboolean isButtonVisible()
void setButtonVisible(boolean visible)
visible
- The visibility flagboolean isButtonPressed()
void setButtonPressed(boolean pressed)
pressed
- The pressed flagboolean isWindowMode()
void setWindowMode(boolean enable)
enable
- The flagint getWindowLocationX()
void setWindowLocationX(int locx)
locx
- The x-axis locationint getWindowLocationY()
void setWindowLocationY(int locy)
locy
- The y-axis locationint getWindowWidth()
void setWindowWidth(int width)
width
- The widthint getWindowHeight()
void setWindowHeight(int height)
height
- The heightint getWindowState()
void setWindowState(int state)
state
- The stateboolean isWindowVisible()
void setWindowVisible(boolean visible)
visible
- The statevoid windowAdded(DockingManager manager, int location)
windowRemoved()
are called.
manager
- The docking managerlocation
- The location (TOP, BOTTOM, LEFT, RIGHT
)void windowRemoved(DockingManager manager, int location)
windowAdded()
are called.
manager
- The docking managerlocation
- The location (TOP, BOTTOM, LEFT, RIGHT
)void windowBecomesShown(int location)
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)void windowBecomesHidden(int location)
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)void windowIsShowing(int location)
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)void windowIsHiding(int location)
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)void windowIsActive(int location)
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)void windowIsInactive(int location)
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)DockingManager getDockingManager()
windowAdded()
was called.
null
if not availablevoid refresh()
ActionDelegate getActionDelegate()
null
if not availableint getWindowLocation()
windowxxx()
methods.
TOP, BOTTOM, LEFT, RIGHT
) or -1Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.