com.wewebu.ow.server.app
Interface OwEditableProperty

All Known Implementing Classes:
OwEditablePropertyDate, OwEditablePropertyString

public interface OwEditableProperty

Interface for a 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


Method Summary
 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
 void setValue(Object value_p)
          set current value of property
 boolean update(Locale locale_p, javax.servlet.http.HttpServletRequest request_p)
          apply changes form a HTML form request, to be overridden
 

Method Detail

getValue

Object getValue()
get current value of property

Returns:
Object

setValue

void setValue(Object value_p)
set current value of property

Parameters:
value_p - Object

update

boolean update(Locale locale_p,
               javax.servlet.http.HttpServletRequest request_p)
               throws Exception
apply changes form a HTML form request, to be overridden

Parameters:
locale_p - Locale to use
request_p - HttpServletRequest with form data to update the property
Returns:
true = value changed, false = value did not change
Throws:
Exception

getSafePropertyError

String getSafePropertyError(Locale locale_p)
gets a error message for this field, if update failed, clears the message automatically

Returns:
String error message or an empty string


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.