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, insertLabel
attach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, setExternalFormTarget, updateExternalFormTarget
protected 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
OwEventTarget
init
in class OwFieldManagerControl
Exception
public void init(OwFieldManager fieldmanager_p, Node configNode_p) throws Exception
OwFieldManagerControl
init
in class OwFieldManagerControl
fieldmanager_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 defaultsException
public void insertEditField(Writer w_p, OwFieldDefinition fieldDef_p, OwField field_p, String strID_p) throws Exception
OwFieldManagerControl
insertEditField
in class OwFieldManagerControl
w_p
- Writer object to write HTML tofieldDef_p
- OwFieldDefinitionfield_p
- OwField Value to be displayedstrID_p
- ID of the HTML elementException
public void insertReadOnlyField(Writer w_p, OwFieldDefinition fieldDef_p, Object value_p) throws Exception
OwFieldManagerControl
insertReadOnlyField
in class OwFieldManagerControl
w_p
- Writer object to write HTML tofieldDef_p
- OwFieldDefinition definition of fieldvalue_p
- Object Value to be displayedException
public Object updateField(javax.servlet.http.HttpServletRequest request_p, OwFieldDefinition fieldDef_p, Object value_p, String strID_p) throws Exception
OwFieldManagerControl
updateField
in class OwFieldManagerControl
request_p
- HttpServletRequestfieldDef_p
- OwFieldDefinitionvalue_p
- Object old ValuestrID_p
- ID of the HTML elementException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.