|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
ilog.views.appframe.swing.docking.DockingEvent
public class DockingEvent
The docking event emitted by the docking area when a docking event has occurred.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||