|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.control.MouseFocusObserver
bibliothek.gui.dock.security.SecureMouseFocusObserver
public class SecureMouseFocusObserver
A FocusController
which relies on GlassedPanes
.
Field Summary | |
---|---|
private java.util.List<GlassedPane> |
panes
A list of GlassPanes which know this controller |
Constructor Summary | |
---|---|
SecureMouseFocusObserver(DockController controller)
Creates a new FocusController for controller . |
Method Summary | |
---|---|
void |
addGlassPane(GlassedPane pane)
Registers a new GlassPane. |
void |
check(java.awt.AWTEvent event)
Lets check this controller whether the focus should change, or not. |
static boolean |
isRequested()
Tells whether SecureFocusController is preferred over a
FocusController or not. |
void |
kill()
Stops this FocusController. |
void |
removeGlassPane(GlassedPane pane)
Unregisters a previously added GlassPane. |
Methods inherited from class bibliothek.gui.dock.control.MouseFocusObserver |
---|
addVetoListener, check, check, dockableDrag, dockableFocused, dockablePut, dockableRegistered, dockableRegistering, dockableUnregistered, dockStationRegistered, dockStationRegistering, dockStationUnregistered, fireVetoDockable, fireVetoTitle, getController, getDockable, interact, removeVetoListener, titleBinded, titleUnbinded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<GlassedPane> panes
Constructor Detail |
---|
public SecureMouseFocusObserver(DockController controller)
controller
.
controller
- the owner of this FocusControllerMethod Detail |
---|
public static boolean isRequested()
SecureFocusController
is preferred over a
FocusController
or not. The result is determined by
a call to the SecurityManager.
true
if a SecureFocusController
should be
used.public void check(java.awt.AWTEvent event)
MouseFocusObserver
event
is
allowed to change the focus or not. This check can be done through the
method MouseFocusObserver.interact(AWTEvent)
.
check
in class MouseFocusObserver
event
- The event to react on.MouseFocusObserver.interact(AWTEvent)
public void addGlassPane(GlassedPane pane)
pane
- the new panepublic void removeGlassPane(GlassedPane pane)
pane
- the pane to removepublic void kill()
MouseFocusObserver
kill
in class MouseFocusObserver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |