public class OwEditablePropertyString extends Object implements OwEditableProperty
Base class for a single editable property used in HTML forms.
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 String |
m_strError
a error message for this field, if update failed
|
protected Object |
m_value
current value of property
|
| Constructor and Description |
|---|
OwEditablePropertyString() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getFormElementID()
get a unique ID for the HTML form element
|
String |
getSafePropertyError(Locale locale_p)
gets a error message for this field, if update failed, clears the message automatically
|
Object |
getValue()
get current value of property
|
protected Object |
getValueFromRequest(Locale locale_p,
javax.servlet.http.HttpServletRequest request_p,
String strID_p)
overridable to apply changes on a submitted form
|
void |
render(Writer w_p,
int iCols_p,
int iRows_p)
insert the property into a HTML form for editing
|
void |
setValue(Object value_p)
set current value of property, to be overridden
|
boolean |
update(Locale locale_p,
javax.servlet.http.HttpServletRequest request_p)
apply changes form a HTML form request, to be overridden
|
protected Object m_value
protected String m_strError
public Object getValue()
getValue in interface OwEditablePropertypublic void setValue(Object value_p)
setValue in interface OwEditablePropertyvalue_p - Objectpublic boolean update(Locale locale_p, javax.servlet.http.HttpServletRequest request_p) throws Exception
update in interface OwEditablePropertyrequest_p - HttpServletRequest with form data to update the propertylocale_p - Locale to useExceptionprotected Object getValueFromRequest(Locale locale_p, javax.servlet.http.HttpServletRequest request_p, String strID_p) throws Exception
request_p - HttpServletRequest with form data to update the propertystrID_p - String the HTML form element ID of the requested valueExceptionpublic String getSafePropertyError(Locale locale_p)
getSafePropertyError in interface OwEditablePropertyprotected String getFormElementID()
public void render(Writer w_p, int iCols_p, int iRows_p) throws Exception
w_p - Writer to write HTML code toiCols_p - int number of columns of 0 to use a single input fieldiRows_p - int number of rows of 0 to use a single input fieldExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.