org.apache.lenya.cms.usecase.gui.impl
Class GUIManagerImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.usecase.gui.impl.GUIManagerImpl
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, GUIManager

public class GUIManagerImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements GUIManager, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.context.Contextualizable

GUI manager implementation.


Field Summary
protected static java.lang.String ATTRIBUTE_LABEL
           
protected static java.lang.String ATTRIBUTE_NAME
           
protected static java.lang.String ATTRIBUTE_USECASE
           
protected static java.lang.String ATTRIBUTE_VALUE
           
protected static java.lang.String ELEMENT_PARAMETER
           
protected static java.lang.String ELEMENT_TAB
           
protected static java.lang.String ELEMENT_TAB_GROUP
           
 
Fields inherited from interface org.apache.lenya.cms.usecase.gui.GUIManager
ROLE
 
Constructor Summary
GUIManagerImpl()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration config)
           
 void contextualize(org.apache.avalon.framework.context.Context context)
           
 Tab[] getActiveTabs(java.lang.String group)
           
protected  UsecaseMessage[] getErrorMessages(Tab tab)
          Checks if a tab's usecase can be executed.
 Tab getTab(java.lang.String group, java.lang.String name)
           
protected  Tab[] getTabs(java.lang.String group)
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_PARAMETER

protected static final java.lang.String ELEMENT_PARAMETER
See Also:
Constant Field Values

ELEMENT_TAB_GROUP

protected static final java.lang.String ELEMENT_TAB_GROUP
See Also:
Constant Field Values

ELEMENT_TAB

protected static final java.lang.String ELEMENT_TAB
See Also:
Constant Field Values

ATTRIBUTE_NAME

protected static final java.lang.String ATTRIBUTE_NAME
See Also:
Constant Field Values

ATTRIBUTE_VALUE

protected static final java.lang.String ATTRIBUTE_VALUE
See Also:
Constant Field Values

ATTRIBUTE_LABEL

protected static final java.lang.String ATTRIBUTE_LABEL
See Also:
Constant Field Values

ATTRIBUTE_USECASE

protected static final java.lang.String ATTRIBUTE_USECASE
See Also:
Constant Field Values
Constructor Detail

GUIManagerImpl

public GUIManagerImpl()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration config)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

getActiveTabs

public Tab[] getActiveTabs(java.lang.String group)
Specified by:
getActiveTabs in interface GUIManager
Parameters:
group - A tab group.
Returns:
All tabs of this group.
See Also:
GUIManager.getActiveTabs(java.lang.String)

getTabs

protected Tab[] getTabs(java.lang.String group)

getTab

public Tab getTab(java.lang.String group,
                  java.lang.String name)
Specified by:
getTab in interface GUIManager
Parameters:
group - The group.
name - The tab name.
Returns:
The tab of this name within this group.
See Also:
GUIManager.getTab(java.lang.String, java.lang.String)

getErrorMessages

protected UsecaseMessage[] getErrorMessages(Tab tab)
Checks if a tab's usecase can be executed.

Parameters:
tab - The tab.
Returns:
An array of error messages.

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException
See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)


Copyright © $ Apache Software Foundation. All Rights Reserved.