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

cern::laser::guiplatform::windowmanager::AcWindowManager Class Reference

List of all members.

Static Public Member Functions

void openInMode (String modeName, TopComponent component)
void openComponent (String componentName)
void closeComponent (String componentName)
void closeComponents (String[] componentsNames)
void closeAllTopComponents ()
boolean isOpened (String componentName)
TopComponent findTopComponent (String componentName)
void openTopComponent (TopComponent comp, String modeName, int index, int workspaceUsage, URL modeIcon)
void openTopComponent (TopComponent comp, String modeName, int index, int workspaceUsage)
void openTopComponent (TopComponent comp, String modeName)
void activateDefaultWorkspace ()
Workspace findWorkspace ()
void setTableColumns (String componentName, String[] newColumns)
void showDetails (AlarmBean alarm)
void showTimestamps (AlarmBean ab)
void printAllModeNames ()
void createMode (String modeName)
void notifyError (String errorMsg)
void notifyWarning (String warningMsg)
void setStatusText (String text)
void setZeroSelectedNodes (String topComponentName)
void printAllComponents ()
TopComponent findTopComponent (Workspace workspace, String componentName)

Private Member Functions

 AcWindowManager ()

Static Private Attributes

Logger logger
String defaultWorkSpaceName = Constants.ALARM_WORKSPACE_NAME
Workspace defautlWorkspace = findWorkspace()
final Node[] EMPTY_NODE_ARRAY = new Node[0]

Detailed Description

This is Alarm Console window manager. This manager helps with managing windows within Alarm Console.

Author:
pawlowsk


Constructor & Destructor Documentation

cern::laser::guiplatform::windowmanager::AcWindowManager::AcWindowManager  )  [inline, private]
 

Creates a new instance of AcWindowManager This shold be singleton


Member Function Documentation

void cern::laser::guiplatform::windowmanager::AcWindowManager::activateDefaultWorkspace  )  [inline, static]
 

This method activates default workspace

void cern::laser::guiplatform::windowmanager::AcWindowManager::closeAllTopComponents  )  [inline, static]
 

This method closes all apropriate TopComponents after user logout All components should be closed

void cern::laser::guiplatform::windowmanager::AcWindowManager::closeComponent String  componentName  )  [inline, static]
 

This method closes TopComponent in default workspace

Parameters:
componentName component name

void cern::laser::guiplatform::windowmanager::AcWindowManager::closeComponents String[]  componentsNames  )  [inline, static]
 

This method closes all TopComponents

Parameters:
componentsNames TopComponents names not implemented yet, and probably not used

void cern::laser::guiplatform::windowmanager::AcWindowManager::createMode String  modeName  )  [inline, static]
 

This method create mode inside default workspace

TopComponent cern::laser::guiplatform::windowmanager::AcWindowManager::findTopComponent Workspace  workspace,
String  componentName
[inline, static]
 

Utility method: Returns the TopComponent with the given programmatic name in the given workspace, or null if there is no such TopComponent.

Parameters:
workspace the workspace in which to look for the TopComponent
componentName the programmatic name of the TopComponent
Returns:
Returns the TopComponent with the given programmatic name, or null if there is no such TopComponent Method taken from gp.windows.WindowUtil, bug with empty element name fixed

TopComponent cern::laser::guiplatform::windowmanager::AcWindowManager::findTopComponent String  componentName  )  [inline, static]
 

Returns:
TopComponent if can be found null otherwise

Workspace cern::laser::guiplatform::windowmanager::AcWindowManager::findWorkspace  )  [inline, static]
 

This method finds default workspace

Exceptions:
RuntimeException if workspace can not be found

uncomment this is final version if ( alarmWsp == null ) throw new RuntimeException( Constants.ALARM_WORKSPACE_NAME + " not found\n" + " Probably alarm console module is not properly installed");

boolean cern::laser::guiplatform::windowmanager::AcWindowManager::isOpened String  componentName  )  [inline, static]
 

This method checks if topComponent is opened in default workspace

Parameters:
componentName component Name

void cern::laser::guiplatform::windowmanager::AcWindowManager::notifyError String  errorMsg  )  [inline, static]
 

utility method

Parameters:
errorMsg error message

void cern::laser::guiplatform::windowmanager::AcWindowManager::notifyWarning String  warningMsg  )  [inline, static]
 

void cern::laser::guiplatform::windowmanager::AcWindowManager::openComponent String  componentName  )  [inline, static]
 

This method opens given TopComponent in default workspace

Parameters:
componentName component Name

void cern::laser::guiplatform::windowmanager::AcWindowManager::openInMode String  modeName,
TopComponent  component
[inline, static]
 

This method opens TopComponents in previosly (XML based) defined mode TopComponent will be opended in default workspace

Parameters:
modeName mode name
top TopComponent

void cern::laser::guiplatform::windowmanager::AcWindowManager::openTopComponent TopComponent  comp,
String  modeName
[inline, static]
 

This methods opens topComponent inside previously defined mode

void cern::laser::guiplatform::windowmanager::AcWindowManager::openTopComponent TopComponent  comp,
String  modeName,
int  index,
int  workspaceUsage
[inline, static]
 

This class opens topComponent inside default workspace

Parameters:
comp topComponent which should be opened
modeName mode name
index index (i.e. CENTER, RIGHT, LEFT)
workspaceUsage ALL - (mode, topComponent) should fill up the whole workspace COMPONENT_SIZE - create mode with comp size
modeIcon mode icon

void cern::laser::guiplatform::windowmanager::AcWindowManager::openTopComponent TopComponent  comp,
String  modeName,
int  index,
int  workspaceUsage,
URL  modeIcon
[inline, static]
 

This class opens topComponent inside default workspace

Parameters:
comp topComponent which should be opened
modeName mode name
index index (i.e. CENTER, RIGHT, LEFT)
workspaceUsage ALL - (mode, topComponent) should fill up the whole workspace COMPONENT_SIZE - create mode with comp size
modeIcon mode icon

void cern::laser::guiplatform::windowmanager::AcWindowManager::printAllComponents  )  [inline, static]
 

This method prints all components (modes, topcomponents) from default workspace

void cern::laser::guiplatform::windowmanager::AcWindowManager::printAllModeNames  )  [inline, static]
 

this method prints all mode name in default workspace

void cern::laser::guiplatform::windowmanager::AcWindowManager::setStatusText String  text  )  [inline, static]
 

void cern::laser::guiplatform::windowmanager::AcWindowManager::setTableColumns String  componentName,
String[]  newColumns
[inline, static]
 

This method sets the columns of the ListTableExplorer

Parameters:
componentName component name
newColumns new columns property names
Exceptions:
ClassCastException if component with given component name is not ListTableExplorer

void cern::laser::guiplatform::windowmanager::AcWindowManager::setZeroSelectedNodes String  topComponentName  )  [inline, static]
 

this method sets 0 as selected nodes for given explorer Used in actions in order not to have context menu in empty explorer.

Parameters:
topComponentName name used to find explorer (TopComponent name)

void cern::laser::guiplatform::windowmanager::AcWindowManager::showDetails AlarmBean  alarm  )  [inline, static]
 

This method displays "Detail" window for given alarm

Parameters:
alarm 

void cern::laser::guiplatform::windowmanager::AcWindowManager::showTimestamps AlarmBean  ab  )  [inline, static]
 


Member Data Documentation

String cern::laser::guiplatform::windowmanager::AcWindowManager::defaultWorkSpaceName = Constants.ALARM_WORKSPACE_NAME [static, private]
 

default workspace name all operation will be done in this workspace

Workspace cern::laser::guiplatform::windowmanager::AcWindowManager::defautlWorkspace = findWorkspace() [static, private]
 

final Node [] cern::laser::guiplatform::windowmanager::AcWindowManager::EMPTY_NODE_ARRAY = new Node[0] [static, private]
 

Logger cern::laser::guiplatform::windowmanager::AcWindowManager::logger [static, private]
 

Initial value:

LogFactory.getLogger(AcWindowManager.class.getName())
logger


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