|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DockableDisplayer
A panel which shows one Dockable
and one DockTitle
. The location
of the DockTitle
is at one of the four borders (left,
right, top, bottom). The title may be null
, in this case only
the Dockable is shown.
Clients using a displayer should try to set the controller
and the station
property.
DisplayerCollection
,
DisplayerFactory
Nested Class Summary | |
---|---|
static class |
DockableDisplayer.Location
The four possible locations of the title |
Method Summary | |
---|---|
void |
addDockableDisplayerListener(DockableDisplayerListener listener)
Adds listener to this displayer. |
Component |
getComponent()
Gets the Component which represents this displayer. |
DockController |
getController()
Gets the controller for which this displayer is used. |
Dockable |
getDockable()
Gets the Dockable which is shown on this displayer. |
Insets |
getDockableInsets()
Gets an estimate of the insets around the Dockable of this
displayer compared to the whole size of this displayer. |
DockStation |
getStation()
Gets the station on which this displayer might be shown. |
DockTitle |
getTitle()
Gets the title which is shown on this displayer. |
DockableDisplayer.Location |
getTitleLocation()
Gets the location of the title in respect to the Dockable. |
void |
removeDockableDisplayerListener(DockableDisplayerListener listener)
Removes listener from this displayer. |
void |
setController(DockController controller)
Sets the controller for which this displayer is used. |
void |
setDockable(Dockable dockable)
Sets the Dockable which should be shown on this displayer. |
void |
setStation(DockStation station)
Sets the station on which this displayer is shown. |
void |
setTitle(DockTitle title)
Sets the title of this displayer. |
void |
setTitleLocation(DockableDisplayer.Location location)
Sets the location of the title in respect to the Dockable. |
boolean |
titleContains(int x,
int y)
Tells whether the point x/y is inside the title of this
displayer or not. |
Method Detail |
---|
void setController(DockController controller)
controller
- the controller, can be null
DockController getController()
null
void addDockableDisplayerListener(DockableDisplayerListener listener)
listener
to this displayer.
listener
- the new listener, not null
void removeDockableDisplayerListener(DockableDisplayerListener listener)
listener
from this displayer.
listener
- the listener to removevoid setStation(DockStation station)
station
- the station or null
DockStation getStation()
null
Dockable getDockable()
null
void setDockable(Dockable dockable)
null
means that no Dockable should be visible at all.
dockable
- the child, can be null
DockableDisplayer.Location getTitleLocation()
void setTitleLocation(DockableDisplayer.Location location)
location
- the location, a value of null
is transformed
into the default-valueDockTitle getTitle()
null
void setTitle(DockTitle title)
null
,
no title is visible. The displayer will change the
orientation
of the title.
title
- the title or null
boolean titleContains(int x, int y)
x/y
is inside the title of this
displayer or not.
x
- the x-coordinate, relatively to this componenty
- the y-coordinate, relatively to this component
true
if the title contains the pointInsets getDockableInsets()
Dockable
of this
displayer compared to the whole size of this displayer.
Component getComponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |