Class DAContainer
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocall.basic.ui.container.DAContainer
- 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
- Direct Known Subclasses:
overit.geocallapp.wfm.importexport.ielog.AImportExportMaster,overit.geocallapp.wfm.util.wfmtasklog.AWfmTaskLogRighe,JobContainer,JobQueueContainer,SimpleTable
This class extends
The children of this container will be all populated via the specified DABase or DAO. The following is an example of how to declare in the xml the DAContainer and to populate via DABase a TableView.
Container and implements the logic to populate TableView
and ServerTableView through a DABase or DAO. The children of this container will be all populated via the specified DABase or DAO. The following is an example of how to declare in the xml the DAContainer and to populate via DABase a TableView.
<DAContainer obj_da="DATUtente" query="SELECT_FILTER" rows="10" maxrows="0" _newpage="EditProfile.xml" _modifypage="EditProfile.xml">
<TableView event="Modify" name="table" >
<ColumnLong name="TUSEID" labelInLine="1" key="1" label="ID" />
<Column name="TUSEDESCRIPTION" inLine="1" label="Description" />
<Column name="TUSECODE" inLine="1" label="Code" />
<ColumnLong name="TUSEORDERING" inLine="1" label="Order" />
<ColumnBoolean name="TUSEISACTIVE" inLine="1" label="Active" />
</TableView>
</DAContainer>
- 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 intprotected DABaseprotected DAOprotected DAO0protected DBViewManagerprotected intprotected Stringprotected Stringprotected HashGetterprotected Stringprotected Stringprotected Commandprotected intFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields 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 TypeMethodDescriptionintReturns the current rowgetDA()Returns theDABaseused to do the queries that fetches the data from the databasegetDAO()Returns theDAOused to do the queries that fetches the data from the databasegetDAO0()Deprecated.Returns the DBView ManagerbooleanManages the event of deleting a row.protected voidprotected voidbooleanManages the event of modifying a row by opening a new page.booleanManages the event of adding a new row by opening a new page.voidCalled by theContainer.onOpen(java.lang.Object)method and is used to implements some actions on the Contianer's children.voidManages the event of a new query.protected voidbooleanManages the event of updating a row.booleanManages the event of insert or update a row.protected voidprotected voidvoidreload()voidSets the DADABaseused to do the queries that fetches the data from the databasevoidSets theDAOused to do the queries that fetches the data from the databasevoidSets theDAO0used to do the queries that fetches the data from the databasevoidsetMAXROWS(String s) Sets the maximum number of records to fetch from the database.voidSets the name of the page to open to modify the row.voidsetNEWPAGE(String s) Sets the name of the new page to open.voidDefines the sorting of the data of the table.voidSets the string that defines the name of the query that will be used to fetch the data from the database.Methods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getHtml, getRO, getROField, onClose, onOpen, onRestore, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, 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, 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
-
_currRow
protected int _currRow -
_newPage
-
_modifyPage
-
_da
-
_dao
-
_dao0
-
_dbvm
-
_maxrows
protected int _maxrows -
_query
-
_queryId
protected int _queryId -
_queryCmd
-
_order
-
_openValues
-
-
Constructor Details
-
DAContainer
public DAContainer()
-
-
Method Details
-
setNEWPAGE
Sets the name of the new page to open.
Called by the onNew(), no parameters will be passed to the onOpen of the xlm page.- Parameters:
s- The string containing the name of the xml
-
setMAXROWS
Sets the maximum number of records to fetch from the database.- Parameters:
s- Maximum number of rows, if 0 no limit will be applied
-
setORDER
Defines the sorting of the data of the table.
It is possible to indicate the name of the field used to sort all the records in ascending or descending order and can be obtained even a sorting on multiple fields.- Parameters:
s- The name of a single column to obtain an ascending order based on that field (for example "AUSEID").
The name of a single column preceded by the exclamation mark to obtain a descending order based on that column (for example "!AUSEID").
A comma separated list of column names to obtain a sorting on multiple fields (for example "AUSESURNAME,!AUSENAME").
A null value will reset the sorting.
-
setQUERY
Sets the string that defines the name of the query that will be used to fetch the data from the database.- Parameters:
s- The query used by the table. Pay attention to match with one of the constant's names defined in theDABaseset by the methodsetDA(obj),setDAO(Object)orsetDAO0(Object)
-
setMODIFYPAGE
Sets the name of the page to open to modify the row.
The parameters of the selected row will be passed to the onOpen of the xml page.- Parameters:
s- The string containing the name of the xml
-
setDA
Sets the DADABaseused to do the queries that fetches the data from the database- Parameters:
o- The DA used by the table
-
setDAO
Sets theDAOused to do the queries that fetches the data from the database- Parameters:
o- The DAO used by the table
-
setDAO0
Sets theDAO0used to do the queries that fetches the data from the database- Parameters:
o- The DAO0 used by the table
-
reload
public void reload() -
onNew
Manages the event of adding a new row by opening a new page. No parameters will be passed to the onOpen of the xml page.- Parameters:
o- Not used- Returns:
trueif was able to perform the event,falseotherwise
-
onDelete
Manages the event of deleting a row.- Parameters:
o- The row to delete- Returns:
true
-
onModify
Manages the event of modifying a row by opening a new page. The parameters of the selected row will be passed to the onOpen of the xml page.- Parameters:
o- The row to modify- Returns:
trueif was able to perform the event,falseotherwise
-
onQuery
Manages the event of a new query.- Parameters:
o-HashGettercontaining the queryId
-
getDA
Returns theDABaseused to do the queries that fetches the data from the database- Returns:
- The
DABaseused by the table
-
getDAO
Returns theDAOused to do the queries that fetches the data from the database- Returns:
- The
DAOused by the table
-
getDAO0
Deprecated.useDAOinstead- Returns:
- use
DAOinstead
-
getDBViewManager
Returns the DBView Manager- Returns:
- The
DBViewManager
-
getCurrentRow
public int getCurrentRow()Returns the current row- Returns:
- The row
-
onOpenChildContainer
Description copied from class:ContainerCalled by theContainer.onOpen(java.lang.Object)method and is used to implements some actions on the Contianer's children. This base implementation does nothing.- Overrides:
onOpenChildContainerin classContainer- Parameters:
c- The Container to implement the operations on the children
-
onSave
Manages the event of insert or update a row.- Parameters:
o- The row to insert or update- Returns:
true
-
onRowUpdate
Manages the event of updating a row.- Parameters:
o- The row to update- Returns:
false
-
onDeleteException
-
onDeleteException
-
onSaveException
-
onSaveException
-
onQueryEmpty
protected void onQueryEmpty()
-
DAOinstead