Package overit.geocall.basic.ui.control
Class TaskBox
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.TaskBox
- 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:
TaskBoxMenu
This class defines the component to be inserted inside the
Each box can be visible or not, even according to the user (and his privileges) currently logged in the application and can be minimized to reduce the space occupied and in this way make the menu shorter and more easily usable
TaskBar,
which is used to group several menu items (TaskMessage) belonging to a specific sub-category, or a
particular logical grouping. Each box can be visible or not, even according to the user (and his privileges) currently logged in the application and can be minimized to reduce the space occupied and in this way make the menu shorter and more easily usable
- 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 booleanprotected SetPredicatestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected SafeInlineServicestatic 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_IMGFields 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 TypeMethodDescriptionvoidchanged(overit.geocall.ux.servlet.processor.Change change) Defines the morphing of the element that occurs when there is an Ajax interactionfinal org.apache.ecs.Elementdraw(EntitySet es, boolean open, String name, String id, String keylabel, String shortcut, ArrayList elements, Control control) Returns the html box elementfinal org.apache.ecs.Elementdraw(EntitySet es, boolean open, String name, String id, String keylabel, String shortcut, ArrayList elements, Control control, String menuLevelPosition, boolean isDrawingLeafItem) Returns the html box elementoverit.geocall.ux.servlet.processor.ChangeDefines the defaultChangeobject for the elementorg.apache.ecs.ElementgetFrameHtml(overit.geocall.ux.servlet.processor.Change change, EntitySet es) Defines the html part of the element that changes when an Ajax interaction occursorg.apache.ecs.ElementAbstract method that must be extended and returns the html code of the ComponentbooleangetOPEN()Returns the opening status of the TaskBoxbooleanChecks if the TaskBox is rendered for the user currently logged in the application, or not (seegetBoolean(visible,id,true))voidDefines the opening status of the TaskBox, ie if the box is minimized or notvoidsetVISIBLE(String s) Defines if the TaskBox should be visible 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, 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, makeBadgedIconMethods inherited from interface overit.geocall.ui.Hideable
getVISIBLE
-
Field Details
-
LABEL_ATTR
- See Also:
-
ENABLED_ATTR
- See Also:
-
FUNCTION_ATTR
- See Also:
-
MODULE_ATTR
- See Also:
-
ICON_ATTR
- See Also:
-
RO_ATTR
- See Also:
-
POS_ATTR
- See Also:
-
SHOW_ON_MENU_ATTR
- See Also:
-
_value
protected boolean _value -
_open
protected boolean _open -
_visible
-
safeInlineService
-
-
Constructor Details
-
TaskBox
-
-
Method Details
-
setVISIBLE
Defines if the TaskBox should be visible or not- Specified by:
setVISIBLEin interfaceHideable- Parameters:
s- A string that represents 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 box and all its content will be rendered, otherwise it will not
-
isVisible
public boolean isVisible()Checks if the TaskBox is rendered for the user currently logged in the application, or not (seegetBoolean(visible,id,true)) -
setOPEN
Defines the opening status of the TaskBox, ie if the box is minimized or not- 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 istrue
-
getOPEN
public boolean getOPEN()Returns the opening status of the TaskBox- Returns:
trueif the TaskBox is opened,falseotherwise
-
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 change) Description copied from interface:AjaxableComponentDefines the morphing of the element that occurs when there is an Ajax interaction- 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()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
-
getFrameHtml
public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change change, 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:
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
-
draw
public final org.apache.ecs.Element draw(EntitySet es, boolean open, String name, String id, String keylabel, String shortcut, ArrayList elements, Control control) Returns the html box element- Parameters:
es- TheEntitySetto which the element belongsopen- The opening status of the boxname- The name that defines the boxid- The idkeylabel- The label that appear in the headershortcut- The shortcut key for the labelelements- The ArrayList of the child elementscontrol- The box itself- Returns:
- The html element of the box component
-
draw
public final org.apache.ecs.Element draw(EntitySet es, boolean open, String name, String id, String keylabel, String shortcut, ArrayList elements, Control control, String menuLevelPosition, boolean isDrawingLeafItem) Returns the html box element- Parameters:
es- TheEntitySetto which the element belongsopen- The opening status of the boxname- The name that defines the boxid- The idkeylabel- The label that appear in the headershortcut- The shortcut key for the labelelements- The ArrayList of the child elementscontrol- The box itselfmenuLevelPosition- The position of the menu level from which the edit event it's called.isDrawingLeafItem- Defines whether a leaf node is being drawn or not- Returns:
- The html element of the box component
-