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
ConstructorsConstructorDescriptionCmsDialogElement(String name, String niceName, boolean mandantory, boolean templateElement, boolean existing) Creates a new dialog element. -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetName()Returns the name.Returns the niceName.inthashCode()booleanReturns the existing.booleanReturns the mandatory.booleanReturns true if the element is defined by the template, false if the element is just contained in the xml page code.voidsetExisting(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:
compareToin 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
-