|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.ui.UIManager
public final class UIManager
A UI manager registers all the UIs of the applications in order to manage some technical
aspects such as cleaning pending events of a UI losing the focus.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
07/22/2011
Field Summary | |
---|---|
static UIManager |
INSTANCE
The singleton instance. |
private java.util.Set<UI> |
uiRegistered
The UI registered. |
Constructor Summary | |
---|---|
private |
UIManager()
Creates the register. |
Method Summary | |
---|---|
private void |
clearUIEvents(UI ui)
Clears the events in process of the instruments of the given UI. |
void |
registerUI(UI ui)
Registers the given UI. |
void |
unregisterUI(UI ui)
Unregisters the given UI. |
void |
windowGainedFocus(java.awt.event.WindowEvent e)
|
void |
windowLostFocus(java.awt.event.WindowEvent e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final UIManager INSTANCE
private java.util.Set<UI> uiRegistered
Constructor Detail |
---|
private UIManager()
Method Detail |
---|
public void registerUI(UI ui)
ui
- The UI to register. Nothing is done if null.public void unregisterUI(UI ui)
ui
- The UI to unregister.public void windowGainedFocus(java.awt.event.WindowEvent e)
windowGainedFocus
in interface java.awt.event.WindowFocusListener
public void windowLostFocus(java.awt.event.WindowEvent e)
windowLostFocus
in interface java.awt.event.WindowFocusListener
private void clearUIEvents(UI ui)
ui
- The UI to clear.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |