Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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

Logger logger = LogFactory.getLogger(AppRegister.class.getName())
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


Member Function Documentation

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

this method is used to clear register

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

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

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

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

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

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

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

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

Returns registered user User or null

Returns:
registered user or null

String cern::laser::guiplatform::util::AppRegister::getRegisteredUserName  )  [inline]
 

Returns:
registered user name if there is registered user or in case of LaserConsoleException

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

getter for last Search Window's Setting

Parameters:
windowMode one of Constants.SEARCH_WINDOW_MODE_* constants

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

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

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

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

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

This method registers explorer

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

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

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]
 

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

This method unregisters explorer

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

This method unregisters user


Member Data Documentation

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

key for active list explorer panel

Behaviour cern::laser::guiplatform::util::AppRegister::behaviour = null [private]
 

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

final String cern::laser::guiplatform::util::AppRegister::configurationKey = "actualConfiguraton"
 

key for actual configuration

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

fonts for explorers

final int cern::laser::guiplatform::util::AppRegister::FONT_SIZE_BIG = 22 [private]
 

final int cern::laser::guiplatform::util::AppRegister::FONT_SIZE_SMALL = 18 [private]
 

int cern::laser::guiplatform::util::AppRegister::fontSize [private]
 

AppRegister cern::laser::guiplatform::util::AppRegister::instance = null [static, private]
 

register instance

Configuration cern::laser::guiplatform::util::AppRegister::loadedConfiguration = null [private]
 

this is configuration which is kept localy, currently loaded configuraion

final String cern::laser::guiplatform::util::AppRegister::loggedUserKey = "loggedUser" [private]
 

key for logged user

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

HashMap cern::laser::guiplatform::util::AppRegister::register = null [private]
 

register

JButton cern::laser::guiplatform::util::AppRegister::saveButton = null [private]
 

save button

Category [] cern::laser::guiplatform::util::AppRegister::searchCategories = null [private]
 

this is configuration used by CategorySelectorWindow

SearchWindowSettings cern::laser::guiplatform::util::AppRegister::searchWindowSettings = null [private]
 

Stored Settings of Search Window

Selection cern::laser::guiplatform::util::AppRegister::selection = null [private]
 

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


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:09:35 2009 for ACS Java API by doxygen 1.3.8