|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.screen.window.DefaultScreenDockWindowFactory
public class DefaultScreenDockWindowFactory
A default implementation of ScreenDockWindowFactory
.
Nested Class Summary | |
---|---|
static class |
DefaultScreenDockWindowFactory.Kind
The kind of window that can be produced |
Constructor Summary | |
---|---|
DefaultScreenDockWindowFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultScreenDockWindowFactory()
Method Detail |
---|
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()
null
public void setTitleText(String titleText)
titleText
- the text, null
if the text
of the Dockable
should be usedpublic 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 window
null
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |