|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.dock.DockControl.ViewMonitor<T>
T
- the type of dockable of this monitor.private class DockControl.ViewMonitor<T extends bibliothek.gui.dock.common.intern.DefaultCDockable>
Monitor for views and dockables.
Since the underlying dockable framework fires open/close and focus events out of sync this monitor asserts that the events get fired in proper order.
Field Summary | |
---|---|
private boolean |
closedEventFired
Indicates if the clsed event has already been fired. |
private T |
dockable
The dockable monitored. |
private boolean |
openedEventFired
Indicates if the opened event has already been fired. |
private View |
view
The view being monitored. |
Constructor Summary | |
---|---|
DockControl.ViewMonitor(T dockable,
View view)
Creates a focus listener to monitors activation and deactivation of a view. |
Method Summary | |
---|---|
protected boolean |
canCloseView()
Check if the view can be closed. |
void |
closeDockable()
Closes the dockable. |
void |
destroyDockable()
Destroys the dockable. |
void |
externalized(bibliothek.gui.dock.common.intern.CDockable target)
|
protected Component |
findDefaultFocusComponent(Container container)
Searches a suitable focus root starting at the given container. |
void |
fireViewClosed(boolean reopen)
Fires a view closed event. |
void |
fireViewOpened()
Fires a view opened event. |
void |
focusGained(bibliothek.gui.dock.common.intern.CDockable target)
|
void |
focusLost(bibliothek.gui.dock.common.intern.CDockable target)
|
T |
getDockable()
Returns the dockable monitored. |
void |
maximized(bibliothek.gui.dock.common.intern.CDockable target)
|
void |
minimized(bibliothek.gui.dock.common.intern.CDockable target)
|
void |
normalized(bibliothek.gui.dock.common.intern.CDockable target)
|
void |
openDockable()
Resets the state of this monitor and makes the dockable visible. |
void |
requestFocus()
Requests the focus for the dockable. |
protected void |
viewClosed()
Called once a view has been closed. |
protected void |
viewDestroyed()
Called once a view has been destroyed. |
void |
visibilityChanged(bibliothek.gui.dock.common.intern.CDockable target)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final View view
private final T extends bibliothek.gui.dock.common.intern.DefaultCDockable dockable
private volatile boolean openedEventFired
private volatile boolean closedEventFired
Constructor Detail |
---|
public DockControl.ViewMonitor(T dockable, View view)
dockable
- the dockable monitored.view
- the view to monitor.Method Detail |
---|
public void destroyDockable()
This will not ask the view.
public void closeDockable()
protected boolean canCloseView()
true
if the view can be closed.protected void viewDestroyed()
Fires a view close event.
protected void viewClosed()
Fires a view close event.
public T getDockable()
public void openDockable()
protected Component findDefaultFocusComponent(Container container)
container
- the container to search.
null
.public void requestFocus()
public void fireViewOpened()
This event will only be fired once.
public void fireViewClosed(boolean reopen)
reopen
- true
to assert that a view opened event has been fired first.public void focusGained(bibliothek.gui.dock.common.intern.CDockable target)
focusGained
in interface bibliothek.gui.dock.common.event.CFocusListener
public void focusLost(bibliothek.gui.dock.common.intern.CDockable target)
focusLost
in interface bibliothek.gui.dock.common.event.CFocusListener
public void visibilityChanged(bibliothek.gui.dock.common.intern.CDockable target)
visibilityChanged
in interface bibliothek.gui.dock.common.event.CDockableStateListener
public void externalized(bibliothek.gui.dock.common.intern.CDockable target)
externalized
in interface bibliothek.gui.dock.common.event.CDockableStateListener
public void maximized(bibliothek.gui.dock.common.intern.CDockable target)
maximized
in interface bibliothek.gui.dock.common.event.CDockableStateListener
public void minimized(bibliothek.gui.dock.common.intern.CDockable target)
minimized
in interface bibliothek.gui.dock.common.event.CDockableStateListener
public void normalized(bibliothek.gui.dock.common.intern.CDockable target)
normalized
in interface bibliothek.gui.dock.common.event.CDockableStateListener
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG