public class OwFieldManagerControlObject extends OwFieldManagerControl
Field Control to display properties of type OwObject.
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
Modifier and Type | Field and Description |
---|---|
protected static String |
ATTACHMENT_DMS_ID
query key for the attachment DMSID used in renderAttachment
|
protected static String |
PLUG_INDEX_KEY
query key for the attachment plugin index used in renderAttachment
|
Constructor and Description |
---|
OwFieldManagerControlObject() |
Modifier and Type | Method and Description |
---|---|
void |
insertEditField(Writer w_p,
OwFieldDefinition fieldDef_p,
OwField field_p,
String strID_p)
formates and displays the value attached to the fieldClass in HTML for use in a HTML Form.
|
void |
insertLabel(Writer w_p,
String suffix_p,
OwField field,
String strID_p,
boolean writeLabel_p)
Renders a property control label on the given Writer.
value type are considered at rendering time. |
void |
insertReadOnlyField(Writer w_p,
OwFieldDefinition fieldDef_p,
Object value_p)
formats and displays the value attached to the PropertyClass in HTML
|
void |
onDeleteArrayItem(javax.servlet.http.HttpServletRequest request_p)
called when user clicks to delete an array item
|
void |
onPasteObjectArrayItem(javax.servlet.http.HttpServletRequest request_p)
called when user clicks to paste an object array item from clipboard
|
void |
onPasteObjectReference(javax.servlet.http.HttpServletRequest request_p)
called when user presses SetImage
|
protected void |
renderObjectReferenceLink(Writer w_p,
OwFieldDefinition fieldDef_p,
OwObjectReference obj_p,
String strID_p,
boolean fEdit_p)
insert a link for OwObject values
|
protected void |
renderObjectReferenceLinkInternal(Writer w_p,
OwFieldDefinition fieldDef_p,
OwObjectReference obj_p,
String strID_p,
boolean fEdit_p)
insert a link for OwObject values
|
protected void |
renderPasteObjectLink(Writer w_p,
String strID_p,
OwFieldDefinition fieldDef_p)
render the clipboard paste link
|
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
attach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, setExternalFormTarget, updateExternalFormTarget
protected static final String ATTACHMENT_DMS_ID
protected static final String PLUG_INDEX_KEY
public void insertReadOnlyField(Writer w_p, OwFieldDefinition fieldDef_p, Object value_p) throws Exception
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 renderObjectReferenceLinkInternal(Writer w_p, OwFieldDefinition fieldDef_p, OwObjectReference obj_p, String strID_p, boolean fEdit_p) throws Exception
w_p
- Writer objectfieldDef_p
- OwFieldDefinitionobj_p
- OwObject to renderstrID_p
- String field IDfEdit_p
- boolean true = edit field, false = read only fieldException
protected void renderObjectReferenceLink(Writer w_p, OwFieldDefinition fieldDef_p, OwObjectReference obj_p, String strID_p, boolean fEdit_p) throws Exception
w_p
- Writer objectfieldDef_p
- OwFieldDefinitionobj_p
- OwObject to renderstrID_p
- String field IDfEdit_p
- boolean true = edit field, false = read only fieldException
protected void renderPasteObjectLink(Writer w_p, String strID_p, OwFieldDefinition fieldDef_p) throws Exception
w_p
- WriterstrID_p
- ID of itemfieldDef_p
- - OwFieldDefinition, used to identify if single or array value, since 4.1.1.0Exception
public void onPasteObjectReference(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public void insertEditField(Writer w_p, OwFieldDefinition fieldDef_p, OwField field_p, String strID_p) throws Exception
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 onDeleteArrayItem(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public void onPasteObjectArrayItem(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public Object updateField(javax.servlet.http.HttpServletRequest request_p, OwFieldDefinition fieldDef_p, Object value_p, String strID_p) throws Exception
updateField
in class OwFieldManagerControl
request_p
- HttpServletRequestfieldDef_p
- OwFieldDefinitionvalue_p
- Object old ValuestrID_p
- ID of the HTML elementException
public void insertLabel(Writer w_p, String suffix_p, OwField field, String strID_p, boolean writeLabel_p) throws Exception
OwFieldManagerControl
insertLabel
in class OwFieldManagerControl
Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.