Class GISection
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocallapp.wfm.core.bl.schedule.intervention.outcome.interventiongroup.configuration.GIElementBase<GISection>
overit.geocallapp.wfm.core.bl.schedule.intervention.outcome.interventiongroup.configuration.GISection
- All Implemented Interfaces:
Serializable,GIElement<GISection>
GIElement that represents a intervention group section- Since:
- 9.2
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final LogChannelprotected intprotected intprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEmpty methodprotected voidaddCustomValues(HashGetter values) Hook to append custom values to the section valuesprotected voidHook to append custom attributes to resulting XMLprotected voidCollect the visible children inputsprotected voidCollect all the visible children sectionsprotected voidCollect all the not null input inside this sectionprotected voidCollect all the GISection defined inside this one<T extends GIElement>
TGets the section child that match the given nameGets the list of section childrengetFormInputStatus(String name) Gets the status of the input with the given name.getIcon()Gets the element icongetInputConfig(int position) Gets the input configuration in the given positiongetInputConfig(String name) Gets the input configuration with the given namegetInputLabel(String name) Gets the label of the input with the given nameintgetMax()Gets the section maximum valueintgetMin()Gets section minimum valuegetNotNullInputConfig(String name) Gets the input configuration with the required nameGets the section registry namegetSection(String name) Gets the required section by namegetType()Gets the section typeprotected StringbooleanGets the enable auto fill valuebooleanisFormInputVisible(String name) Gets the visibility of the input with the given namebooleanisFormSectionVisible(String name) Gets the visibility of the section with the given namevoidsetAttributes(GISection secFrom) Copy the attributes of the given section to this sectionvoidSets recursively the auto fill valuevoidSets recursively the status valuevoidSets the enable auto fill propertyvoidSets the section maximum valuevoidSets the section minimum valuevoidSets the section registry namevoidSets the section typeSerialize the element in an XML stringMethods inherited from class overit.geocallapp.wfm.core.bl.schedule.intervention.outcome.interventiongroup.configuration.GIElementBase
buildSetfromString, checkLabel, cleanString, getAutofill, getBoolean, getCustomLabel, getLabel, getName, getStatus, getTeacher, getXMLAttributeString, getXMLAttributeStringIfExists, isAutofill, isMandatory, isReadOnly, isVisible, joinStrings, setAUTOFILL, setCustomLabel, setLABEL, setNAME, setSTATUSMethods inherited from class overit.geocall.platform.ui.UINode
addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchema
-
Field Details
-
LOG
-
registryname
-
type
-
min
protected int min -
max
protected int max -
inputs
-
childSections
-
notNullInputs
-
formVisibleInputs
-
formVisibleSections
-
-
Constructor Details
-
GISection
public GISection()
-
-
Method Details
-
setENABLEAUTOFILL
Sets the enable auto fill property- Parameters:
s- the enable auto fill property
-
setREGISTRYNAME
Sets the section registry name- Parameters:
s- the section registry name
-
setTYPE
Sets the section type- Parameters:
s- the section type
-
setMIN
Sets the section minimum value- Parameters:
s- the section minimum value
-
setMAX
Sets the section maximum value- Parameters:
s- the section maximum value
-
getRegistryname
Gets the section registry name- Returns:
- the section registry name
-
getType
Gets the section type- Returns:
- the section type
-
getMin
public int getMin()Gets section minimum value- Returns:
- section minimum value
-
getMax
public int getMax()Gets the section maximum value- Returns:
- section maximum value
-
setAttributes
Copy the attributes of the given section to this section- Parameters:
secFrom- the starting section
-
getChild
Gets the section child that match the given name- Type Parameters:
T- the type of the child element- Parameters:
name- the name of the child element- Returns:
- the section child with the given name if exists,
nullotherwise.
-
getInputConfig
Gets the input configuration with the given name- Parameters:
name- the name of the input configuration to find- Returns:
- the input configuration with the given name
-
getInputConfig
Gets the input configuration in the given position- Parameters:
position- the position of the input configuration to find- Returns:
- the input configuration in the given position
-
addChild
Description copied from class:UINodeEmpty method -
toXMLString
Description copied from interface:GIElementSerialize the element in an XML string- Returns:
- the XML string that represents this element
-
getXMLMinMaxAttribute
-
getValues
-
getChildSections
Gets the list of section children- Returns:
- the list of section children
-
getSection
Gets the required section by name- Parameters:
name- the section name to retrieve- Returns:
- the section with the required name
-
collectSections
protected void collectSections()Collect all the GISection defined inside this one -
getNotNullInputConfig
Gets the input configuration with the required name- Parameters:
name- the name of the required input configuration- Returns:
- the input configuration with the required name
-
collectNotNullInputs
protected void collectNotNullInputs()Collect all the not null input inside this section -
isFormInputVisible
Gets the visibility of the input with the given name- Parameters:
name- the name of the input for which retrieve the visibility- Returns:
- the visibility of the input with the given name
-
getFormInputStatus
Gets the status of the input with the given name.- Parameters:
name- the name of the input for which retrieve the status- Returns:
- the status of the input with the given name
-
getInputLabel
Gets the label of the input with the given name- Parameters:
name- the name of the input for which retrieve the label- Returns:
- the label of the input with the given name
-
isFormSectionVisible
Gets the visibility of the section with the given name- Parameters:
name- the section name- Returns:
trueif the section is visible,falseotherwise
-
collectFormVisibleInputs
protected void collectFormVisibleInputs()Collect the visible children inputs -
collectFormVisibleSections
protected void collectFormVisibleSections()Collect all the visible children sections -
setDeepStatus
Sets recursively the status value- Parameters:
s- the status value to set
-
setDeepAutofill
Sets recursively the auto fill value- Parameters:
s- the auto fill value to set
-
getIcon
Description copied from interface:GIElementGets the element icon- Returns:
- the element icon
-
isEnableAutoFill
public boolean isEnableAutoFill()Gets the enable auto fill value- Returns:
trueif the auto fill is enabled,falseotherwise
-
addCustomValues
Hook to append custom values to the section values- Parameters:
values- the values of this section
-
appendCustomAttributesToXml
Hook to append custom attributes to resulting XML- Parameters:
sb- the string builder used to build the section XML
-