|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.common.CGridArea
public class CGridArea
In a CGridArea
normalized CDockable
can be shown. Clients
should use getComponent()
to gain access to a JComponent
that
represents this area.
Constructor Summary | |
---|---|
CGridArea(CControl control,
String uniqueId,
boolean workingArea)
Creates a new grid area. |
Method Summary | |
---|---|
CDockable |
asDockable()
If this station is a CDockable as well, then this method returns
the representation of this station as CDockable . |
void |
deploy(CGrid grid)
Adds all the elements in grid to this area. |
JComponent |
getComponent()
Gets the JComponent which represents this station. |
SplitDockStation |
getStation()
Gets the internal representation of this CStation . |
CLocation |
getStationLocation()
Gets a location which represents directly CStation.getStation() . |
String |
getUniqueId()
Gets the unique id of this area. |
boolean |
isWorkingArea()
Tells whether this station is a special working area or not. |
void |
setControl(CControlAccess access)
Called by CControl when this CStation is added or removed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CGridArea(CControl control, String uniqueId, boolean workingArea)
control
- the control for which this area will be useduniqueId
- a unique uniqueIdworkingArea
- whether this is a working area
Method Detail |
---|
public JComponent getComponent()
JComponent
which represents this station.
public void setControl(CControlAccess access)
CStation
CControl
when this CStation
is added or removed.
There are two actions which most stations might want to do:add
methods for DockStation
s of CStateManager
.
That will ensure that the station can be used as minimize/normalize/... area.ResizeRequestListener
to CControl
in order to be
informed when resize requests are to be handled.
setControl
in interface CStation
access
- access to the internals of the CControl
that uses
this station or null
to remove all ties from a controlpublic String getUniqueId()
getUniqueId
in interface CStation
public SplitDockStation getStation()
CStation
CStation
.
getStation
in interface CStation
public CLocation getStationLocation()
CStation
CStation.getStation()
.
getStationLocation
in interface CStation
station
public boolean isWorkingArea()
CStation
isWorkingArea
in interface CStation
true
if this is a working area, false
otherwisepublic CDockable asDockable()
CStation
CDockable
as well, then this method returns
the representation of this station as CDockable
.
asDockable
in interface CStation
null
public void deploy(CGrid grid)
grid
to this area.
grid
- the new layout of this area
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |