Package overit.geocall.basic.ui.control
Class TableOrder
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.TableOrder
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Badgeable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
The class implements an object to be inserted as a child of a
TableView or a
ServerTableView to identify a possible sorting, also composed, on the
columns of the table. The presence of at least one TableOrder makes a button appear on the table header. The
button is identified by two arrows placed one above the other; by clicking on the button which appears a menu
containing as many rows as the number of TableOrder. Clicking on each row will activate the order identified on
the table by the corresponding TableOrder.- 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 Stringprotected Stringprotected Stringprotected Stringprotected Iconprotected Stringprotected 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, safeInlineService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBothOrdersSvg(boolean fillOrder, boolean fillDescOrder) Returns the inner part of the svg string used to draw the icon when there are an increasing order and a decreasing order for the TableOrderstatic StringgetDescOrderSvg(boolean fill) Returns the inner part of the svg string used to draw the icon when there is a decreasing orderstatic StringReturns the end svg tag string used to draws the iconorg.apache.ecs.ElementAbstract method that must be extended and returns the html code of the Componentstatic IconHDgetMultiIcon(boolean order, boolean descorder) Get the correct multi arrow icon to use in the header's columnDeprecated.Returns the Icon that defines the Svg for the TableOrderReturns the parameters used to order the tablestatic StringgetOrderSvg(boolean fill) Returns the inner part of the svg string used to draw the icon when there is an increasing orderstatic IconHDgetSingleIcon(boolean up, boolean filled) Get the correct single arrow icon to use in the header's columnstatic StringgetStartSvg(String style) Creates and returns the start svg string used to draws the iconprotected voidsetAttributes(String order, String descorder, boolean hasOrderQuery) voidDefines a decreasing order for the tablevoidSets the name of a query that will be executed to obtain a decreasing order for the tablevoidDefines an increasing order for the tablevoidSets the name of a query that will be executed to obtain an increasing order for the tableMethods 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, buildDisplayScript, buildSetupScript, 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, setup, 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
-
_orderparams
-
_ordericon
-
_ordericonHD
-
_orderfield
-
_descorderfield
-
_orderquery
-
_descorderquery
-
-
Constructor Details
-
TableOrder
public TableOrder()
-
-
Method Details
-
setORDERFIELD
Defines an increasing order for the table- Parameters:
s- The name of a field of the table, or a list of field names separated by the comma, that will be used to obtain an increasing order for the table
-
setDESCORDERFIELD
Defines a decreasing order for the table- Parameters:
s- The name of a field of the table, or a list of field names separated by the comma, that will be used to obtain a decreasing order for the table
-
setORDERQUERY
Sets the name of a query that will be executed to obtain an increasing order for the table- Parameters:
s- The name of an ordering query of theDABaseassociated with the table
-
setDESCORDERQUERY
Sets the name of a query that will be executed to obtain a decreasing order for the table- Parameters:
s- The name of an ordering query of theDABaseassociated with the table
-
getOrderParams
Returns the parameters used to order the table- Returns:
- The string that defines the correct fields or query that will be used to order the table
-
getOrderIcon
Deprecated.usegetOrderIconHD()to get the icon andIcon.getSrc()to extract the icon's path.Returns the string that defines the icon for the TableOrder- Returns:
- The string of the svg code that draws the icon
-
getOrderIconHD
Returns the Icon that defines the Svg for the TableOrder- Returns:
- The Icon of the svg code that draws the icon
-
setAttributes
-
getHtml
Description copied from class:ComponentAbstract method that must be extended and returns the html code of the Component -
getStartSvg
Creates and returns the start svg string used to draws the icon- Parameters:
style- A string that defines a css style to apply to the svg icon- Returns:
- The start svg string
-
getBothOrdersSvg
Returns the inner part of the svg string used to draw the icon when there are an increasing order and a decreasing order for the TableOrder- Parameters:
fillOrder- Defines if the arrow for the increasing order must be filled or emptyfillDescOrder- Defines is the arrow for the decreasing order must be filled or empty- Returns:
- The inner part of the svg string
-
getOrderSvg
Returns the inner part of the svg string used to draw the icon when there is an increasing order- Parameters:
fill- Defines if the arrow must be filled or empty- Returns:
- The inner part of the svg string
-
getDescOrderSvg
Returns the inner part of the svg string used to draw the icon when there is a decreasing order- Parameters:
fill- Defines if the arrow must be filled or empty- Returns:
- The inner part of the svg string
-
getEndSvg
Returns the end svg tag string used to draws the icon- Returns:
- The end svg tag string
-
getMultiIcon
Get the correct multi arrow icon to use in the header's column- Parameters:
order- true if you want the double arrow icon with the Up arrow selected, false otherwise.descorder- true if you want the double arrow icon with the Down arrow selected, false otherwise.- Returns:
- The icon to use
-
getSingleIcon
Get the correct single arrow icon to use in the header's column- Parameters:
up- true if you want the up arrow icon ,false if you want the down arrow icon.filled- true if you want icon filled, false otherwise.- Returns:
- The icon to use
-
getOrderIconHD()to get the icon andIcon.getSrc()to extract the icon's path.