Package org.opencms.workplace.editors
Class CmsDialogElement
java.lang.Object
org.opencms.workplace.editors.CmsDialogElement
- All Implemented Interfaces:
Comparable<CmsDialogElement>
Contains the setup information about a single dialog element.
- Since:
- 6.0.0
-
Constructor Summary
ConstructorDescriptionCmsDialogElement
(String name, String niceName, boolean mandantory, boolean templateElement, boolean existing) Creates a new dialog element. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getName()
Returns the name.Returns the niceName.int
hashCode()
boolean
Returns the existing.boolean
Returns the mandatory.boolean
Returns true if the element is defined by the template, false if the element is just contained in the xml page code.void
setExisting
(boolean existing) Sets the existing.
-
Constructor Details
-
CmsDialogElement
public CmsDialogElement(String name, String niceName, boolean mandantory, boolean templateElement, boolean existing) Creates a new dialog element.- Parameters:
name
- the (system) name of the elementniceName
- the nice "display" name of the elementmandantory
- indicates if the element is mandatorytemplateElement
- indicates if the element is defined as template-elementexisting
- indicates if the element is existing on the xmlPage or not
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CmsDialogElement>
- See Also:
-
equals
-
getName
Returns the name.- Returns:
- the name
-
getNiceName
Returns the niceName.- Returns:
- the niceName
-
hashCode
-
isExisting
Returns the existing.- Returns:
- the existing
-
isMandantory
Returns the mandatory.- Returns:
- the mandatory
-
isTemplateElement
Returns true if the element is defined by the template, false if the element is just contained in the xml page code.- Returns:
- true if the element is defined by the template
-
setExisting
Sets the existing.- Parameters:
existing
- the existing to set
-