|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.mode.CStationContainerHistoryRewriter
public class CStationContainerHistoryRewriter
The CStationContainerHistoryRewriter tries to ensure that a CDockable stays on the
same CStationContainer when changing the ExtendedMode.
| Constructor Summary | |
|---|---|
CStationContainerHistoryRewriter(CControl control)
Creates a new rewriter |
|
| Method Summary | |
|---|---|
protected CStationContainer |
getContainer(CStation<?> child)
Searches the CStationContainer which is the parent of child. |
CControl |
getControl()
Gets the CControl that is using this rewriter. |
protected CStation<?> |
getMatchingStation(Dockable dockable,
ExtendedMode mode)
Searches a CStation which could be the new parent of dockable
if it should be in mode mode. |
protected CStation<?> |
getMatchingStation(Dockable dockable,
String root)
Given the current location of dockable and the root station it is going
to use, this method decides which CStation is actually going to be the new parent
root station. |
protected CStation<?> |
getParent(Dockable dockable)
Gets the first parent CStation of dockable. |
Location |
rewrite(Dockable dockable,
CLocationMode mode,
Location history)
Checks whether the history object history is still valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CStationContainerHistoryRewriter(CControl control)
control - provides the list of CStationContainers to check| Method Detail |
|---|
public CControl getControl()
CControl that is using this rewriter.
protected CStation<?> getMatchingStation(Dockable dockable,
String root)
dockable and the root station it is going
to use, this method decides which CStation is actually going to be the new parent
root station.
dockable - the element that is going to be moved aroundroot - the new root station
root, a value of null means that
root should be used.
protected CStation<?> getMatchingStation(Dockable dockable,
ExtendedMode mode)
CStation which could be the new parent of dockable
if it should be in mode mode.
dockable - the element for which a new parent is searchedmode - the mode element should be in
nullprotected CStation<?> getParent(Dockable dockable)
CStation of dockable.
dockable - some dockable whose parent station is searched
null if not foundprotected CStationContainer getContainer(CStation<?> child)
CStationContainer which is the parent of child.
child - some CStation whose parent is searched
child or null
public Location rewrite(Dockable dockable,
CLocationMode mode,
Location history)
HistoryRewriterhistory is still valid.
rewrite in interface HistoryRewriter<Location,CLocationMode>dockable - the element which is about to change its modemode - the mode that is going to be appliedhistory - the history object that will be forwarded to mode, may be null
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||