|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.flap.DefaultFlapWindow
public class DefaultFlapWindow
This window pops up if the user presses one of the buttons of a
FlapDockStation. The window shows one Dockable
| Nested Class Summary | |
|---|---|
static class |
DefaultFlapWindow.DialogParent
A parent of a DefaultFlapWindow that is a JDialog. |
static interface |
DefaultFlapWindow.Parent
The parent container of a DefaultFlapWindow. |
| Constructor Summary | |
|---|---|
DefaultFlapWindow(FlapDockStation station,
ButtonPane buttonPane,
DefaultFlapWindow.Parent window)
Constructs a new window. |
|
| Method Summary | |
|---|---|
boolean |
containsScreenPoint(java.awt.Point point)
Tells whether this window contains point which is a
point of the screen. |
void |
destroy()
Informs this window that it is no longer used by its owner and will never be used again. |
protected void |
discardDisplayer()
Replaces the current DockableDisplayer with a new instance. |
DockableDisplayer |
getDisplayer()
Gets the displayer used to show a Dockable. |
protected java.awt.Container |
getDisplayerParent()
Gets the container that will become the parent of a DockableDisplayer. |
Dockable |
getDockable()
Gets the Dockable which is shown on this window. |
java.awt.Insets |
getDockableInsets()
Makes a guess how big the insets around the current Dockable
of this window are. |
DockTitle |
getDockTitle()
Gets the title which is currently displayed |
FlapDockStation |
getStation()
Gets the station for which this window is shown. |
java.awt.Rectangle |
getWindowBounds()
Gets the current boundaries of this window in screen coordinates. |
boolean |
isWindowValid()
Tells whether this window is still valid, e.g whether the window can be shown in front of its station. |
boolean |
isWindowVisible()
Tells whether this window is shown or hidden. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
repaint()
Tells this window that is should redraw its entire content. |
void |
setController(DockController controller)
Informs this FlapWindow about the DockController in whose realm |
void |
setDockable(Dockable dockable)
Sets the Dockable which will be shown on this window. |
void |
setDockTitle(DockTitleVersion title)
Sets the title which should be displayed. |
void |
setDropInfo(FlapDropInfo dropInfo)
Sets information where a Dockable will be dropped. |
void |
setWindowVisible(boolean flag)
Shows or hides this window. |
void |
updateBounds()
Recalculates the size and the location of this window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFlapWindow(FlapDockStation station,
ButtonPane buttonPane,
DefaultFlapWindow.Parent window)
station - the station which manages this windowbuttonPane - the buttons on the stationwindow - the window on which to paint this DefaultFlapWindow| Method Detail |
|---|
public void setWindowVisible(boolean flag)
FlapWindow
setWindowVisible in interface FlapWindowflag - whether to show this windowpublic boolean isWindowVisible()
FlapWindow
isWindowVisible in interface FlapWindowtrue if the window is shownpublic java.awt.Rectangle getWindowBounds()
FlapWindow
getWindowBounds in interface FlapWindowpublic void destroy()
FlapWindow
destroy in interface FlapWindowpublic void repaint()
FlapWindow
repaint in interface FlapWindowpublic boolean isWindowValid()
public boolean containsScreenPoint(java.awt.Point point)
FlapWindowpoint which is a
point of the screen.
containsScreenPoint in interface FlapWindowpoint - a point on the screen
true if this window contains pointpublic FlapDockStation getStation()
public void setDropInfo(FlapDropInfo dropInfo)
Dockable will be dropped.
setDropInfo in interface FlapWindowdropInfo - the information or nullpublic void setDockTitle(DockTitleVersion title)
setDockTitle in interface FlapWindowtitle - the title or nullpublic DockTitle getDockTitle()
getDockTitle in interface FlapWindownullpublic Dockable getDockable()
Dockable which is shown on this window.
getDockable in interface FlapWindowDockable or nullpublic DockableDisplayer getDisplayer()
Dockable.
nullpublic void setDockable(Dockable dockable)
Dockable which will be shown on this window.
setDockable in interface FlapWindowdockable - The Dockable or nullprotected void discardDisplayer()
DockableDisplayer with a new instance.
protected java.awt.Container getDisplayerParent()
DockableDisplayer.
public void setController(DockController controller)
FlapWindowFlapWindow about the DockController in whose realm
setController in interface FlapWindowcontroller - the controller or nullpublic java.awt.Insets getDockableInsets()
Dockable
of this window are.
getDockableInsets in interface FlapWindowpublic void updateBounds()
updateBounds in interface FlapWindowFlapDockStation.getWindowSize(Dockable),
FlapDockStation.getWindowMinSize(),
FlapDockStation.getExpansionBounds()public void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||