public class OwSettingsPropertyWindowPositions extends OwSettingsPropertyBaseImpl
Settings control implementation to save the window and viewer position as a OwSettingsPropertyWindowPositions.OwWindowPositions value.
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
Modifier and Type | Class and Description |
---|---|
class |
OwSettingsPropertyWindowPositions.OwWindowPositionsImpl
tuple that holds window position information
|
Modifier and Type | Field and Description |
---|---|
protected static String |
DISPLAY_MODE
Persistent node for display mode, for values see DISPLAY_MODE_..
|
protected static String |
MAIN_HEIGHT
Persistent node for main window height
|
protected static String |
MAIN_TOPX
Persistent node for main window top X coordinate
|
protected static String |
MAIN_TOPY
Persistent node for main window top Y coordinate
|
protected static String |
MAIN_WIDTH
Persistent node for main window width
|
protected static String |
POSITION_MAIN
Persistent node for flag to position also the main window
|
protected static String |
VIEWER_HEIGHT
Persistent node for viewer height
|
protected static String |
VIEWER_TOPX
Persistent node for viewer top X coordinate
|
protected static String |
VIEWER_TOPY
Persistent node for viewer top Y coordinate
|
protected static String |
VIEWER_WIDTH
Persistent node for viewer width
|
ITEM_PREFIX, ITEM_QUERY_KEY, m_defaultValue, m_fList, m_strError, m_value
m_externalFormEventTarget, m_propertyDefinitionNode, m_strSetName
ITEM_VALUE_NODE
Constructor and Description |
---|
OwSettingsPropertyWindowPositions() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendSingleValueNode(Node valueRootNode_p,
Object value_p)
overridable, return the given value as a DOM Node for serialization
|
protected Object |
createSingleClonedValue(Object oSingleValue_p)
create a clone out of the given single property value
|
protected Object |
getDefaultListItemValue()
overridable to create a default value for list properties
|
protected Object |
getSingleValue(Node valueNode_p)
overridable to create a single value for the given node
|
protected Object |
getSingleValueFromRequest(javax.servlet.http.HttpServletRequest request_p,
String strID_p)
overridable to apply changes on a submitted form
|
protected void |
insertFormValue(Writer w_p,
Object value_p,
String strID_p,
int iIndex_p)
overridable to insert a single value into a edit HTML form
|
void |
insertLabel(Writer w_p) |
protected void |
insertLabelValue(Writer w_p,
String displayName,
String strID_p,
int iIndex_p) |
canAdd, createValue, createValueList, extractIDIndex, getMaxListSize, getPropertyError, getSafePropertyError, getValue, getValueNode, hasError, init, insertFormField, isList, isModified, onAdd, onDelete, saved, setDefault, setValue, toString, updateExternalFormTarget, writeAddNewItemButton, writeDeleteButton
getDisplayName, getFormName, getFormTarget, getHelpPath, getName, getPropertyDefinitionNode, init, isEditable, isUser, setExternalFormTarget
attach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest
protected static final String VIEWER_WIDTH
protected static final String VIEWER_HEIGHT
protected static final String VIEWER_TOPX
protected static final String VIEWER_TOPY
protected static final String MAIN_WIDTH
protected static final String MAIN_HEIGHT
protected static final String MAIN_TOPX
protected static final String MAIN_TOPY
protected static final String DISPLAY_MODE
protected static final String POSITION_MAIN
protected Object getDefaultListItemValue()
getDefaultListItemValue
in class OwSettingsPropertyBaseImpl
protected Object getSingleValueFromRequest(javax.servlet.http.HttpServletRequest request_p, String strID_p) throws OwInvalidOperationException
getSingleValueFromRequest
in class OwSettingsPropertyBaseImpl
request_p
- HttpServletRequest with form data to update the propertystrID_p
- String the HTML form element ID of the requested valueOwInvalidOperationException
protected void appendSingleValueNode(Node valueRootNode_p, Object value_p)
appendSingleValueNode
in class OwSettingsPropertyBaseImpl
valueRootNode_p
- root Node of the propertyvalue_p
- Object to append as DOM Nodeprotected Object createSingleClonedValue(Object oSingleValue_p)
createSingleClonedValue
in class OwSettingsPropertyBaseImpl
oSingleValue_p
- single Object valueprotected Object getSingleValue(Node valueNode_p)
getSingleValue
in class OwSettingsPropertyBaseImpl
protected void insertFormValue(Writer w_p, Object value_p, String strID_p, int iIndex_p) throws Exception
insertFormValue
in class OwSettingsPropertyBaseImpl
w_p
- Writer to write HTML code tovalue_p
- the property value to editstrID_p
- String the ID of the HTML element for use in onApplyiIndex_p
- int Index of item if it is a listException
public void insertLabel(Writer w_p) throws Exception
insertLabel
in class OwSettingsPropertyBaseImpl
Exception
protected void insertLabelValue(Writer w_p, String displayName, String strID_p, int iIndex_p) throws IOException
insertLabelValue
in class OwSettingsPropertyBaseImpl
IOException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.