com.wewebu.ow.server.settingsimpl
Class OwSettingsPropertyStringConfigurationBox

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.app.OwSettingsPropertyControl
          extended by com.wewebu.ow.server.settingsimpl.OwSettingsPropertyBaseImpl
              extended by com.wewebu.ow.server.settingsimpl.OwSettingsPropertyStringConfigurationBox
All Implemented Interfaces:
OwSettingsProperty

public class OwSettingsPropertyStringConfigurationBox
extends OwSettingsPropertyBaseImpl

A List of String properties, which can be configured via two combo boxes.

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 static String COMBO_SELECT_ITEM_DISPLAY_ATTR_NAME
          attribute name of a combo select item display name for list properties
protected static String COMBO_SELECT_ITEM_NODE_NAME
          node name of a combo select item for list properties
 
Fields inherited from class com.wewebu.ow.server.settingsimpl.OwSettingsPropertyBaseImpl
ITEM_PREFIX, ITEM_QUERY_KEY, m_defaultValue, m_externalFormEventTarget, m_fList, m_propertyDefinitionNode, m_strError, m_strSetName, m_value
 
Fields inherited from interface com.wewebu.ow.server.app.OwSettingsProperty
ITEM_VALUE_NODE
 
Constructor Summary
OwSettingsPropertyStringConfigurationBox()
           
 
Method Summary
protected  List createAvailablePropertiesList(Map attributesMap_p)
          create a list of values, if property is a list
protected  List getSelectedPropertiesList()
          create a list of values, if property is a list
 void insertFormField(Writer w_p)
          insert the property into a HTML form for editing
 void onMoveDown(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked Move Down Button
 void onMoveUp(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked Move Up Button
 void onShiftLeft(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked Shift Left Button
 void onShiftRight(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked Shift Right Button
 boolean updateExternalFormTarget(javax.servlet.http.HttpServletRequest request_p, boolean fSave_p)
          update the target after a form event, so it can set its form fields
 
Methods inherited from class com.wewebu.ow.server.settingsimpl.OwSettingsPropertyBaseImpl
appendSingleValueNode, canAdd, createSingleClonedValue, createValue, createValueList, extractIDIndex, getDefaultListItemValue, getDisplayName, getFormName, getFormTarget, getHelpPath, getMaxListSize, getName, getPropertyDefinitionNode, getPropertyError, getSafePropertyError, getSingleValue, getSingleValueFromRequest, getValue, getValueNode, hasError, init, init, insertFormValue, isEditable, isList, isModified, isUser, onAdd, onDelete, saved, setDefault, setExternalFormTarget, setValue, toString, writeAddNewItemButton, writeDeleteButton
 
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget
attach, detach, 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, wait, wait, wait
 

Field Detail

COMBO_SELECT_ITEM_NODE_NAME

protected static final String COMBO_SELECT_ITEM_NODE_NAME
node name of a combo select item for list properties

See Also:
Constant Field Values

COMBO_SELECT_ITEM_DISPLAY_ATTR_NAME

protected static final String COMBO_SELECT_ITEM_DISPLAY_ATTR_NAME
attribute name of a combo select item display name for list properties

See Also:
Constant Field Values
Constructor Detail

OwSettingsPropertyStringConfigurationBox

public OwSettingsPropertyStringConfigurationBox()
Method Detail

insertFormField

public void insertFormField(Writer w_p)
                     throws Exception
Description copied from class: OwSettingsPropertyBaseImpl
insert the property into a HTML form for editing

Overrides:
insertFormField in class OwSettingsPropertyBaseImpl
Parameters:
w_p - Writer
Throws:
Exception

createAvailablePropertiesList

protected List createAvailablePropertiesList(Map attributesMap_p)
                                      throws Exception
create a list of values, if property is a list

Parameters:
attributesMap_p - a Map
Returns:
List of Objects representing values
Throws:
Exception

getSelectedPropertiesList

protected List getSelectedPropertiesList()
                                  throws Exception
create a list of values, if property is a list

Returns:
List of Objects representing values
Throws:
Exception

onShiftLeft

public void onShiftLeft(javax.servlet.http.HttpServletRequest request_p)
                 throws Exception
event called when user clicked Shift Left Button

Parameters:
request_p - HttpServletRequest
Throws:
Exception

onShiftRight

public void onShiftRight(javax.servlet.http.HttpServletRequest request_p)
                  throws Exception
event called when user clicked Shift Right Button

Parameters:
request_p - HttpServletRequest
Throws:
Exception

onMoveUp

public void onMoveUp(javax.servlet.http.HttpServletRequest request_p)
              throws Exception
event called when user clicked Move Up Button

Parameters:
request_p - HttpServletRequest
Throws:
Exception

onMoveDown

public void onMoveDown(javax.servlet.http.HttpServletRequest request_p)
                throws Exception
event called when user clicked Move Down Button

Parameters:
request_p - HttpServletRequest
Throws:
Exception

updateExternalFormTarget

public boolean updateExternalFormTarget(javax.servlet.http.HttpServletRequest request_p,
                                        boolean fSave_p)
                                 throws Exception
update the target after a form event, so it can set its form fields

Overrides:
updateExternalFormTarget in class OwSettingsPropertyBaseImpl
Parameters:
request_p - HttpServletRequest
fSave_p - boolean true = save the changes of the form data, false = just update the form data, but do not save
Returns:
true = field data was valid, false = field data was invalid
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.