public class DefaultScreenDockWindowFactory extends Object implements ScreenDockWindowFactory
ScreenDockWindowFactory.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultScreenDockWindowFactory.Kind
The kind of window that can be produced
|
| Constructor and Description |
|---|
DefaultScreenDockWindowFactory() |
| Modifier and Type | Method and Description |
|---|---|
ScreenDockWindow |
createWindow(ScreenDockStation station,
WindowConfiguration configuration)
Creates a new window which will be used by
station. |
DefaultScreenDockWindowFactory.Kind |
getKind()
Gets the kind of window this factory creates.
|
Icon |
getTitleIcon()
Gets the icon which is used in decorated titles.
|
String |
getTitleText()
Gets the text which is used in decorated titles.
|
boolean |
isShowDockTitle()
Tells whether the
DockTitle is normally shown on the window. |
boolean |
isUndecorated()
Tells whether new windows will be decorated or not.
|
void |
setKind(DefaultScreenDockWindowFactory.Kind kind)
Sets the kind of window that this factory will create
|
void |
setShowDockTitle(boolean showDockTitle)
Sets whether the
DockTitle is normally shown on the window. |
void |
setTitleIcon(Icon titleIcon)
Sets the icon which should be used in the decorated title.
|
void |
setTitleText(String titleText)
Sets the text which is used in decorated titles.
|
void |
setUndecorated(boolean undecorated)
Sets whether the windows created by this factory should be undecorated
or not.
|
ScreenDockWindow |
updateWindow(ScreenDockWindow window,
WindowConfiguration configuration,
ScreenDockStation station)
This method is called if the result of
ScreenDockStation.getOwner() changed, i.e. |
public void setKind(DefaultScreenDockWindowFactory.Kind kind)
kind - the kind of windowpublic DefaultScreenDockWindowFactory.Kind getKind()
public void setUndecorated(boolean undecorated)
undecorated - true if they should not be decorated,
false otherwisepublic boolean isUndecorated()
true if they are not decoratedpublic void setShowDockTitle(boolean showDockTitle)
DockTitle is normally shown on the window.showDockTitle - true if the title is shown, false
otherwisepublic boolean isShowDockTitle()
DockTitle is normally shown on the window.true if shown, false otherwisepublic void setTitleIcon(Icon titleIcon)
titleIcon - the icon, null if the icon of the
Dockable should be used.public Icon getTitleIcon()
nullpublic void setTitleText(String titleText)
titleText - the text, null if the text
of the Dockable should be usedpublic String getTitleText()
nullpublic ScreenDockWindow updateWindow(ScreenDockWindow window, WindowConfiguration configuration, ScreenDockStation station)
ScreenDockWindowFactoryScreenDockStation.getOwner() changed, i.e. if
the ScreenDockStation has a new owner. This method may replace the existing window
with a new window if necessary.updateWindow in interface ScreenDockWindowFactorywindow - the currently shown windowconfiguration - the configuration that was used to create windowstation - the owner of the windownull or window means that nothing happenspublic ScreenDockWindow createWindow(ScreenDockStation station, WindowConfiguration configuration)
ScreenDockWindowFactorystation.createWindow in interface ScreenDockWindowFactorystation - the owner of the windowconfiguration - information about how the window has to look depending on its future
Dockable and on the current ScreenDockWindowConfiguration.Copyright © 2017 Docking Frames. All rights reserved.