lumis.doui.control.strings
Class StringsControl

Package class diagram package StringsControl
java.lang.Object
  extended by lumis.doui.control.Control
      extended by lumis.doui.control.strings.StringsControl
All Implemented Interfaces:
VariableResolver, IControl

public class StringsControl
extends Control

Renders javascript on the client side that makes available in an array a list of translated strings.

Example use:

<control:lum_strings id="forumClientStrings"> <strings> <string id="STR_CONFIRM_DELETE"/> </strings> </control:lum_strings> xml data available for xsl rendering: <control id="forumClientStrings" type="lum_strings"> <strings escape="true"> <string id="STR_CONFIRM_DELETE">Are you sure you want to delete this message?</string> </strings> </control> Doui Control that translate the specified strings and add them to a javascript array identified by the control id.

Since:
4.0.5

Field Summary
 
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
StringsControl()
           
 
Method Summary
 void init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl)
           
 
Methods inherited from class lumis.doui.control.Control
appendSubControl, appendSubControls, applyOnEventScripts, buildSubControls, convertToStandardValue, createContainer, disconnect, fixedIdentifierRequired, generateControlId, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getControlResource, getId, getLocale, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getRuntimeDefaultSource, getScriptActionValidation, getScriptGetValues, getScriptGetValuesFunctionImplementation, getScriptGetValuesFunctionName, getScriptGetValuesRegistration, getSourceContext, getStringsToLocalize, getType, getValidationScript, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setRenderData, setRuntimeAttributes, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringsControl

public StringsControl()
Method Detail

init

public void init(Node controlDefinitionNode,
                 ControlContainer controlContainer,
                 IControl parentControl)
          throws PortalException
Specified by:
init in interface IControl
Overrides:
init in class Control
Throws:
PortalException


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