public class DefaultFlapWindow extends Object implements FlapWindow, MouseListener, MouseMotionListener
FlapDockStation. The window shows one Dockable| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultFlapWindow.DialogParent
A parent of a
DefaultFlapWindow that is a JDialog. |
static interface |
DefaultFlapWindow.Parent
The parent container of a
DefaultFlapWindow. |
| Constructor and Description |
|---|
DefaultFlapWindow(FlapDockStation station,
ButtonPane buttonPane,
DefaultFlapWindow.Parent window)
Constructs a new window.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 DefaultFlapWindowpublic void setWindowVisible(boolean flag)
FlapWindowsetWindowVisible in interface FlapWindowflag - whether to show this windowpublic boolean isWindowVisible()
FlapWindowisWindowVisible in interface FlapWindowtrue if the window is shownpublic Rectangle getWindowBounds()
FlapWindowgetWindowBounds in interface FlapWindowpublic void destroy()
FlapWindowdestroy in interface FlapWindowpublic void repaint()
FlapWindowrepaint in interface FlapWindowpublic Component getComponent()
FlapWindowComponent of this FlapWindowgetComponent 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 screentrue 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)
FlapWindowsetRemoval 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 realmsetController 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 MouseMotionListenerCopyright © 2017 Docking Frames. All rights reserved.