|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.control.Control
@StableMinor(version="5.5", sinceVersion="4.0") public class Control
Base class for all controls. Implements all the default methods for controls.
Field Summary | |
---|---|
protected ArrayList<IControl> |
childControls
|
protected ControlContainer |
controlContainer
|
protected Node |
controlDefinitionNode
|
protected IResource |
controlResource
|
protected DouiContext |
douiContext
|
protected boolean |
hasValidatorSubControls
|
protected boolean |
isValid
|
protected Locale |
locale
|
static String |
ON_EVENT_CLOSE_WINDOW
|
static String |
ON_EVENT_LINK
|
static String |
ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE
|
static String |
ON_EVENT_POPUP_RUNTIME_INTERFACE
|
static String |
ON_EVENT_PROCESS_ACTION
|
static String |
ON_EVENT_RENDER_ACTION
|
static String |
ON_EVENT_SCRIPT
|
protected HashMap<String,String> |
onEventScripts
|
static String |
PARAMETER_TYPE_FIRST_SELECTED
|
static String |
PARAMETER_TYPE_GET_VALUE
|
protected IControl |
parentControl
|
protected List<IResource> |
resources
|
protected String |
type
|
static String |
VALIDATION_SELECTED_MANY
|
static String |
VALIDATION_SELECTED_ONE
|
Constructor Summary | |
---|---|
Control()
|
Method Summary | ||
---|---|---|
protected void |
appendSubControl(Node subControlNode)
|
|
protected void |
appendSubControls(String subControlsXmlString)
|
|
protected void |
applyOnEventScripts()
|
|
void |
buildSubControls()
|
|
protected String |
convertToStandardValue(String value)
|
|
void |
createContainer(String containerId)
Creates a container for the control. |
|
void |
disconnect()
|
|
protected boolean |
fixedIdentifierRequired()
|
|
protected String |
generateControlId()
|
|
protected String |
getAdditionalParameters(Node onEventNode)
|
|
protected String |
getAdditionalParameters(Node onEventNode,
boolean otherParametersExist)
|
|
protected
|
getAncestor(Class<T> ancestorClass)
Searchs for an ancestor control assignable to the given class. |
|
List<IControl> |
getChildControls()
|
|
protected String |
getClientEventHandlerScript(String eventName,
boolean forHref)
|
|
IResource |
getControlResource()
|
|
String |
getId()
|
|
protected Locale |
getLocale()
|
|
String |
getNamespace()
Returns the namespace for this control. |
|
IControl |
getParentControl()
|
|
String |
getPrepareForReadScript()
|
|
String |
getRenderData()
Returns an xml string representation of the control for rendering via xsl. |
|
List<IResource> |
getResources()
|
|
protected Source |
getRuntimeDefaultSource()
Returns default source to use in the context of the current control when evaluating runtime attributes. |
|
protected String |
getScriptActionValidation(Node[] actionNodes,
String formName,
ITransaction portalTransaction)
|
|
String |
getScriptGetValues()
|
|
protected String |
getScriptGetValuesFunctionImplementation()
|
|
protected String |
getScriptGetValuesFunctionName()
|
|
String |
getScriptGetValuesRegistration()
|
|
ISourceContext |
getSourceContext()
|
|
protected Map<String,String> |
getStringsToLocalize()
|
|
String |
getType()
|
|
protected String |
getValidationScript(Node onEventNode)
|
|
void |
init(Node controlDefinitionNode,
ControlContainer controlContainer,
IControl parentControl)
|
|
boolean |
isValid()
|
|
protected String |
localize(String text)
|
|
protected void |
localizeStrings()
|
|
protected String |
processCustomTags(String scriptNodeText)
|
|
void |
registerOnEventScript(String onEvent,
String script)
|
|
void |
removeChild(IControl childControl)
|
|
void |
removeChildren()
|
|
Object |
resolveVariable(String name)
|
|
void |
setRenderData()
|
|
void |
setRuntimeAttributes()
Replaces runtime attributes in this control's definition node with their evaluated values. |
|
void |
setValid(boolean isValid)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ON_EVENT_POPUP_RUNTIME_INTERFACE
public static final String ON_EVENT_PROCESS_ACTION
public static final String ON_EVENT_RENDER_ACTION
public static final String ON_EVENT_CLOSE_WINDOW
public static final String ON_EVENT_LINK
public static final String ON_EVENT_SCRIPT
public static final String ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE
public static final String VALIDATION_SELECTED_ONE
public static final String VALIDATION_SELECTED_MANY
public static final String PARAMETER_TYPE_FIRST_SELECTED
public static final String PARAMETER_TYPE_GET_VALUE
protected DouiContext douiContext
protected Node controlDefinitionNode
protected ControlContainer controlContainer
protected IControl parentControl
protected ArrayList<IControl> childControls
protected List<IResource> resources
protected IResource controlResource
protected Locale locale
protected HashMap<String,String> onEventScripts
protected boolean isValid
protected boolean hasValidatorSubControls
protected String type
Constructor Detail |
---|
public Control()
Method Detail |
---|
public void init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl) throws PortalException
init
in interface IControl
PortalException
protected boolean fixedIdentifierRequired()
protected String generateControlId()
public void buildSubControls() throws PortalException
buildSubControls
in interface IControl
PortalException
protected void appendSubControls(String subControlsXmlString) throws PortalException
PortalException
protected void appendSubControl(Node subControlNode) throws PortalException
PortalException
public void disconnect() throws PortalException
disconnect
in interface IControl
PortalException
public void removeChild(IControl childControl) throws PortalException
removeChild
in interface IControl
PortalException
public void removeChildren() throws PortalException
removeChildren
in interface IControl
PortalException
public List<IControl> getChildControls() throws PortalException
getChildControls
in interface IControl
PortalException
protected Source getRuntimeDefaultSource()
public Object resolveVariable(String name) throws ELException
resolveVariable
in interface VariableResolver
ELException
public void setRuntimeAttributes()
IControl
This method is executed before IControl.setRenderData()
by the ControlContainer
.
setRuntimeAttributes
in interface IControl
ControlContainer
public void setRenderData() throws PortalException
setRenderData
in interface IControl
PortalException
public String getId()
getId
in interface IControl
public String getType()
getType
in interface IControl
public IControl getParentControl()
getParentControl
in interface IControl
protected String getClientEventHandlerScript(String eventName, boolean forHref) throws ControlException, PortalException
ControlException
PortalException
protected String getScriptActionValidation(Node[] actionNodes, String formName, ITransaction portalTransaction) throws PortalException
PortalException
protected String getValidationScript(Node onEventNode) throws PortalException
PortalException
public List<IResource> getResources() throws PortalException
getResources
in interface IControl
PortalException
protected String getAdditionalParameters(Node onEventNode) throws PortalException
PortalException
protected String getAdditionalParameters(Node onEventNode, boolean otherParametersExist) throws PortalException
PortalException
protected String convertToStandardValue(String value) throws PortalException
PortalException
public IResource getControlResource() throws PortalException
getControlResource
in interface IControl
PortalException
public void registerOnEventScript(String onEvent, String script) throws PortalException
registerOnEventScript
in interface IControl
PortalException
protected void applyOnEventScripts() throws PortalException
PortalException
public boolean isValid() throws PortalException
isValid
in interface IControl
PortalException
public void setValid(boolean isValid) throws PortalException
setValid
in interface IControl
isValid
- The isValid to set.
PortalException
protected Locale getLocale()
public final String getScriptGetValuesRegistration() throws PortalException
PortalException
public final String getScriptGetValues() throws ControlException, PortalException
ControlException
PortalException
protected final String getScriptGetValuesFunctionName() throws ControlException, PortalException
ControlException
PortalException
protected String getScriptGetValuesFunctionImplementation() throws ControlException, PortalException
ControlException
PortalException
protected String localize(String text) throws PortalException
PortalException
protected void localizeStrings() throws PortalException
PortalException
protected Map<String,String> getStringsToLocalize()
protected <T extends IControl> T getAncestor(Class<T> ancestorClass)
T
- the ancestor class for compile-time type casting checking.ancestorClass
- the class or interface the ancestor control must be assignable to.
public ISourceContext getSourceContext()
protected String processCustomTags(String scriptNodeText) throws PortalException
PortalException
public String getPrepareForReadScript() throws PortalException
getPrepareForReadScript
in interface IControl
PortalException
public void createContainer(String containerId) throws PortalException
IControl
This method us used by the framework when a control needs to be updated client side.
createContainer
in interface IControl
PortalException
public String getRenderData() throws PortalException
IControl
getRenderData
in interface IControl
PortalException
public String getNamespace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |