com.wewebu.ow.server.settingsimpl
Class OwSettingsPropertyDisplayCombo

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.OwSettingsPropertyStringCombo
                  extended by com.wewebu.ow.server.settingsimpl.OwSettingsPropertyDisplayCombo
All Implemented Interfaces:
OwSettingsProperty

public class OwSettingsPropertyDisplayCombo
extends OwSettingsPropertyStringCombo

Settings Property Combobox for Windows Position.

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

Since:
3.2.0.0


Field Summary
 
Fields inherited from class com.wewebu.ow.server.settingsimpl.OwSettingsPropertyStringCombo
COMBO_SELECT_ITEM_DISPLAY_ATTR_NAME, COMBO_SELECT_ITEM_NODE_NAME
 
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
OwSettingsPropertyDisplayCombo()
           
 
Method Summary
protected  List createComboList()
          create a list of values, if property is a list
protected  List createComboSelectList(Node valueNode_p)
          create a list of values, if property is a list
protected  String displayValue(String mode_p)
          Display value localized
protected  void insertFormValue(Writer w_p, Object value_p, String strID_p, int iIndex_p)
          insert a single value into a edit HTML form
 
Methods inherited from class com.wewebu.ow.server.settingsimpl.OwSettingsPropertyStringCombo
createSingleClonedValue, getDefaultListItemValue, getSingleValueFromRequest
 
Methods inherited from class com.wewebu.ow.server.settingsimpl.OwSettingsPropertyBaseImpl
appendSingleValueNode, canAdd, createValue, createValueList, extractIDIndex, getDisplayName, getFormName, getFormTarget, getHelpPath, getMaxListSize, getName, getPropertyDefinitionNode, getPropertyError, getSafePropertyError, getSingleValue, getValue, getValueNode, hasError, init, init, insertFormField, isEditable, isList, isModified, isUser, onAdd, onDelete, saved, setDefault, setExternalFormTarget, setValue, toString, updateExternalFormTarget, 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
 

Constructor Detail

OwSettingsPropertyDisplayCombo

public OwSettingsPropertyDisplayCombo()
Method Detail

createComboSelectList

protected List createComboSelectList(Node valueNode_p)
                              throws Exception
create a list of values, if property is a list

Overrides:
createComboSelectList in class OwSettingsPropertyStringCombo
Parameters:
valueNode_p - Node with child value nodes
Returns:
List of Objects representing values
Throws:
Exception

displayValue

protected String displayValue(String mode_p)
Display value localized

Parameters:
mode_p - mode
Returns:
String localized value

createComboList

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

Returns:
List of Objects representing values
Throws:
Exception

insertFormValue

protected void insertFormValue(Writer w_p,
                               Object value_p,
                               String strID_p,
                               int iIndex_p)
                        throws Exception
insert a single value into a edit HTML form

Overrides:
insertFormValue in class OwSettingsPropertyStringCombo
Parameters:
w_p - Writer to write HTML code to
value_p - the property value to edit
strID_p - String the ID of the HTML element for use in onApply
iIndex_p - int Index of item if it is a list
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.