|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.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 |
destory()
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 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 |
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 FlapWindow
flag
- whether to show this windowpublic boolean isWindowVisible()
FlapWindow
isWindowVisible
in interface FlapWindow
true
if the window is shownpublic Rectangle getWindowBounds()
FlapWindow
getWindowBounds
in interface FlapWindow
public void destory()
FlapWindow
destory
in interface FlapWindow
public void repaint()
FlapWindow
repaint
in interface FlapWindow
public boolean isWindowValid()
public boolean containsScreenPoint(Point point)
FlapWindow
point
which is a
point of the screen.
containsScreenPoint
in interface FlapWindow
point
- a point on the screen
true
if this window contains point
public FlapDockStation getStation()
public void setDropInfo(FlapDropInfo dropInfo)
Dockable
will be dropped.
setDropInfo
in interface FlapWindow
dropInfo
- the information or null
public void setDockTitle(DockTitleVersion title)
setDockTitle
in interface FlapWindow
title
- the title or null
public DockTitle getDockTitle()
getDockTitle
in interface FlapWindow
null
public Dockable getDockable()
Dockable
which is shown on this window.
getDockable
in interface FlapWindow
Dockable
or null
public DockableDisplayer getDisplayer()
Dockable
.
null
public void setDockable(Dockable dockable)
Dockable
which will be shown on this window.
setDockable
in interface FlapWindow
dockable
- The Dockable
or null
protected void discardDisplayer()
DockableDisplayer
with a new instance.
protected Container getDisplayerParent()
DockableDisplayer
.
public Insets getDockableInsets()
Dockable
of this window are.
getDockableInsets
in interface FlapWindow
public void updateBounds()
updateBounds
in interface FlapWindow
FlapDockStation.getWindowSize(Dockable)
,
FlapDockStation.getWindowMinSize()
,
FlapDockStation.getExpansionBounds()
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |