org.universAAL.ui.gui.swing.bluesteelLAF
Class Init

Package class diagram package Init
java.lang.Object
  extended by org.universAAL.ui.gui.swing.bluesteelLAF.Init
All Implemented Interfaces:
InitInterface

public class Init
extends Object
implements InitInterface

the initialization class.

Author:
amedrano

Field Summary
static String CONF_PREFIX
           
 
Constructor Summary
Init()
           
 
Method Summary
 ColorLAF getColorLAF()
           
 JDesktopPane getDesktop()
           
static Init getInstance(Renderer render)
           
 String getMessage(String key)
          get the Internationalized message corresponding to the provided Key
 void install(Renderer render)
          The procedure of installing the LAF.
 boolean isWindowed()
          Tells whether the frame should be full screen or windowed.
 void processPrefs(UIRequest currentDialog)
           
 void showLoginScreen()
          Show the Login dialog.
 void uninstall()
          The procedure of uninstalling the LAF.
 void userLogIn(User usr)
          When a user logs in this method is called.
 void userLogOff(User usr)
          When a user logs off this method is called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONF_PREFIX

public static final String CONF_PREFIX
See Also:
Constant Field Values
Constructor Detail

Init

public Init()
Method Detail

install

public void install(Renderer render)
The procedure of installing the LAF. Any actions needed to use the LAF package should be done here.
For example initializing the UIManager.

Specified by:
install in interface InitInterface

getColorLAF

public ColorLAF getColorLAF()

uninstall

public void uninstall()
Description copied from interface: InitInterface
The procedure of uninstalling the LAF. Any actions needed to stop using the LAF package, and leave the swing system as default should be done here.
For example reestablishing the UIManager.

Specified by:
uninstall in interface InitInterface

userLogIn

public void userLogIn(User usr)
Description copied from interface: InitInterface
When a user logs in this method is called. This enables the LAF package to adapt colours and sizes to the user's specific impairments.

Specified by:
userLogIn in interface InitInterface
Parameters:
usr - The user that just logged in.

userLogOff

public void userLogOff(User usr)
Description copied from interface: InitInterface
When a user logs off this method is called. This enables the LAF package to re-adapt colours and sizes.

Specified by:
userLogOff in interface InitInterface
Parameters:
usr - The user that just logged in.

showLoginScreen

public void showLoginScreen()
Description copied from interface: InitInterface
Show the Login dialog. this method then must call Renderer.authenticate(String, String) to complete the login process. NOTE: no need to self call InitInterface.userLogIn(User), that is handled by Renderer.authenticate(String, String) NOTE2: if Renderer.authenticate(String, String) fails no recall this method is done, this method should manage failed attempts.

Specified by:
showLoginScreen in interface InitInterface

getDesktop

public JDesktopPane getDesktop()

getInstance

public static Init getInstance(Renderer render)

processPrefs

public void processPrefs(UIRequest currentDialog)
Parameters:
currentDialog -

getMessage

public String getMessage(String key)
get the Internationalized message corresponding to the provided Key

Parameters:
key - the Key of the message.
Returns:
the string.

isWindowed

public boolean isWindowed()
Tells whether the frame should be full screen or windowed.

Returns:


Copyright © 2014 universAAL Consortium. All Rights Reserved.