|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.SplitDockStation.Access
protected class SplitDockStation.Access
Access to this SplitDockStation
.
Constructor Summary | |
---|---|
protected |
SplitDockStation.Access()
|
Method Summary | |
---|---|
void |
addHandle(StationChildHandle dockable,
DockHierarchyLock.Token token)
Adds the new handle to the station and adds
the displayer to the station. |
void |
arm()
Prepares this to fire an event to
DockStationListener.dockablesRepositioned(DockStation, Dockable[]) . |
Leaf |
createLeaf(long id)
Creates a new Leaf . |
Node |
createNode(long id)
Creates a new Node . |
Placeholder |
createPlaceholder(long id)
Creates a new Placeholder . |
Root |
createRoot(long id)
Creates a new Root . |
void |
dockableSelected(Dockable dockable)
|
boolean |
drop(Dockable dockable,
SplitDockProperty property,
SplitNode root)
Tries to add Dockable such that the boundaries given
by property are full filled. |
void |
drop(DockHierarchyLock.Token token,
PutInfo putInfo,
StationDropItem item)
Adds the Dockable given by putInfo to this station. |
void |
fire()
Fires an event to DockStationListener.dockablesRepositioned(DockStation, Dockable[]) . |
StationChildHandle |
getFullScreenDockable()
Gets the DockableDisplayer which is currently in fullscreen-mode. |
SplitDockStation |
getOwner()
Gets the station to which this object grants access. |
SplitPlaceholderSet |
getPlaceholderSet()
Gets the set which keeps track of all placeholders and makes sure that no placeholder is used twice. |
SplitSpanStrategy |
getSpanStrategy()
Gets the object that manages all Span s. |
DockTitleVersion |
getTitleVersion()
Gets the kind of title owner uses. |
boolean |
isArmed()
Tells whether this SplitDockStation.Access currently is withholding events. |
boolean |
isTreeAutoCleanupEnabled()
Tells whether nodes can currently be automatically removed from the tree. |
void |
move(PutInfo putInfo,
StationDropItem item)
Moves the dockable described by putInfo at a new location |
StationChildHandle |
newHandle(Dockable dockable)
Creates a new handle but does not take any other action. |
void |
removeHandle(StationChildHandle handle,
DockHierarchyLock.Token token)
Removes an element from the station. |
void |
repositioned(SplitNode node)
Invoked whenever a node changes its shape. |
void |
setDropInfo(PutInfo putInfo)
Sets the current information telling where and how an item is to be dropped. |
long |
uniqueID()
Creates a unique id for a SplitNode . |
void |
unsetDropInfo()
Resets the information telling where and how an item is to be dropped. |
double |
validateDivider(double divider,
Node node)
Tests whether the given value of the divider is a legal value or not. |
PutInfo |
validatePutInfo(PutInfo putInfo)
Checks whether info is valid or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SplitDockStation.Access()
Method Detail |
---|
public StationChildHandle getFullScreenDockable()
SplitDockAccess
DockableDisplayer
which is currently in fullscreen-mode.
getFullScreenDockable
in interface SplitDockAccess
null
public DockTitleVersion getTitleVersion()
SplitDockAccess
owner
uses.
getTitleVersion
in interface SplitDockAccess
null
public SplitDockStation getOwner()
SplitDockAccess
getOwner
in interface SplitDockAccess
public double validateDivider(double divider, Node node)
SplitDockAccess
validateDivider
in interface SplitDockAccess
divider
- The value of the dividernode
- the node for which the divider is validated
divider
.public StationChildHandle newHandle(Dockable dockable)
SplitDockAccess
newHandle
in interface SplitDockAccess
dockable
- the target for the new handle
public void addHandle(StationChildHandle dockable, DockHierarchyLock.Token token)
SplitDockAccess
handle
to the station and adds
the displayer to the station. Binds the dockable
.
addHandle
in interface SplitDockAccess
dockable
- the new handletoken
- if null
, then a token will be acquired by this method
and this method will fire events, otherwise this methods is executed silentlypublic void removeHandle(StationChildHandle handle, DockHierarchyLock.Token token)
SplitDockAccess
removeHandle
in interface SplitDockAccess
handle
- the element to removetoken
- if null
, then a token will be acquired by this method
and this method will fire events, otherwise this methods is executed silentlypublic boolean drop(Dockable dockable, SplitDockProperty property, SplitNode root)
SplitDockAccess
Dockable
such that the boundaries given
by property
are full filled.
drop
in interface SplitDockAccess
dockable
- a new child of this stationproperty
- the preferred location of the childroot
- the root of all possible parents where the child could be inserted
true
if the child could be added, false
if no location could be foundpublic PutInfo validatePutInfo(PutInfo putInfo)
SplitDockAccess
info
is valid or not.
validatePutInfo
in interface SplitDockAccess
putInfo
- the preferred drop location
info
if it is valid, null
otherwisepublic void repositioned(SplitNode node)
SplitDockAccess
DockStationListener.dockablesRepositioned(bibliothek.gui.DockStation, Dockable[])
for all Dockable
s that are in node
or children of node
.
repositioned
in interface SplitDockAccess
node
- the source of the eventpublic boolean isArmed()
SplitDockStation.Access
currently is withholding events.
public void dockableSelected(Dockable dockable)
public void arm()
this
to fire an event to
DockStationListener.dockablesRepositioned(DockStation, Dockable[])
.
public void fire()
DockStationListener.dockablesRepositioned(DockStation, Dockable[])
.
public long uniqueID()
SplitDockAccess
SplitNode
.
uniqueID
in interface SplitDockAccess
public boolean isTreeAutoCleanupEnabled()
SplitDockAccess
isTreeAutoCleanupEnabled
in interface SplitDockAccess
true
if auto-removal is enabledpublic SplitPlaceholderSet getPlaceholderSet()
SplitDockAccess
getPlaceholderSet
in interface SplitDockAccess
public SplitSpanStrategy getSpanStrategy()
SplitDockAccess
Span
s.
getSpanStrategy
in interface SplitDockAccess
SpanFactory
public Leaf createLeaf(long id)
SplitDockAccess
Leaf
.
createLeaf
in interface SplitDockAccess
id
- the unique identifier of the leaf
public Node createNode(long id)
SplitDockAccess
Node
.
createNode
in interface SplitDockAccess
id
- the unique identifier of the node
public Placeholder createPlaceholder(long id)
SplitDockAccess
Placeholder
.
createPlaceholder
in interface SplitDockAccess
id
- the unique identifier of this placeholder
public Root createRoot(long id)
Root
.
id
- the unique identifier of the new root
public void setDropInfo(PutInfo putInfo)
SplitDockAccess
setDropInfo
in interface SplitDockAccess
putInfo
- the current drop informationpublic void unsetDropInfo()
SplitDockAccess
unsetDropInfo
in interface SplitDockAccess
public void drop(DockHierarchyLock.Token token, PutInfo putInfo, StationDropItem item)
SplitDockAccess
Dockable
given by putInfo
to this station.
drop
in interface SplitDockAccess
token
- if null
, then a token will be acquired by this method
and this method will fire events, otherwise this methods is executed silentlyputInfo
- information about where to drop the new Dockable
item
- detailed information about the drag and drop operation that is going onpublic void move(PutInfo putInfo, StationDropItem item)
SplitDockAccess
dockable
described by putInfo
at a new location
move
in interface SplitDockAccess
putInfo
- description of the new locationitem
- more information about the drag and drop operation that is currently happening
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |