|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.dockable.DockableStateEvent
public class DockableStateEvent
An event sent to the DockableStateListener
.
Note: if the hierarchy changed, the flag FLAG_SHOWING
will be set correctly. All the other
flags are not set.
Field Summary | |
---|---|
static int |
FLAG_HIERARCHY
Indicates that the parent of the Dockable has changed |
static int |
FLAG_LOCATION_CHANGED
Indicates that the internal location of the Dockable on its DockStation changed. |
static int |
FLAG_PARENT_LOCATION_CHANGED
Indicates that the internal location of one of the anchestors of the Dockable changed |
static int |
FLAG_PARENT_SELECTION
Indicates that the selection state of a parent of the Dockable changed |
static int |
FLAG_SELECTION
Indicates that the Dockable is or was selected on its parent |
static int |
FLAG_SHOWING
Indicates that the Dockable was either made visible or invisible to the user |
static int |
FLAG_VISIBILITY
Deprecated. use FLAG_SHOWING instead of this flag. This flag will be removed in a future version. |
Constructor Summary | |
---|---|
DockableStateEvent(Dockable dockable,
int flags)
Creates a new event. |
Method Summary | |
---|---|
boolean |
didHierarchyChange()
Tells that the parent of the dockable has changed. |
boolean |
didLocationChange()
Tells whether the position of the dockable on its parent changed. |
boolean |
didParentLocationChange()
Tells whether the position of one of the anchestors of dockable changed. |
boolean |
didParentSelectionChange()
Tells whether the selection state of a parent of the dockable changed. |
boolean |
didSelectionChange()
Tells whether the selection state of the dockable on its parent
changed. |
boolean |
didShowingChange()
Tells whether the visibility of the dockable changed (whether the user
can now see the docable or not). |
boolean |
didVisibilityChange()
Deprecated. use didShowingChange() instead, this method will be removed in a future version |
Dockable |
getDockable()
Gets the element which is affected |
int |
getFlags()
Gets all the changes composed into one bit-array. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FLAG_LOCATION_CHANGED
Dockable
on its DockStation
changed.
public static final int FLAG_PARENT_LOCATION_CHANGED
Dockable
changed
@Deprecated @Todo(compatibility=BREAK_MAJOR, priority=ENHANCEMENT, target=VERSION_1_1_3, description="remove this method") public static final int FLAG_VISIBILITY
FLAG_SHOWING
instead of this flag. This flag will be removed in a future version.Dockable
was either made visible or invisible to the user
public static final int FLAG_SHOWING
Dockable
was either made visible or invisible to the user
public static final int FLAG_SELECTION
Dockable
is or was selected on its parent
public static final int FLAG_PARENT_SELECTION
Dockable
changed
public static final int FLAG_HIERARCHY
Dockable
has changed
Constructor Detail |
---|
public DockableStateEvent(Dockable dockable, int flags)
dockable
- the dockables that is affectedflags
- all the details about the changesMethod Detail |
---|
public Dockable getDockable()
null
public int getFlags()
public boolean didSelectionChange()
dockable
on its parent
changed.
public boolean didParentSelectionChange()
dockable
changed.
public boolean didLocationChange()
dockable
on its parent changed. This means
that DockStation.getDockableProperty(Dockable, Dockable)
would return another result
than before.
public boolean didParentLocationChange()
dockable
changed. This
event is cased if an event with didLocationChange()
was found for one of the anchestors.
@Deprecated @Todo(compatibility=BREAK_MAJOR, priority=ENHANCEMENT, target=VERSION_1_1_3, description="remove this method") public boolean didVisibilityChange()
didShowingChange()
instead, this method will be removed in a future version
dockable
changed.
Dockable.isDockableShowing()
public boolean didShowingChange()
dockable
changed (whether the user
can now see the docable or not).
Dockable.isDockableShowing()
public boolean didHierarchyChange()
dockable
has changed.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |