org.alfresco.web.config
Class DialogsConfigElement

java.lang.Object
  extended by org.springframework.extensions.config.element.ConfigElementAdapter
      extended by org.alfresco.web.config.DialogsConfigElement
All Implemented Interfaces:
java.io.Serializable, org.springframework.extensions.config.ConfigElement

public class DialogsConfigElement
extends org.springframework.extensions.config.element.ConfigElementAdapter

Custom config element that represents the config data for a property sheet

See Also:
Serialized Form

Nested Class Summary
static class DialogsConfigElement.DialogAttributes
          Object holding all the dialog attributes collected from config.
static class DialogsConfigElement.DialogButtonConfig
          Immutable inner class representing the configuration for an additional dialog button.
static class DialogsConfigElement.DialogConfig
          Immutable inner class representing the configuration of a single dialog.
 
Field Summary
static java.lang.String CONFIG_ELEMENT_ID
           
 
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
attributes, children, name, value
 
Constructor Summary
DialogsConfigElement()
          Default constructor
DialogsConfigElement(java.lang.String name)
          Constructor
 
Method Summary
 org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
           
 java.util.List getChildren()
           
 DialogsConfigElement.DialogConfig getDialog(java.lang.String name)
          Returns the named dialog
 java.util.Map getDialogs()
           
 
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getChildrenMap, getChildValue, getName, getValue, hasAttribute, hasChildren, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_ELEMENT_ID

public static final java.lang.String CONFIG_ELEMENT_ID
See Also:
Constant Field Values
Constructor Detail

DialogsConfigElement

public DialogsConfigElement()
Default constructor


DialogsConfigElement

public DialogsConfigElement(java.lang.String name)
Constructor

Parameters:
name - Name of the element this config element represents
Method Detail

getChildren

public java.util.List getChildren()
Specified by:
getChildren in interface org.springframework.extensions.config.ConfigElement
Overrides:
getChildren in class org.springframework.extensions.config.element.ConfigElementAdapter
See Also:
org.alfresco.config.ConfigElement#getChildren()

combine

public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
Specified by:
combine in interface org.springframework.extensions.config.ConfigElement
Specified by:
combine in class org.springframework.extensions.config.element.ConfigElementAdapter
See Also:
org.alfresco.config.ConfigElement#combine(org.alfresco.config.ConfigElement)

getDialog

public DialogsConfigElement.DialogConfig getDialog(java.lang.String name)
Returns the named dialog

Parameters:
name - The name of the dialog to retrieve
Returns:
The DialogConfig object for the requested dialog or null if it doesn't exist

getDialogs

public java.util.Map getDialogs()
Returns:
Returns a map of the dialogs. A linked hash map is used internally to preserve ordering.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.