com.wewebu.ow.server.settingsimpl
Class OwSettingsPropertyWindowPositions

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.OwSettingsPropertyWindowPositions
All Implemented Interfaces:
OwSettingsProperty

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


Nested Class Summary
 class OwSettingsPropertyWindowPositions.OwWindowPositionsImpl
          tuple that holds window position information
 
Field Summary
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
 
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
OwSettingsPropertyWindowPositions()
           
 
Method Summary
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
 
Methods inherited from class com.wewebu.ow.server.settingsimpl.OwSettingsPropertyBaseImpl
canAdd, createValue, createValueList, extractIDIndex, getDisplayName, getFormName, getFormTarget, getHelpPath, getMaxListSize, getName, getPropertyDefinitionNode, getPropertyError, getSafePropertyError, 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
 

Field Detail

VIEWER_WIDTH

protected static final String VIEWER_WIDTH
Persistent node for viewer width

Since:
3.1.0.0
See Also:
Constant Field Values

VIEWER_HEIGHT

protected static final String VIEWER_HEIGHT
Persistent node for viewer height

Since:
3.1.0.0
See Also:
Constant Field Values

VIEWER_TOPX

protected static final String VIEWER_TOPX
Persistent node for viewer top X coordinate

Since:
3.1.0.0
See Also:
Constant Field Values

VIEWER_TOPY

protected static final String VIEWER_TOPY
Persistent node for viewer top Y coordinate

Since:
3.1.0.0
See Also:
Constant Field Values

MAIN_WIDTH

protected static final String MAIN_WIDTH
Persistent node for main window width

Since:
3.1.0.0
See Also:
Constant Field Values

MAIN_HEIGHT

protected static final String MAIN_HEIGHT
Persistent node for main window height

Since:
3.1.0.0
See Also:
Constant Field Values

MAIN_TOPX

protected static final String MAIN_TOPX
Persistent node for main window top X coordinate

Since:
3.1.0.0
See Also:
Constant Field Values

MAIN_TOPY

protected static final String MAIN_TOPY
Persistent node for main window top Y coordinate

Since:
3.1.0.0
See Also:
Constant Field Values

DISPLAY_MODE

protected static final String DISPLAY_MODE
Persistent node for display mode, for values see DISPLAY_MODE_..

Since:
3.1.0.0
See Also:
Constant Field Values

POSITION_MAIN

protected static final String POSITION_MAIN
Persistent node for flag to position also the main window

Since:
3.1.0.0
See Also:
Constant Field Values
Constructor Detail

OwSettingsPropertyWindowPositions

public OwSettingsPropertyWindowPositions()
Method Detail

getDefaultListItemValue

protected Object getDefaultListItemValue()
overridable to create a default value for list properties

Overrides:
getDefaultListItemValue in class OwSettingsPropertyBaseImpl
Returns:
Object with default value for a new list item

getSingleValueFromRequest

protected Object getSingleValueFromRequest(javax.servlet.http.HttpServletRequest request_p,
                                           String strID_p)
                                    throws OwInvalidOperationException
overridable to apply changes on a submitted form

Overrides:
getSingleValueFromRequest in class OwSettingsPropertyBaseImpl
Parameters:
request_p - HttpServletRequest with form data to update the property
strID_p - String the HTML form element ID of the requested value
Throws:
OwInvalidOperationException

appendSingleValueNode

protected void appendSingleValueNode(Node valueRootNode_p,
                                     Object value_p)
overridable, return the given value as a DOM Node for serialization

Overrides:
appendSingleValueNode in class OwSettingsPropertyBaseImpl
Parameters:
valueRootNode_p - root Node of the property
value_p - Object to append as DOM Node

createSingleClonedValue

protected Object createSingleClonedValue(Object oSingleValue_p)
create a clone out of the given single property value

Overrides:
createSingleClonedValue in class OwSettingsPropertyBaseImpl
Parameters:
oSingleValue_p - single Object value
Returns:
Object

getSingleValue

protected Object getSingleValue(Node valueNode_p)
overridable to create a single value for the given node

Overrides:
getSingleValue in class OwSettingsPropertyBaseImpl
Returns:
Object with value

insertFormValue

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

Overrides:
insertFormValue in class OwSettingsPropertyBaseImpl
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.