Class GIElementBase<T>
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocallapp.wfm.core.bl.schedule.intervention.outcome.interventiongroup.configuration.GIElementBase<T>
- All Implemented Interfaces:
Serializable,GIElement<T>
Abstract implementation of the
GIElement interface
to group the base behavior- Since:
- 9.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild a strings set splitting the given stringprotected voidEnsure that the custom label is configuredprotected StringClean a given string removing spaces and square bracketsGets if the element should be auto filledprotected static booleangetBoolean(String s, boolean def) Convert the given string value, to a boolean.Gets the element custom labelgetLabel()Gets the element labelgetName()Gets the element nameGets the element statusprotected TeacherGets a teacher instantiated with the currentIdentityprotected static StringgetXMLAttributeString(String name, String value) Compose the XML attribute with the given name and valueprotected static StringgetXMLAttributeStringIfExists(String name, String value) Compose the XML attribute with the given name and value, only if the value is validbooleanGets the auto fill boolean value.booleanSays if the element is mandatorybooleanSays if the element is read onlybooleanSays if the element is visibleprotected static StringjoinStrings(Set<String> input) Joins the given set strings in a single stringvoidsetAUTOFILL(String autofill) Sets the auto fill value.voidsetCustomLabel(String customLabel) Sets the element custom labelvoidSets the button labelvoidSets the button namevoidSets the element statusMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocallapp.wfm.core.bl.schedule.intervention.outcome.interventiongroup.configuration.GIElement
getIcon, setAttributes, toXMLString
-
Constructor Details
-
GIElementBase
public GIElementBase()
-
-
Method Details
-
setNAME
Sets the button name- Parameters:
name- the button name
-
setLABEL
Sets the button label- Parameters:
label- the button label
-
setCustomLabel
Description copied from interface:GIElementSets the element custom label- Specified by:
setCustomLabelin interfaceGIElement<T>- Parameters:
customLabel- the custom label to set
-
setSTATUS
Description copied from interface:GIElementSets the element status -
getAutofill
Description copied from interface:GIElementGets if the element should be auto filled- Specified by:
getAutofillin interfaceGIElement<T>- Returns:
- if the element should be auto filled
-
isAutofill
public boolean isAutofill()Gets the auto fill boolean value.- Returns:
trueif the auto fill is enabled,falseotherwise
-
setAUTOFILL
Sets the auto fill value.- Parameters:
autofill- the auto fill value
-
getName
Description copied from interface:GIElementGets the element name -
getLabel
Description copied from interface:GIElementGets the element label -
getCustomLabel
Description copied from interface:GIElementGets the element custom label- Specified by:
getCustomLabelin interfaceGIElement<T>- Returns:
- the element custom label
-
getStatus
Description copied from interface:GIElementGets the element status -
isReadOnly
public boolean isReadOnly()Says if the element is read only- Returns:
- true if the element is read only, false otherwise
-
isVisible
public boolean isVisible()Says if the element is visible- Returns:
- true if the element is visible, false otherwise
-
isMandatory
public boolean isMandatory()Says if the element is mandatory- Returns:
- true if the element is mandatory
-
getTeacher
Gets a teacher instantiated with the currentIdentity- Returns:
- a teacher instantiated with the current
Identity
-
checkLabel
protected void checkLabel()Ensure that the custom label is configured -
getXMLAttributeString
Compose the XML attribute with the given name and value- Parameters:
name- the name of the attributevalue- the value of the attribute- Returns:
- the composed XML attribute
-
getXMLAttributeStringIfExists
Compose the XML attribute with the given name and value, only if the value is valid- Parameters:
name- the name of the attributevalue- the value of the attribute- Returns:
- the composed XML attribute
-
cleanString
Clean a given string removing spaces and square brackets- Parameters:
s- the string to clean- Returns:
- the cleaned string
-
buildSetfromString
Build a strings set splitting the given string- Parameters:
s- the string to split- Returns:
- the string set resulting of the split of the given string
-
joinStrings
Joins the given set strings in a single string- Parameters:
input- the input strings set- Returns:
- the joined string
-
getBoolean
Convert the given string value, to a boolean.- Parameters:
s- the string value to parsedef- the default value- Returns:
- the boolean value of the given string if convertible, the default value otherwise.
-