public class DefaultScreenDockWindowFactory extends java.lang.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.
|
javax.swing.Icon |
getTitleIcon()
Gets the icon which is used in decorated titles.
|
java.lang.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(javax.swing.Icon titleIcon)
Sets the icon which should be used in the decorated title.
|
void |
setTitleText(java.lang.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(javax.swing.Icon titleIcon)
titleIcon
- the icon, null
if the icon of the
Dockable
should be used.public javax.swing.Icon getTitleIcon()
null
public void setTitleText(java.lang.String titleText)
titleText
- the text, null
if the text
of the Dockable
should be usedpublic java.lang.String getTitleText()
null
public ScreenDockWindow updateWindow(ScreenDockWindow window, WindowConfiguration configuration, ScreenDockStation station)
ScreenDockWindowFactory
ScreenDockStation.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 ScreenDockWindowFactory
window
- the currently shown windowconfiguration
- the configuration that was used to create window
station
- the owner of the windownull
or window
means that nothing happenspublic ScreenDockWindow createWindow(ScreenDockStation station, WindowConfiguration configuration)
ScreenDockWindowFactory
station
.createWindow
in interface ScreenDockWindowFactory
station
- the owner of the windowconfiguration
- information about how the window has to look depending on its future
Dockable
and on the current ScreenDockWindowConfiguration
.