|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.app.OwEditablePropertyString
public class OwEditablePropertyString
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
| Field Summary | |
|---|---|
protected String |
m_strError
a error message for this field, if update failed |
protected Object |
m_value
current value of property |
| Constructor Summary | |
|---|---|
OwEditablePropertyString()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object m_value
protected String m_strError
| Constructor Detail |
|---|
public OwEditablePropertyString()
| Method Detail |
|---|
public Object getValue()
getValue in interface OwEditablePropertypublic void setValue(Object value_p)
setValue in interface OwEditablePropertyvalue_p - Object
public 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 use
Exception
protected 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 value
Exceptionpublic 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 field
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||