|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.event.CVetoClosingEvent
public class CVetoClosingEvent
Event that is delivered to a CVetoClosingListener
before and after a set
of CDockable
s is closed.
Constructor Summary | |
---|---|
CVetoClosingEvent(CControl control,
VetoableDockFrontendEvent source,
CDockable... dockables)
Creates a new event. |
Method Summary | |
---|---|
void |
cancel()
Stops this event from happening |
CControl |
getControl()
Gets the control in whose realm this event was issued. |
CDockable |
getDockable(int index)
Gets the index 'th dockable that is associated with this event. |
int |
getDockableCount()
Gets the number of elements that are associated with this event. |
VetoableDockFrontendEvent |
intern()
Gets the source of this event. |
boolean |
isCancelable()
Tells whether this event can still be canceled or is already bound to happen. |
boolean |
isCanceled()
Tells whether this event has already been canceled. |
boolean |
isExpected()
Tells whether this event was expected. |
Iterator<CDockable> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CVetoClosingEvent(CControl control, VetoableDockFrontendEvent source, CDockable... dockables)
control
- the owner of this eventsource
- the reason for this eventdockables
- the affected dockables (may be only a subset of all affected dockables)Method Detail |
---|
public VetoableDockFrontendEvent intern()
public int getDockableCount()
public CDockable getDockable(int index)
index
'th dockable that is associated with this event.
index
- the index of a dockable
public Iterator<CDockable> iterator()
iterator
in interface Iterable<CDockable>
public CControl getControl()
null
public boolean isCancelable()
true
if a veto will have an effectpublic void cancel()
public boolean isCanceled()
cancel()
has already been calledpublic boolean isExpected()
CVetoClosingListener.closing(CVetoClosingEvent)
was called before
CVetoClosingListener.closed(CVetoClosingEvent)
.CDockable
is closed
in an unexpected way like not using CDockable.setVisible(boolean)
but directly
removing it from its parent DockStation
, or if a new layout (CControl.load(String)
)
is applied and the framework could not guess correctly which elements are going to be replaced.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |