com.wewebu.ow.server.ecmimpl.owdummy.ui
Class OwDummyFieldManager

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.app.OwFieldManager
          extended by com.wewebu.ow.server.app.OwStandardFieldManager
              extended by com.wewebu.ow.server.ecmimpl.owdummy.ui.OwDummyFieldManager

public class OwDummyFieldManager
extends com.wewebu.ow.server.app.OwStandardFieldManager

Standard Implementation of the Property User Interface.
Displays Property as HTML and creates HTML Form Elements for editing properties, also performs Validation.
NOTE: This class is instantiated once for a block of properties. Is only one static instance of this class in one application.

To be implemented with the specific DMS system.

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


Nested Class Summary
static class OwDummyFieldManager.PersonalNumberPrefixes
           PersonalNumberPrefixes.
 
Field Summary
protected static OwDummyFieldManager.PersonalNumberPrefixes m_PersonalNumberPrefixes
           
 
Fields inherited from class com.wewebu.ow.server.app.OwStandardFieldManager
ARRAY_ITEM_INDEX_KEY, COMPLEX_ID_DELIMITER, FIELD_ID_KEY, m_DateFormat, m_DateWithoutTimeFormat, m_defMaxStringSize, m_FieldCtrlMap, m_MimeManager, m_NumberFormat, m_restoreFromRequestStrategy, m_textareaThreshold, m_TimeFormat, MAX_STRING_SIZE_CONFIG_NODE, THRESHOLD_CONFIG_NODE
 
Fields inherited from class com.wewebu.ow.server.app.OwFieldManager
m_externalFormEventTarget, m_FieldErrors, m_ids2displayNames, m_MainContext, m_ObjectMap
 
Constructor Summary
OwDummyFieldManager()
           
 
Method Summary
 void insertReadOnlyFieldInternal(Writer w_p, com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p, Object value_p)
          Formats and displays the value attached to the PropertyClass in HTML
 Object updateFieldInternal(javax.servlet.http.HttpServletRequest request_p, com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p, Object value_p, String strID_p)
          update the property value upon request and validates the new value.
 
Methods inherited from class com.wewebu.ow.server.app.OwStandardFieldManager
attachFieldControlByClass, attachFieldControlByType, attachFieldControlsFromConfiguration, createComboBoxModel, detach, getDateFormater, getDateWithoutTimeFormater, getField, getFieldControlByClass, getFieldControlByType, getMimeManager, getNumberFormater, getTimeFormater, getValueIndexTitle, init, insertChoiceListControl, insertEditableBoolean, insertEditableString, insertEditFieldInternal, insertLabel, insertSingleComplexEditFieldInternal, insertSingleComplexReadOnlyFieldInternal, insertSingleEditFieldInternal, insertSingleReadOnlyFieldInternal, onAddArrayItem, onDeleteArrayItem, parseDate, reset, updateComplexSingleFieldInternal, updateSingleFieldInternal, validateValue, writeAddMultiValueItemLink, writeRemoveMultiValueItemLink
 
Methods inherited from class com.wewebu.ow.server.app.OwFieldManager
clearFieldError, computeChangedFields, getConfigNode, getFieldJSErrorCtrlID, getFieldProvider, getFocusControlID, getFormName, getFormTarget, getSafeFieldError, getUpdateStatus, init, insertEditField, insertReadOnlyField, isFieldProviderName, isFieldProviderType, renderErrors, resetErrors, safeEqual, setExternalFormTarget, setFieldError, setFieldProvider, setFocusControlID, update, update, updateExternalFormTarget
 
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_PersonalNumberPrefixes

protected static final OwDummyFieldManager.PersonalNumberPrefixes m_PersonalNumberPrefixes
Constructor Detail

OwDummyFieldManager

public OwDummyFieldManager()
Method Detail

insertReadOnlyFieldInternal

public void insertReadOnlyFieldInternal(Writer w_p,
                                        com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p,
                                        Object value_p)
                                 throws Exception
Formats and displays the value attached to the PropertyClass in HTML

Overrides:
insertReadOnlyFieldInternal in class com.wewebu.ow.server.app.OwStandardFieldManager
Parameters:
w_p - Writer object to write HTML to
fieldDef_p - OwFieldDefinition definition of field
value_p - Object Value to be displayed
Throws:
Exception

updateFieldInternal

public Object updateFieldInternal(javax.servlet.http.HttpServletRequest request_p,
                                  com.wewebu.ow.server.field.OwFieldDefinition fieldDef_p,
                                  Object value_p,
                                  String strID_p)
                           throws Exception
update the property value upon request and validates the new value. Updates the object, which was displayed in a form using the getEditHTML(...) code. Throws Exception if new value could not be validated

Overrides:
updateFieldInternal in class com.wewebu.ow.server.app.OwStandardFieldManager
Parameters:
request_p - HttpServletRequest
fieldDef_p - OwFieldDefinition definition of field
value_p - Object old Value
strID_p - ID of the HTML element
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.