public class DockableStateEvent extends Object
DockableStateListener
.FLAG_SHOWING
will be set correctly. All the other
flags are not set.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DockableStateEvent(Dockable dockable,
int flags)
Creates a new event.
|
Modifier and Type | Method and Description |
---|---|
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 dockable 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() |
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 userpublic static final int FLAG_SHOWING
Dockable
was either made visible or invisible to the userpublic static final int FLAG_SELECTION
Dockable
is or was selected on its parentpublic static final int FLAG_PARENT_SELECTION
Dockable
changedpublic static final int FLAG_HIERARCHY
Dockable
has changedpublic DockableStateEvent(Dockable dockable, int flags)
dockable
- the dockables that is affectedflags
- all the details about the changespublic 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 versiondockable
changed.Dockable.isDockableShowing()
public boolean didShowingChange()
dockable
changed (whether the user
can now see the dockable or not).Dockable.isDockableShowing()
public boolean didHierarchyChange()
dockable
has changed.