public class OwLastDaysDateControl extends OwFieldManagerControl
Control to display a last days select box for OwLastDaysDate.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Constructor and Description |
|---|
OwLastDaysDateControl() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addKeyValue(int value_p,
String translationKey_p,
String defaultTranslationValue_p)
Helper method, for building the control structure.
|
void |
init()
init the target after the context is set.
|
void |
init(OwFieldManager fieldmanager_p,
Node configNode_p)
initialization of a field control to display fields
|
void |
insertEditField(Writer w_p,
OwFieldDefinition fieldDef_p,
OwField field_p,
String strID_p)
format and displays the value attached to the fieldClass in HTML for use in a HTML Form.
|
void |
insertReadOnlyField(Writer w_p,
OwFieldDefinition fieldDef_p,
Object value_p)
format and displays the value attached to the PropertyClass in HTML
|
Object |
updateField(javax.servlet.http.HttpServletRequest request_p,
OwFieldDefinition fieldDef_p,
Object value_p,
String strID_p)
update the property value upon request and validates the new value.
|
getFieldManager, getFormEventFunction, getFormEventURL, getFormName, getFormTarget, insertLabelattach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, setExternalFormTarget, updateExternalFormTargetprotected static void addKeyValue(int value_p,
String translationKey_p,
String defaultTranslationValue_p)
value_p - - the keytranslationKey_p - - the translation keydefaultTranslationValue_p - - the default value for translation key.public void init()
throws Exception
OwEventTargetinit in class OwFieldManagerControlExceptionpublic void init(OwFieldManager fieldmanager_p, Node configNode_p) throws Exception
OwFieldManagerControlinit in class OwFieldManagerControlfieldmanager_p - OwFieldManager reference to the field manager containing the field controlconfigNode_p - DOM Node to the configuration XML for the control, or null to use defaultsExceptionpublic void insertEditField(Writer w_p, OwFieldDefinition fieldDef_p, OwField field_p, String strID_p) throws Exception
OwFieldManagerControlinsertEditField in class OwFieldManagerControlw_p - Writer object to write HTML tofieldDef_p - OwFieldDefinitionfield_p - OwField Value to be displayedstrID_p - ID of the HTML elementExceptionpublic void insertReadOnlyField(Writer w_p, OwFieldDefinition fieldDef_p, Object value_p) throws Exception
OwFieldManagerControlinsertReadOnlyField in class OwFieldManagerControlw_p - Writer object to write HTML tofieldDef_p - OwFieldDefinition definition of fieldvalue_p - Object Value to be displayedExceptionpublic Object updateField(javax.servlet.http.HttpServletRequest request_p, OwFieldDefinition fieldDef_p, Object value_p, String strID_p) throws Exception
OwFieldManagerControlupdateField in class OwFieldManagerControlrequest_p - HttpServletRequestfieldDef_p - OwFieldDefinitionvalue_p - Object old ValuestrID_p - ID of the HTML elementExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.