public class DockingEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
DOCKABLE_PANE_ACTIVATED
This event indicates that a dockable pane has been activated.
|
static int |
DOCKABLE_PANE_DEACTIVATED
This event indicates that a dockable pane has been deactivated.
|
static int |
DOCKABLE_PANE_DOCKED
This event indicates that a dockable pane has been docked.
|
static int |
DOCKABLE_PANE_HIDDEN
This event indicates that a dockable pane has been hidden.
|
static int |
DOCKABLE_PANE_MOVED
This event indicates that a floatable window has been moved.
|
static int |
DOCKABLE_PANE_SHOWN
This event indicates that a dockable pane has been shown.
|
static int |
DOCKABLE_PANE_UNDOCKED
This event indicates that a dockable pane has been undocked.
|
static int |
DOCKING_AREA_INITIALIZED
This event indicates that the docking area has been initialized.
|
static int |
DOCKING_FIRST
The first number in the range of IDs used for docking events.
|
static int |
DOCKING_LAST
The last number in the range of IDs used for docking events.
|
static int |
WORKSPACE_ACTIVATED
This event indicates that a workspace configuration has been activated.
|
static int |
WORKSPACE_ADDED
This event indicates that a workspace configuration has been added.
|
static int |
WORKSPACE_DEACTIVATED
This event indicates that a workspace configuration has been deactivated.
|
static int |
WORKSPACE_REINITIALIZED
This event indicates that a workspace configuration has been reinitialized.
|
static int |
WORKSPACE_REMOVED
This event indicates that a workspace configuration has been removed.
|
source| Constructor and Description |
|---|
DockingEvent(int id,
String name)
Constructs a
DockingEvent object with the specified
id and docked container source. |
DockingEvent(int id,
String[] names)
Constructs a
DockingEvent object with the specified
id and docked container sources. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDockableCount()
Returns the number of dockables involved in this docking event.
|
String |
getDockableName()
Returns the name of the dockable involved in this event.
|
String[] |
getDockableNames()
Returns an array of the names of the dockables involved in this event.
|
Point |
getFloatingLocation()
Returns the position of the floating window containing the dockable
that fired this event.
|
int |
getID()
Returns the event type.
|
String |
getOppositeDockableName()
Returns the name of the other dockable involved in the activation change.
|
String |
getWorkspaceName()
Returns the name of the workspace configuration that has been
activated or deactivated.
|
boolean |
isDocked()
Determines whether the dockable that fired this event is docked.
|
boolean |
isUndocked()
Determines whether the dockable that fired this event is undocked.
|
String |
toString() |
getSourcepublic static final int DOCKING_FIRST
public static final int DOCKABLE_PANE_ACTIVATED
public static final int DOCKABLE_PANE_DEACTIVATED
public static final int DOCKABLE_PANE_HIDDEN
public static final int DOCKABLE_PANE_SHOWN
public static final int DOCKABLE_PANE_DOCKED
public static final int DOCKABLE_PANE_UNDOCKED
public static final int DOCKABLE_PANE_MOVED
public static final int WORKSPACE_ADDED
public static final int WORKSPACE_REMOVED
public static final int WORKSPACE_ACTIVATED
public static final int WORKSPACE_DEACTIVATED
public static final int WORKSPACE_REINITIALIZED
public static final int DOCKING_AREA_INITIALIZED
public static final int DOCKING_LAST
public DockingEvent(int id,
String name)
DockingEvent object with the specified
id and docked container source.id - The ID of the docking event.name - The name of the dockable involved in this docking event.public DockingEvent(int id,
String[] names)
DockingEvent object with the specified
id and docked container sources.id - The ID of the docking event.names - The array of names of the dockables involved in this docking
event.public int getID()
public String getDockableName()
getDockableNames() should
be invoked to retrieve the dockables associated with this event.getDockableNames(),
getDockableCount()public String[] getDockableNames()
getDockableName() should
be invoked to retrieve the dockable associated with this event.getDockableName(),
getDockableCount()public int getDockableCount()
getDockableName(),
getDockableNames()public Point getFloatingLocation()
isUndocked() returns true; null otherwise.public boolean isDocked()
true if the dockable is docked; false
otherwise.public boolean isUndocked()
true if the dockable is undocked; false
otherwise.public String getOppositeDockableName()
DOCKABLE_PANE_ACTIVATED, this method
returns the name of the dockable being deactivated.
If the ID of the event is DOCKABLE_PANE_DEACTIVATED, this
method returns the name of the dockable being activated.
If the ID of the event is not one of the two events
DOCKABLE_PANE_ACTIVATED or DOCKABLE_PANE_DEACTIVATED,
this method returns null.public String getWorkspaceName()
WORKSPACE_ACTIVATED,
WORKSPACE_DEACTIVATEDpublic String toString()
toString in class EventObject© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.