Package bibliothek.gui.dock.common.event
Class CDockableLocationEvent
java.lang.Object
bibliothek.gui.dock.common.event.CDockableLocationEvent
This event object is given to a
Please note that any location can be
CDockableLocationListener if the location or the visibility to the
user of a CDockable changed.Please note that any location can be
null.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCDockableLocationEvent(CDockable dockable, boolean oldShowing, boolean newShowing, CLocation oldLocation, CLocation newLocation) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionGets the dockable whose state changed.Gets the location of the dockable after this eventbooleanTells whether the user can see the dockable after this eventbooleanDeprecated.Gets the location of the dockable before this eventbooleanTells whether the user could see the dockable before this eventbooleanDeprecated.replaced bygetOldShowing()booleanTells whether the location of the dockable changed.booleanTells whether the showing state of the dockable changedbooleanDeprecated.this method gets replaced byisShowingChanged()toString()
-
Constructor Details
-
CDockableLocationEvent
public CDockableLocationEvent(CDockable dockable, boolean oldShowing, boolean newShowing, CLocation oldLocation, CLocation newLocation) Creates a new event.- Parameters:
dockable- the source of the eventoldShowing- the old visibility statenewShowing- the new visibility stateoldLocation- the old location, may benullnewLocation- the new location, may benull
-
-
Method Details
-
getDockable
Gets the dockable whose state changed.- Returns:
- the element whose state changed
-
isLocationChanged
public boolean isLocationChanged()Tells whether the location of the dockable changed.- Returns:
- whether the location changed
-
getOldLocation
Gets the location of the dockable before this event- Returns:
- the old location, can be
null
-
getNewLocation
Gets the location of the dockable after this event- Returns:
- the new location, can be
null
-
isVisibleChanged
@Deprecated @Todo(compatibility=BREAK_MAJOR, priority=ENHANCEMENT, target=VERSION_1_1_3, description="remove this method") public boolean isVisibleChanged()Deprecated.this method gets replaced byisShowingChanged()Tells whether the visibility state of the dockable changed- Returns:
- whether the visibility state changed
-
isShowingChanged
public boolean isShowingChanged()Tells whether the showing state of the dockable changed- Returns:
- whether the showing state changed
-
getOldVisible
@Deprecated @Todo(compatibility=BREAK_MAJOR, priority=ENHANCEMENT, target=VERSION_1_1_3, description="remove this method") public boolean getOldVisible()Deprecated.replaced bygetOldShowing()Tells whether the user could see the dockable before this event- Returns:
- the old visibility state
-
getOldShowing
public boolean getOldShowing()Tells whether the user could see the dockable before this event- Returns:
- the old visibility state
-
getNewVisible
@Todo(compatibility=BREAK_MAJOR, priority=ENHANCEMENT, target=VERSION_1_1_3, description="remove this method") @Deprecated public boolean getNewVisible()Deprecated.replaced bygetNewShowing()Tells whether the user can see the dockable after this event- Returns:
- the new visibility state
-
getNewShowing
public boolean getNewShowing()Tells whether the user can see the dockable after this event- Returns:
- the new visibility state
-
toString
-
getNewShowing()