|
||||||||||
| 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(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. |
Component |
getComponent()
Gets the root Component of this FlapWindow |
DockableDisplayer |
getDisplayer()
Gets the displayer used to show a Dockable. |
protected Container |
getDisplayerParent()
Gets the container that will become the parent of a DockableDisplayer. |
Dockable |
getDockable()
Gets the Dockable which is shown on this window. |
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. |
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(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(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 |
setRemoval(boolean removal)
Tells this window whether a drag and drop operation is currently removing its child. |
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 Rectangle getWindowBounds()
FlapWindow
getWindowBounds in interface FlapWindowpublic void destroy()
FlapWindow
destroy in interface FlapWindowpublic void repaint()
FlapWindow
repaint in interface FlapWindowpublic Component getComponent()
FlapWindowComponent of this FlapWindow
getComponent in interface FlapWindownull after FlapWindow.destroy() was calledpublic boolean isWindowValid()
public boolean containsScreenPoint(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 setRemoval(boolean removal)
FlapWindow
setRemoval in interface FlapWindowremoval - whether the child of this window is removedpublic 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.
getDisplayer in interface FlapWindownullpublic 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 Container getDisplayerParent()
DockableDisplayer.
public void setController(DockController controller)
FlapWindowFlapWindow about the DockController in whose realm
setController in interface FlapWindowcontroller - the controller or nullpublic 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(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||