lumis.doui.control.details
Class DetailsControl

Package class diagram package DetailsControl
java.lang.Object
  extended by lumis.doui.control.Control
      extended by lumis.doui.control.DataControl
          extended by lumis.doui.control.DataBoundControl<TabularSource<?>>
              extended by lumis.doui.control.tabulardata.TabularDataControl
                  extended by lumis.doui.control.details.DetailsControl
All Implemented Interfaces:
Observer, VariableResolver, IControl, IDataBoundControl, IDataControl, IRenderer

public class DetailsControl
extends TabularDataControl

Used to render read only data from a tabular data source. This control is an extension of the lum_tabularData control. It should be used to render one row of a result set. The data it renders by default are layed out as label: value pairs for each field (with the display attribute set to true) one below the other.

Example use:

<control:lum_details id="requestDetails" sourceId="request" /> xml data available for xsl rendering: <control id="requestDetails" sourceId="request" type="lum_details"> <control id="8A488A03118FAEBF01119010D6FD1046" type="lum_interfaceHeader" ... /> <control id="requestDetails.filters" type="lum_filters" ... /> <strings> <string id="STR_ORDER_ASC">Sort ascending</string> <string id="STR_ORDER">Sort</string> <string id="STR_ORDER_DESC">Sort descending</string> </strings> <fields> <field dataType="string" id="id" ... /> <field dataType="string" id="firstMessage" ... /> <field dataType="lumisPrincipal" id="attendantId" ... /> </fields> <data> <formName>null</formName> <row primaryKey="8A488A03118FAEBF0111900CBA0A0FE3"> <id>8A488A03118FAEBF0111900CBA0A0FE3</id> <firstMessage>Could you help me?</firstMessage> <attendantId> <principalId>00000000D00000000000000000000001</principalId> <shortId>admin</shortId> <name>Administrator</name> <type>1</type> <subtype>0</subtype> </attendantId> <chatConversationId>8A488A03118FAEBF0111900CBA0A0FE0</chatConversationId> <requestTime> <value>3/26/07 6:00 PM</value> <year>2007</year> <month>03</month> <monthName>March</monthName> <dayOfMonth>26</dayOfMonth> <dayOfWeek>2</dayOfWeek> <dayOfWeekName>Monday</dayOfWeekName> <hours>18</hours> <minutes>00</minutes> <seconds>24</seconds> </requestTime> <attendedTime> <value>3/26/07 6:01 PM</value> <year>2007</year> <month>03</month> <monthName>March</monthName> <dayOfMonth>26</dayOfMonth> <dayOfWeek>2</dayOfWeek> <dayOfWeekName>Monday</dayOfWeekName> <hours>18</hours> <minutes>01</minutes> <seconds>51</seconds> </attendedTime> <createdDate> <value>3/26/07 6:00 PM</value> <year>2007</year> <month>03</month> <monthName>March</monthName> <dayOfMonth>26</dayOfMonth> <dayOfWeek>2</dayOfWeek> <dayOfWeekName>Monday</dayOfWeekName> <hours>18</hours> <minutes>00</minutes> <seconds>24</seconds> </createdDate> <lastModifiedDate> <value>3/26/07 6:00 PM</value> <year>2007</year> <month>03</month> <monthName>March</monthName> <dayOfMonth>26</dayOfMonth> <dayOfWeek>2</dayOfWeek> <dayOfWeekName>Monday</dayOfWeekName> <hours>18</hours> <minutes>00</minutes> <seconds>24</seconds> </lastModifiedDate> <createdBy> <principalId>00000000D00000000000000000000001</principalId> <shortId>admin</shortId> <name>Administrator</name> <type>1</type> <subtype>0</subtype> </createdBy> <lastModifiedBy> <principalId>00000000D00000000000000000000001</principalId> <shortId>admin</shortId> <name>Administrator</name> <type>1</type> <subtype>0</subtype> </lastModifiedBy> <serviceInstanceId>8A488A03117B0D2D01117BB9DA350E36</serviceInstanceId> <clientId>Mr. X</clientId> <state>Being Attended</state> </row> </data> </control>

Since:
4.0.0
See Also:
InterfaceHeaderControl, FiltersControl

Field Summary
 
Fields inherited from class lumis.doui.control.DataControl
FORCE_CASE_LOWER, FORCE_CASE_NONE, FORCE_CASE_UPPER, forceCase, requestParameterName, UNKNOWN_DATA_TYPE, value, valuePreviouslySet
 
Fields inherited from class lumis.doui.control.Control
childControls, controlContainer, controlDefinitionNode, controlResource, douiContext, hasValidatorSubControls, isValid, locale, ON_EVENT_CLOSE_WINDOW, ON_EVENT_LINK, ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE, ON_EVENT_POPUP_RUNTIME_INTERFACE, ON_EVENT_PROCESS_ACTION, ON_EVENT_RENDER_ACTION, ON_EVENT_REPLACE_INTERFACE, ON_EVENT_SCRIPT, onEventScripts, PARAMETER_TYPE_FIRST_SELECTED, PARAMETER_TYPE_GET_VALUE, parentControl, resources, type, VALIDATION_SELECTED_MANY, VALIDATION_SELECTED_ONE
 
Constructor Summary
DetailsControl()
           
 
Method Summary
 void buildSubControls()
           
 
Methods inherited from class lumis.doui.control.tabulardata.TabularDataControl
getControlResource, getConverter, getFieldHyperlink, getRowHyperlink, getRowOnClick, getStringsToLocalize, loadFromRequest, setRenderData
 
Methods inherited from class lumis.doui.control.DataBoundControl
autoAddDateTimeValueValidator, autoAddDoubleValueValidator, autoAddFileSizeValidator, autoAddIntegerValueValidator, autoAddLengthValidator, autoAddLongValueValidator, autoAddRequiredValueValidator, autoAddValidators, createConverter, createDataType, getDataId, getFieldName, getProcessActionHandlerParameterName, getReload, getRuntimeDefaultSource, getSource, getSourceById, getUnboundedConverter, init, setDefaultValue, setRawValue, setReload, setSourceParameter, setSourceParameters, setsSourceParameters, setValid, setValueFromSource, setValueFromSource, update
 
Methods inherited from class lumis.doui.control.DataControl
convertValueToControlValue, getDataType, getDefaultValue, getParameterValue, getProcessActionIds, getRequestParameterName, getValue, getValue, getValueClass, initProcessActionIds, isTrim, loadSubControlFromRequest, loadSubControlsFromRequest, setProcessActionHandlerParameter, setProcessActionHandlerParameter, setProcessActionHandlerParameters, setTrim, setValue, valueIsArray
 
Methods inherited from class lumis.doui.control.Control
appendSubControl, appendSubControls, applyOnEventScripts, convertToStandardValue, createContainer, disconnect, fixedIdentifierRequired, generateControlId, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getId, getLocale, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getScriptActionValidation, getScriptGetValues, getScriptGetValuesFunctionImplementation, getScriptGetValuesFunctionName, getScriptGetValuesRegistration, getSourceContext, getType, getValidationScript, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setRuntimeAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lumis.doui.control.IDataControl
getProcessActionIds, getValue, getValue, setProcessActionHandlerParameters, setValue
 
Methods inherited from interface lumis.doui.control.IControl
createContainer, disconnect, getChildControls, getId, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes
 
Methods inherited from interface lumis.doui.render.IRenderer
getResources, getSourceContext
 

Constructor Detail

DetailsControl

public DetailsControl()
Method Detail

buildSubControls

public void buildSubControls()
                      throws PortalException
Specified by:
buildSubControls in interface IControl
Overrides:
buildSubControls in class DataBoundControl<TabularSource<?>>
Throws:
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.