cern::laser::guiplatform::util::AppRegister Class Reference

Collaboration diagram for cern::laser::guiplatform::util::AppRegister:
Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean isFontBig ()
boolean isGuestMode ()
void setFontBig (boolean flag)
String getFontName ()
int getFontSize ()
synchronized Configuration getLoadedConfiguration ()
synchronized void registerLoadedConfiguration (Configuration configuration) throws LaserConsoleException
synchronized Behaviour getBehaviour ()
synchronized Selection getSelection ()
void registerObject (Object key, Object obj)
Object getRegisterdObject (Object key)
void removeRegisteredObject (Object key)
void registerUser (User user)
void unregisterUser ()
User getRegisteredUser ()
String getRegisteredUserName ()
void registerActiveListExplorerPanel (ActiveListExplorerPanel explorer)
void unregisterActiveListExplorerPanel ()
ActiveListExplorerPanel getRegisteredActiveListExplorerPanel ()
void cleanRegister ()
void notifyConfigurationChange ()
void registerConfigurationChangeListeners (JButton button)
void clearConfigurationChangeListeners ()
SearchWindowSettings getSearchWindowSettings (int windowMode)
Category[] getSearchCategories ()
void setSearchCategories (Category[] categories)

Static Public Member Functions

static synchronized AppRegister getInstance ()

Public Attributes

final String configurationKey = "actualConfiguraton"

Private Member Functions

 AppRegister ()

Private Attributes

final String loggedUserKey = "loggedUser"
final String activeListExplorerPanelKey = "activeListExplorerPanel"
HashMap register = null
Configuration loadedConfiguration = null
Category[] searchCategories = null
Behaviour behaviour = null
Selection selection = null
JButton saveButton = null
final String FONT_NAME = "Dialog"
final int FONT_SIZE_BIG = 22
final int FONT_SIZE_SMALL = 18
int fontSize
SearchWindowSettings searchWindowSettings = null

Static Private Attributes

static Logger logger = LogFactory.getLogger(AppRegister.class.getName())
static AppRegister instance = null

Detailed Description

This class stores global informations, i. e. GlobalConfiguration objects, etc This class is also used as global register which stores references to different objects. This objects are used inside *Action classes.

Author:
pawlowsk

Constructor & Destructor Documentation

cern::laser::guiplatform::util::AppRegister::AppRegister (  )  [inline, private]

Creates a new instance of AppRegister

References FONT_SIZE_SMALL, and fontSize.

Referenced by getInstance().


Member Function Documentation

void cern::laser::guiplatform::util::AppRegister::cleanRegister (  )  [inline]

this method is used to indicate, that business layer exception occured this method is used to indicate, that business layer exception is solved this method indicates whether is or not business layer exception this method is used to clear register

References behaviour, instance, loadedConfiguration, and logger.

void cern::laser::guiplatform::util::AppRegister::clearConfigurationChangeListeners (  )  [inline]

References saveButton.

synchronized Behaviour cern::laser::guiplatform::util::AppRegister::getBehaviour (  )  [inline]

References behaviour.

String cern::laser::guiplatform::util::AppRegister::getFontName (  )  [inline]

References FONT_NAME.

int cern::laser::guiplatform::util::AppRegister::getFontSize (  )  [inline]

References fontSize.

static synchronized AppRegister cern::laser::guiplatform::util::AppRegister::getInstance (  )  [inline, static]

References AppRegister(), and instance.

synchronized Configuration cern::laser::guiplatform::util::AppRegister::getLoadedConfiguration (  )  [inline]

References loadedConfiguration.

Object cern::laser::guiplatform::util::AppRegister::getRegisterdObject ( Object  key  )  [inline]

This method returns previous registered object

Parameters:
key key
Returns:
object or null
ActiveListExplorerPanel cern::laser::guiplatform::util::AppRegister::getRegisteredActiveListExplorerPanel (  )  [inline]

Returns registered explorer or null

Returns:
registered explorer or null

References activeListExplorerPanelKey.

User cern::laser::guiplatform::util::AppRegister::getRegisteredUser (  )  [inline]

Returns registered user User or null

Returns:
registered user or null

References loggedUserKey.

String cern::laser::guiplatform::util::AppRegister::getRegisteredUserName (  )  [inline]
Returns:
registered user name if there is registered user or in case of LaserConsoleException

References cern::laser::console::User::getName(), loggedUserKey, and logger.

Referenced by isGuestMode().

Category [] cern::laser::guiplatform::util::AppRegister::getSearchCategories (  )  [inline]

getter for last Search Window's Setting

Parameters:
windowMode one of Constants.SEARCH_WINDOW_MODE_* constants

References searchCategories.

SearchWindowSettings cern::laser::guiplatform::util::AppRegister::getSearchWindowSettings ( int  windowMode  )  [inline]

getter for last Search Window's Setting

Parameters:
windowMode one of Constants.SEARCH_WINDOW_MODE_* constants

References searchWindowSettings, and cern::laser::guiplatform::windows::search::SearchWindowSettings::setWindowMode().

synchronized Selection cern::laser::guiplatform::util::AppRegister::getSelection (  )  [inline]

References selection.

boolean cern::laser::guiplatform::util::AppRegister::isFontBig (  )  [inline]

References FONT_SIZE_BIG, and fontSize.

boolean cern::laser::guiplatform::util::AppRegister::isGuestMode (  )  [inline]
void cern::laser::guiplatform::util::AppRegister::notifyConfigurationChange (  )  [inline]

This method is used to change Save button status and configurationChanged variable in ConfigurationPanel

References isGuestMode(), and saveButton.

void cern::laser::guiplatform::util::AppRegister::registerActiveListExplorerPanel ( ActiveListExplorerPanel  explorer  )  [inline]

This method registers explorer

References activeListExplorerPanelKey.

void cern::laser::guiplatform::util::AppRegister::registerConfigurationChangeListeners ( JButton  button  )  [inline]

References saveButton.

synchronized void cern::laser::guiplatform::util::AppRegister::registerLoadedConfiguration ( Configuration  configuration  )  throws LaserConsoleException [inline]
void cern::laser::guiplatform::util::AppRegister::registerObject ( Object  key,
Object  obj 
) [inline]

This method register object in register

Parameters:
key key
obj object which should be registered
void cern::laser::guiplatform::util::AppRegister::registerUser ( User  user  )  [inline]

This method register logged user

Parameters:
user logged user User object

References loggedUserKey.

void cern::laser::guiplatform::util::AppRegister::removeRegisteredObject ( Object  key  )  [inline]

This method removes Objects from register

Parameters:
key key
void cern::laser::guiplatform::util::AppRegister::setFontBig ( boolean  flag  )  [inline]
void cern::laser::guiplatform::util::AppRegister::setSearchCategories ( Category[]  categories  )  [inline]

References searchCategories.

void cern::laser::guiplatform::util::AppRegister::unregisterActiveListExplorerPanel (  )  [inline]

This method unregisters explorer

References activeListExplorerPanelKey.

void cern::laser::guiplatform::util::AppRegister::unregisterUser (  )  [inline]

This method unregisters user

References loggedUserKey.


Member Data Documentation

final String cern::laser::guiplatform::util::AppRegister::activeListExplorerPanelKey = "activeListExplorerPanel" [private]

Behaviour this is used due to fact, that Behaviour should be kept locally

Referenced by cleanRegister(), getBehaviour(), and registerLoadedConfiguration().

key for actual configuration

final String cern::laser::guiplatform::util::AppRegister::FONT_NAME = "Dialog" [private]

fonts for explorers

Referenced by getFontName().

Referenced by isFontBig(), and setFontBig().

Referenced by AppRegister(), and setFontBig().

register instance

Referenced by cleanRegister(), and getInstance().

if network exception ( onException method) occurs this is global value and is used to disable all actions this is configuration which is kept localy, currently loaded configuraion

Referenced by cleanRegister(), getLoadedConfiguration(), and registerLoadedConfiguration().

final String cern::laser::guiplatform::util::AppRegister::loggedUserKey = "loggedUser" [private]
Logger cern::laser::guiplatform::util::AppRegister::logger = LogFactory.getLogger(AppRegister.class.getName()) [static, private]

register

this is configuration used by CategorySelectorWindow

Referenced by getSearchCategories(), and setSearchCategories().

Stored Settings of Search Window

Referenced by getSearchWindowSettings().

Selection this is used due to fact, that Selection should be kept locally

Referenced by getSelection(), and registerLoadedConfiguration().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2