public class OwFieldManagerControlClass extends OwFieldManagerControl
Control to display a Image Property.
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 |
---|
OwFieldManagerControlClass() |
Modifier and Type | Method and Description |
---|---|
protected OwClass[] |
fromFieldValue(Object value_p,
OwFieldDefinition fieldDef_p)
Converts the field value to an array of
OwClass objects considering the field definition. |
protected void |
insertClassOption(Writer w_p,
OwFieldDefinition fieldDef_p,
OwClass value_p,
int optionIndex_p)
HTML class defining <option> element insertion method
|
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
|
protected void |
insertSingleReadOnlyField(Writer w_p,
OwFieldDefinition fieldDef_p,
Object value_p) |
protected String |
retrieveDisplayName(OwClass owClass_p)
Attempts to retrieve the display name of the class defined by the given
OwClass parameter. |
protected Object |
toFieldValue(OwClass[] classValues_p,
OwFieldDefinition fieldDef_p)
Converts an
OwClass array to a field value considering the field definition
If the field is not defined as an array the value at index 0 is returned. |
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, init, init, insertLabel
attach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, setExternalFormTarget, updateExternalFormTarget
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
protected void insertSingleReadOnlyField(Writer w_p, OwFieldDefinition fieldDef_p, Object value_p) throws Exception
Exception
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
protected OwClass[] fromFieldValue(Object value_p, OwFieldDefinition fieldDef_p) throws Exception
OwClass
objects considering the field definition.
If the field is not defined as an array an array with size 1 is returned containing the field value.protected Object toFieldValue(OwClass[] classValues_p, OwFieldDefinition fieldDef_p) throws Exception
OwClass
array to a field value considering the field definition
If the field is not defined as an array the value at index 0 is returned.classValues_p
- fieldDef_p
- Exception
protected String retrieveDisplayName(OwClass owClass_p)
OwClass
parameter.
If the display name can not be retrieve the system class name is returned.
If the OwClass
is null
an empty string will be returned.owClass_p
- OwClass
parameterprotected void insertClassOption(Writer w_p, OwFieldDefinition fieldDef_p, OwClass value_p, int optionIndex_p) throws Exception
w_p
- fieldDef_p
- value_p
- optionIndex_p
- index at which the class will be rendered in the select controlException
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.