Package overit.geocall.basic.ui.control
Class ResponsiveGridFrame
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.ResponsiveGridFrame
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,AjaxableComponent,Arrangeable,Badgeable,Hideable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
@Component
public class ResponsiveGridFrame
extends Control
implements Arrangeable, Hideable, AjaxableComponent
This class serves as a container for multiple components derivated of the
Each ResponsiveGrid elements added to the mask aligns without considering the alignement of the elements belonging to the objects external to it. Inserting the ResponsiveGrid elements inside a ResponsiveGridFrame the fields of each grid align with each other.
Another important use of ResponsiveGridFrame is to make the grids cloasable. In effect, if one grid is set as closable, it is not possible to close it if it isn't inserted in a ResponsiveGridFrame. The following is an example of use:
ResponsiveGridEach ResponsiveGrid elements added to the mask aligns without considering the alignement of the elements belonging to the objects external to it. Inserting the ResponsiveGrid elements inside a ResponsiveGridFrame the fields of each grid align with each other.
Another important use of ResponsiveGridFrame is to make the grids cloasable. In effect, if one grid is set as closable, it is not possible to close it if it isn't inserted in a ResponsiveGridFrame. The following is an example of use:
<ResponsiveGridFrame>
<ResponsiveGrid closeable=”1” label=”Section 1”>
<Layout mode="arranging" size=”xl”>
NAME SURNAME
</Layout>
<Input name="AUSENAME" layoutName="NAME" label="Name"/>
<Input name="AUSESURNAME" layoutName="SURNAME" label="Surname"/>
</ResponsiveGrid>
<ResponsiveGrid closeable=”1” label=”Section 2”>
<Layout mode="arranging" size=”xl”>
EMAIL EMAIL
</Layout>
<Input name="AUSEEMAIL" layoutName="EMAIL" label="Email"/>
</ResponsiveGrid>
</ResponsiveGridFrame>
Warning: the corresponding size layouts must have the same mode- 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 Layoutprotected Layoutprotected Layoutprotected Layoutprotected Layoutprotected Layout.Spacingprotected Layout.Targetprotected SetPredicateprotected 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 c) Defines the morphing of the element that occurs when there is an Ajax interactionprotected overit.geocall.basic.ui.control.Layout.Areaorg.apache.ecs.ElementgetContentHtml(Object generationhandle, EntitySet es) Returns the html code that represents the active part of the component, i.e. the field and the validation scriptsoverit.geocall.ux.servlet.processor.ChangeDefines the defaultChangeobject for the elementorg.apache.ecs.ElementgetDescriptionHtml(Object generationhandle, EntitySet es) Returns the html code that represents the component description i.e. the formatted label of the fieldprotected org.apache.ecs.Elementorg.apache.ecs.ElementgetFrameHtml(overit.geocall.ux.servlet.processor.Change c, EntitySet es) Defines the html part of the element that changes when an Ajax interaction occursReturns the object to generate when the Arrangeable element is composed by more than one elementprotected org.apache.ecs.ElementgetGridHtml(EntitySet es) org.apache.ecs.ElementgetHiddenHtml(Object generationhandle, EntitySet es) Returns the hidden but active html part of an hidden componentorg.apache.ecs.ElementAbstract method that must be extended and returns the html code of the Componentprotected org.apache.ecs.Elementprotected voidgetSectionHtml(EntitySet es, org.apache.ecs.html.Div container, ResponsiveGrid rg) protected org.apache.ecs.ElementbooleanvoidInvalidates the map that contains all the user's component customization and force it to be reloaded.booleanGets if the component is editable or not.booleanChecks the visibility of the componentbooleanonOpenClose(UIMessage uim) Manages the event of opening or closing aResponsiveGridbooleanvoidreload()voidSets if the component is editable or not.voidSets the horizontal size of the grid to fullsize.voidsetSPACING(String s) Defines the spacing used between one grid's component and another.voidIndicates whether the layout should be chosen considering the size of the window rather than the workarea.protected voidsetup()Setup the Componentprotected voidvoidsetVISIBLE(String s) Sets the visibility of the componentMethods 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, getPublishedChildrenList, 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, makeBadgedIcon
-
Field Details
-
RESPONSIVE_GRID_FRAME_WIDGET_STATE_CLASS
- See Also:
-
_visible
-
_fullSize
protected boolean _fullSize -
_target
-
_spacing
-
_layoutXS
-
_layoutSM
-
_layoutMD
-
_layoutLG
-
_layoutXL
-
editable
protected boolean editable
-
-
Constructor Details
-
ResponsiveGridFrame
public ResponsiveGridFrame()
-
-
Method Details
-
setTARGET
Indicates whether the layout should be chosen considering the size of the window rather than the workarea. In the first case, the grid will react only after resizing the browser window, while in the second case it will also on the TaskBar open/close.- Parameters:
s- String indicates if take into account the work area or the viewport to choose the correct layout. The accepted values ??are:- wa: resizing based on the size of the WorkArea (default)
- vp: resizing based on the size of the ViewPort
-
setSPACING
Defines the spacing used between one grid's component and another.- Parameters:
s- The accepted values ??are:- control: standard spacing to use when components are
Control(default) - container: increased spacing, to be used when the components are
Containers
- control: standard spacing to use when components are
-
setFULLSIZE
Sets the horizontal size of the grid to fullsize. So, when it is sets totrue, the width of the grid will occupy all the space possible- Parameters:
s- String containing the boolean value to enable fullsize mode or not.
-
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
-
getFrameHtml
public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change c, EntitySet es) Description copied from interface:AjaxableComponentDefines the html part of the element that changes when an Ajax interaction occurs- Specified by:
getFrameHtmlin interfaceAjaxableComponent- Parameters:
c- 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
-
getHtml
Description copied from class:ComponentAbstract method that must be extended and returns the html code of the Component -
changed
public void changed(overit.geocall.ux.servlet.processor.Change c) Description copied from interface:AjaxableComponentDefines the morphing of the element that occurs when there is an Ajax interaction- Specified by:
changedin interfaceAjaxableComponent- Parameters:
c- TheChangeobject that defines the specific morphing type for the element
-
getDefaultChange
public overit.geocall.ux.servlet.processor.Change getDefaultChange()Description copied from interface:AjaxableComponentDefines the defaultChangeobject for the element- Specified by:
getDefaultChangein interfaceAjaxableComponent- Returns:
- The default
Changeobject that defines the default morphing type of the element
-
getGenerationHandle
Description copied from interface:ArrangeableReturns the object to generate when the Arrangeable element is composed by more than one element- Specified by:
getGenerationHandlein interfaceArrangeable- Returns:
- The Object to generate
-
getDescriptionHtml
Description copied from interface:ArrangeableReturns the html code that represents the component description i.e. the formatted label of the field- Specified by:
getDescriptionHtmlin interfaceArrangeable- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the label of the field
-
getContentHtml
Description copied from interface:ArrangeableReturns the html code that represents the active part of the component, i.e. the field and the validation scripts- Specified by:
getContentHtmlin interfaceArrangeable- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the component
-
getHiddenHtml
Description copied from interface:ArrangeableReturns the hidden but active html part of an hidden component- Specified by:
getHiddenHtmlin interfaceArrangeable- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the hidden part of the component
-
setVISIBLE
Description copied from interface:HideableSets the visibility of the component- Specified by:
setVISIBLEin interfaceHideable- Parameters:
s- String used to defines the visibility of the component
-
getVISIBLE
public boolean getVISIBLE()- Specified by:
getVISIBLEin interfaceHideable- Returns:
- Use
Hideable.isVisible()
-
isVisible
public boolean isVisible()Description copied from interface:HideableChecks the visibility of the component -
getLayoutHtml
-
getGridHtml
-
getStartSectionHtml
-
onOpenClose
Manages the event of opening or closing aResponsiveGrid- Parameters:
uim-UIMessagecontaining the ResponsiveGrid- Returns:
true
-
getSectionHtml
-
getEndSectionHtml
-
findArea
-
setupLayouts
protected void setupLayouts() -
setup
protected void setup()Description copied from class:ComponentSetup the Component -
reload
public void reload() -
getRGChildren
-
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
-
onShowConfigurabilityPanel
-
getConfiguredChildren
-
getUserComponentAttributesMap
-
invalidateComponentsAttributeMap
public void invalidateComponentsAttributeMap()Invalidates the map that contains all the user's component customization and force it to be reloaded. -
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
-
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
-