|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
bibliothek.gui.dock.station.screen.ScreenDockDialog
public class ScreenDockDialog
A Dialog
on which exactly one DockableDisplayer
can be placed.
This dialog has modal
and has no
decorations
. However, the user
can grab the border of the dialog to resize it.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ScreenDockDialog(ScreenDockStation station)
Creates a new dialog. |
|
ScreenDockDialog(ScreenDockStation station,
Dialog dialog)
Creates a new dialog. |
|
ScreenDockDialog(ScreenDockStation station,
Frame frame)
Creates a new dialog. |
Method Summary | |
---|---|
void |
checkRestrictedBounds()
Checks the validity of the bounds of this dialog. |
protected OverpaintablePanel |
createContent()
Creates the component that will be used as content-pane . |
DockableDisplayer |
getDisplayer()
Gets the displayer which is shown on this dialog. |
protected Container |
getDisplayerParent()
Gets the container on which the displayer is shown. |
Insets |
getDockableInsets()
Makes a guess how big the insets of the Dockable compared to
the whole dialog are. |
PropertyValue<BoundaryRestriction> |
getRestriction()
Gets the restrictions of the boundaries of this dialog. |
ScreenDockStation |
getStation()
Gets the station for which this dialog is shown |
void |
setController(DockController controller)
Sets the DockController that is needed to read properties. |
void |
setDisplayer(DockableDisplayer displayer)
Sets the displayer which will be shown on this dialog. |
void |
setRestrictedBounds(int x,
int y,
int width,
int height)
Sets the bounds of this dialog, uses the restrictions
to check the validity of the bounds. |
void |
setRestrictedBounds(Rectangle bounds)
Sets the bounds of this dialog, uses the restrictions
to check the validity of the bounds. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScreenDockDialog(ScreenDockStation station)
station
- the station to which this dialog is responsiblepublic ScreenDockDialog(ScreenDockStation station, Frame frame)
station
- the station to which this dialog is responsibleframe
- the owner of the dialogpublic ScreenDockDialog(ScreenDockStation station, Dialog dialog)
station
- the station to which this dialog is responsibledialog
- the owner of this dialogMethod Detail |
---|
public void setRestrictedBounds(Rectangle bounds)
restrictions
to check the validity of the bounds.
bounds
- the new bounds of this dialogpublic void setRestrictedBounds(int x, int y, int width, int height)
restrictions
to check the validity of the bounds.
x
- the new x-coordinatey
- the new y-coordinatewidth
- the new heightheight
- the new heightpublic void checkRestrictedBounds()
public PropertyValue<BoundaryRestriction> getRestriction()
public ScreenDockStation getStation()
public Insets getDockableInsets()
Dockable
compared to
the whole dialog are.
protected OverpaintablePanel createContent()
content-pane
.
This method is invoked by the constructor.
public void setDisplayer(DockableDisplayer displayer)
displayer
- The displayer. A value of null
just
removes the old displayer.public void setController(DockController controller)
DockController
that is needed to read properties.
controller
- the new controller, can be null
protected Container getDisplayerParent()
public DockableDisplayer getDisplayer()
null
setDisplayer(DockableDisplayer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |