|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vlsolutions.swing.docking.event.DockableStateWillChangeEvent
public class DockableStateWillChangeEvent
An event triggered before a change of dockable state.
Events are triggered when a component is :
Note that event are not triggered by drag-dock moves (they don't correspond to a state change). If you need to track such changes, use a Swing AncestorListener, or override the addNotify method of your dockable component.
It is also possible to track changes after they occur with the DockableStateChangeEvent .
AncestorListener
,
DockableStateWillChangeListener
Constructor Summary | |
---|---|
DockableStateWillChangeEvent(DockableState currentState,
DockableState futureState)
|
Method Summary | |
---|---|
void |
cancel()
Refuse the change of dockable state. |
DockableState |
getCurrentState()
this method will return null when the event is triggered for initial docking |
DockableState |
getFutureState()
Returns the future (proposed) state of the dockable. |
boolean |
isAccepted()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockableStateWillChangeEvent(DockableState currentState, DockableState futureState)
Method Detail |
---|
public DockableState getCurrentState()
public DockableState getFutureState()
cancel()
public void cancel()
The docking action is cancelled.
public boolean isAccepted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |