|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
bibliothek.gui.dock.common.CMinimizeArea
public class CMinimizeArea
An area where CDockables can be stored in their minimized state. This class is a subclass of JPanel and
can be added anywhere in any frame or dialog. This JPanel uses a BorderLayout and clients may add
additional Components to it, the Components the size and location of the opening window will always
depend on this JPanel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static Path |
TYPE_ID
The result of getTypeId() |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
protected |
CMinimizeArea()
Default constructor doing nothing, subclasses must call init(CControl, String)
after calling this method |
|
CMinimizeArea(CControl control,
String uniqueId)
Creates a new minimize area. |
| Method Summary | |
|---|---|
CDockable |
asDockable()
If this station is a CDockable as well, then this method returns
the representation of this station as CDockable. |
CStationPerspective |
createPerspective()
Returns a new CStationPerspective that represents this station. |
CLocation |
getDropLocation()
Creates a CLocation that can be used to drop a new CDockable on this station
or one of its children stations. |
CFlapDockStation |
getStation()
Gets the internal representation of this CStation. |
CLocation |
getStationLocation()
Gets a location which represents directly CStation.getStation(). |
Path |
getTypeId()
Gets a unique path denoting the type of this station. |
String |
getUniqueId()
Gets the unique uniqueId of this area. |
protected void |
init(CControl control,
String uniqueId)
Initializes the new area, should be called only once by subclasses |
boolean |
isWorkingArea()
Tells whether this station is a special working area or not. |
void |
setControlAccess(CControlAccess access)
Called by CControl when this CStation is added or removed. |
void |
setDirection(FlapDockStation.Direction direction)
Sets the direction into which the tab opens. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Path TYPE_ID
getTypeId()
| Constructor Detail |
|---|
public CMinimizeArea(CControl control,
String uniqueId)
control - the control for which this area will be useduniqueId - the unique uniqueId of this areaprotected CMinimizeArea()
init(CControl, String)
after calling this method
| Method Detail |
|---|
protected void init(CControl control,
String uniqueId)
control - the control for which this area will be useduniqueId - the unique uniqueId of this areapublic void setControlAccess(CControlAccess access)
CStationCControl when this CStation is added or removed.
There are two actions which most stations might want to do:add methods for ModeAreas accessible through the CLocationModeManager.
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.
setControlAccess in interface CStation<CFlapDockStation>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<CFlapDockStation>public Path getTypeId()
CStationMissingPerspectiveStrategy.createStation(String, Path) when loading a layout
as a CPerspective.
getTypeId in interface CStation<CFlapDockStation>null will just be ignored.public CFlapDockStation getStation()
CStationCStation.
getStation in interface CStation<CFlapDockStation>public CStationPerspective createPerspective()
CStationCStationPerspective that represents this station. This method
does not need to set any content of the new perspective. Basically this method just needs to tell
the framework what type of CStationPerspective is needed, not what its content is.
createPerspective in interface CStation<CFlapDockStation>CStation.getTypeId()public CLocation getStationLocation()
CStationCStation.getStation().
getStationLocation in interface CStation<CFlapDockStation>stationpublic CLocation getDropLocation()
CStationCLocation that can be used to drop a new CDockable on this station
or one of its children stations. This method returns the "optimal spot", where the definition
of "optimal spot" is up to the station itself. The default implementations however call
CLocationModeManager.getDropLocation(CStation).
getDropLocation in interface CStation<CFlapDockStation>CDockable or null if this
station is not able to calculate the optimal spot (e.g. because the station is not visible)CDockable.setLocationsAside(CDockable),
CDockable.setLocationsAsideFocused()public boolean isWorkingArea()
CStationCControl.addStation(CStation, boolean))
or must be a SingleCDockable.
isWorkingArea in interface CStation<CFlapDockStation>true if this is a working area, false
otherwisepublic CDockable asDockable()
CStationCDockable as well, then this method returns
the representation of this station as CDockable.
asDockable in interface CStation<CFlapDockStation>nullpublic void setDirection(FlapDockStation.Direction direction)
direction - the direction or null to let the system
decide automatically
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||