Class ServerMultiForm
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.container.ServerMultiForm
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,AjaxableComponent,Badgeable,Hideable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
- Direct Known Subclasses:
SingleForm
The class extends
This element must be used even if it contains only one child, because it provides the correct user interface (like for example the right background color).
Control and implements the user interface element that allows to contain and render one or more
child components, that are mainly forms Form, and show them in a multi-tabbed structure. This element must be used even if it contains only one child, because it provides the correct user interface (like for example the right background color).
- See Also:
- GCApi:
- component
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected booleanprotected State.Confprotected booleanprotected Stringprotected intprotected SetPredicateprotected Stringprotected booleanstatic final StringFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineServiceFields inherited from interface overit.geocall.ui.AjaxableComponent
FRAME_ID_PREFIX, NOTRANSITION, TRANSITION_BODY_MORPH, TRANSITION_BODY_RESIZE, TRANSITION_BORDER_RESIZE, TRANSITION_DOWN, TRANSITION_UP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEvery component can add a script to the StringBuilder, script executed when the component is displayed.voidEvery component can add a script to the StringBuilder, script executed when the component is created.voidchanged(overit.geocall.ux.servlet.processor.Change change) Defines the morphing of the ServerMultiForm that occurs when there is an Ajax interaction
Implements theAjaxableComponentinterface.protected booleanoverit.geocall.ux.servlet.processor.ChangeDefines the defaultChangeobject for the table.org.apache.ecs.ElementgetFrameHtml(overit.geocall.ux.servlet.processor.Change change, EntitySet es) Defines the html part of the ServerMultiForm that changes when an Ajax interaction occurs.org.apache.ecs.ElementReturns the html code of the tableReturns the published childs.static org.apache.ecs.html.DivgetTab(boolean on, boolean enabled, Icon icon, String label, String title, String shortcut, String background) booleanGets if the component is editable or not.booleanChecks if the ServerMultiForm is rendered for the user currently logged in the application, or not (seegetBoolean(visible,id,true))booleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleanFired when the user click on a closed tab to switch from a tab to anotherprotected Componentvoidreload()voidActivates or deactivates the ajax interactionsvoidsetBGCOLOR(String s) Sets a custom the background color for the ServerMultiFormvoidDefines if the ServerMultiForm is closable, i.e. if an additional tab will appear, tab that will allow you to close all the tabs and minimize the vertical space occupied by the ServerMultiFormvoidSets if the component is editable or not.voidIndicates if the ServerMultiForm has to occupy all the available space in widthvoidSets the name of the child element - the tab - that must be loaded when is opened the page that contains the ServerMultiFormvoidsetLOADPOS(String s) Sets the position of the child element - the tab - that must be loaded when is opened the page that contains the ServerMultiFormvoidsetup()Setup the ComponentvoidsetVISIBLE(String s) Defines if the ServerMultiForm should be rendered or notMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getBLANK, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getRO, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBASIC, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setValuesContainer, stringForJs, tabIndexerMethods 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.geocall.ui.Badgeable
badgeFormat, makeBadgedIconMethods inherited from interface overit.geocall.ui.Hideable
getVISIBLE
-
Field Details
-
_fullsize
protected boolean _fullsize -
_visiblename
-
_load
-
_loadpos
protected int _loadpos -
_visible
-
_bgcolor
-
_closable
protected boolean _closable -
_ajax
protected boolean _ajax -
_conf
-
TABS_WIDGET_STATE_CLASS
- See Also:
-
editable
protected boolean editable
-
-
Constructor Details
-
ServerMultiForm
public ServerMultiForm()
-
-
Method Details
-
setBGCOLOR
Sets a custom the background color for the ServerMultiForm- Parameters:
s- A string that contains the desired color, the value must be compliant to css color rules
-
setFULLSIZE
Indicates if the ServerMultiForm has to occupy all the available space in width- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is false
-
setVISIBLE
Defines if the ServerMultiForm should be rendered or not- Specified by:
setVISIBLEin interfaceHideable- Parameters:
s- A string that represent a boolean value ("true" or "1", "false" or "0") or a function.
If the string is not recognized as a boolean value, it is considered as a user function with this meaning: if the user currently logged in the application has the function, the element will be rendered, otherwise it will not
-
isVisible
public boolean isVisible()Checks if the ServerMultiForm is rendered for the user currently logged in the application, or not (seegetBoolean(visible,id,true)) -
setLOAD
Sets the name of the child element - the tab - that must be loaded when is opened the page that contains the ServerMultiForm- Parameters:
s- The string that contains the name of the element that must be loaded
-
setLOADPOS
Sets the position of the child element - the tab - that must be loaded when is opened the page that contains the ServerMultiForm- Parameters:
s- The position of the element that must be loaded
-
setCLOSABLE
Defines if the ServerMultiForm is closable, i.e. if an additional tab will appear, tab that will allow you to close all the tabs and minimize the vertical space occupied by the ServerMultiForm- Parameters:
s- A string that represent a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is false
-
setAJAX
Activates or deactivates the ajax interactions- Parameters:
s- A string that represent a boolean value ("true" or "1" to activate, "false" or "0" to deactivate).
If the string is not recognized as a boolean value, it will be used the default value, that is true
-
setEDITABLE
Sets if the component is editable or not. If it is editable hovering the upper right corner of the component, the edit icon will be shown and clicking it will be possible to show the configurability panel.- Parameters:
s-trueorfalse
-
isEditable
public boolean isEditable()Gets if the component is editable or not. If it is editable hovering the upper right corner of the component, the edit icon will be shown and clicking it will be possible to show the configurability panel.- Returns:
trueif it is editable,falseotherwise
-
setup
public void setup()Description copied from class:ComponentSetup the Component -
onSwitch
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
o- UseonSwitch(UIMessage)- Returns:
- Use
onSwitch(UIMessage)
-
onSwitch
Fired when the user click on a closed tab to switch from a tab to another- Parameters:
uim- TheUIMessagewith the parameters- Returns:
- false
-
doSwitch
-
getFrameHtml
public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change change, EntitySet es) Defines the html part of the ServerMultiForm that changes when an Ajax interaction occurs.
Implements theAjaxableComponentinterface.- Specified by:
getFrameHtmlin interfaceAjaxableComponent- Parameters:
change- TheChangeobject that defines the specific morphing type for the elementes- TheEntitySetto which the element belongs- Returns:
- The html part of the element that changes when an Ajax interaction occurs
-
getTab
-
publishedComponent
-
getPublishedChildrenList
Description copied from class:ComponentReturns the published childs. Those that are not published are not even searched to be synchronized via Ajax- Overrides:
getPublishedChildrenListin classComponent- Returns:
- The
Listof published childs
-
buildSetupScript
Description copied from class:ComponentEvery component can add a script to the StringBuilder, script executed when the component is created.- Overrides:
buildSetupScriptin classComponent- Parameters:
sb- The StringBuilder on which we want to add the script
-
buildDisplayScript
Description copied from class:ComponentEvery component can add a script to the StringBuilder, script executed when the component is displayed.- Overrides:
buildDisplayScriptin classComponent- Parameters:
sb- The StringBuilder on which we want to add the script
-
getHtml
Returns the html code of the table -
changed
public void changed(overit.geocall.ux.servlet.processor.Change change) Defines the morphing of the ServerMultiForm that occurs when there is an Ajax interaction
Implements theAjaxableComponentinterface.- Specified by:
changedin interfaceAjaxableComponent- Parameters:
change- TheChangeobject that defines the specific morphing type for the element
-
getDefaultChange
public overit.geocall.ux.servlet.processor.Change getDefaultChange()- Specified by:
getDefaultChangein interfaceAjaxableComponent- Returns:
- The default
Changeobject that defines the default morphing type of the ServerMultiForm
-
reload
public void reload() -
onShowConfigurabilityPanel
-
getConfigChildren
-
onSwitch(UIMessage)