com.wewebu.ow.server.settingsimpl
Class OwSettingsPropertyWindowPositions.OwWindowPositionsImpl

java.lang.Object
  extended by com.wewebu.ow.server.app.OwWindowPositions
      extended by com.wewebu.ow.server.settingsimpl.OwSettingsPropertyWindowPositions.OwWindowPositionsImpl
Enclosing class:
OwSettingsPropertyWindowPositions

public class OwSettingsPropertyWindowPositions.OwWindowPositionsImpl
extends OwWindowPositions

tuple that holds window position information


Field Summary
protected  boolean relativePos
          Marker to know if the current position is defined with relative or absolute coordinates
 
Fields inherited from class com.wewebu.ow.server.app.OwWindowPositions
UNITS_PERCENT, UNITS_PIXEL
 
Constructor Summary
OwSettingsPropertyWindowPositions.OwWindowPositionsImpl()
          create default value
OwSettingsPropertyWindowPositions.OwWindowPositionsImpl(javax.servlet.http.HttpServletRequest request_p, String strID_p)
          create from request
OwSettingsPropertyWindowPositions.OwWindowPositionsImpl(Node valueNode_p)
          construct value from XML node
 
Method Summary
 void appendNode(Node valueRootNode_p)
          append the value as a XML node to the given node
 OwSettingsPropertyWindowPositions.OwWindowPositionsImpl createClone()
          clone value
 boolean getPositionMainWindow()
           
 int getUnits()
          return units as defined with UNITS_...
 int getViewerHeight()
           
 int getViewerTopX()
           
 int getViewerTopY()
           
 int getViewerWidth()
           
 int getWindowHeight()
           
 int getWindowTopX()
           
 int getWindowTopY()
           
 int getWindowWidth()
           
protected  void insertFormValue(Writer w_p, String strID_p, Locale locale_p)
          overridable to insert a single value into a edit HTML form
 void insertSettingsApplet(Writer w_p)
          insert desktop settings applet tag
 void setFromRequest(javax.servlet.http.HttpServletRequest request_p, String strBaseID_p)
          set value from request
protected  void writeBooleanMember(Writer w_p, boolean fValue_p, String strID_p, String sName_p, Locale locale_p)
           
 
Methods inherited from class com.wewebu.ow.server.app.OwWindowPositions
getUndefWindowPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relativePos

protected boolean relativePos
Marker to know if the current position is defined with relative or absolute coordinates

Since:
3.1.0.0
Constructor Detail

OwSettingsPropertyWindowPositions.OwWindowPositionsImpl

public OwSettingsPropertyWindowPositions.OwWindowPositionsImpl()
create default value


OwSettingsPropertyWindowPositions.OwWindowPositionsImpl

public OwSettingsPropertyWindowPositions.OwWindowPositionsImpl(javax.servlet.http.HttpServletRequest request_p,
                                                               String strID_p)
                                                        throws OwInvalidOperationException
create from request

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

OwSettingsPropertyWindowPositions.OwWindowPositionsImpl

public OwSettingsPropertyWindowPositions.OwWindowPositionsImpl(Node valueNode_p)
construct value from XML node

Parameters:
valueNode_p - Node
Method Detail

setFromRequest

public void setFromRequest(javax.servlet.http.HttpServletRequest request_p,
                           String strBaseID_p)
                    throws OwInvalidOperationException
set value from request

Specified by:
setFromRequest in class OwWindowPositions
Parameters:
request_p - HttpServletRequest with form data to update the property
strBaseID_p - String the HTML form element base ID of the requested value
Throws:
OwInvalidOperationException

insertFormValue

protected void insertFormValue(Writer w_p,
                               String strID_p,
                               Locale locale_p)
                        throws Exception
overridable to insert a single value into a edit HTML form

Parameters:
w_p - Writer to write HTML code to
strID_p - String the ID of the HTML element for use in onApply
locale_p - Locale to use
Throws:
Exception

writeBooleanMember

protected void writeBooleanMember(Writer w_p,
                                  boolean fValue_p,
                                  String strID_p,
                                  String sName_p,
                                  Locale locale_p)
                           throws Exception
Throws:
Exception

insertSettingsApplet

public void insertSettingsApplet(Writer w_p)
                          throws IOException,
                                 Exception
insert desktop settings applet tag

Throws:
IOException
Exception
Since:
3.1.0.0

createClone

public OwSettingsPropertyWindowPositions.OwWindowPositionsImpl createClone()
clone value

Returns:
OwWindowPositions

appendNode

public void appendNode(Node valueRootNode_p)
append the value as a XML node to the given node

Parameters:
valueRootNode_p - Node

getViewerWidth

public int getViewerWidth()
Specified by:
getViewerWidth in class OwWindowPositions

getViewerHeight

public int getViewerHeight()
Specified by:
getViewerHeight in class OwWindowPositions

getViewerTopX

public int getViewerTopX()
Specified by:
getViewerTopX in class OwWindowPositions

getViewerTopY

public int getViewerTopY()
Specified by:
getViewerTopY in class OwWindowPositions

getWindowWidth

public int getWindowWidth()
Specified by:
getWindowWidth in class OwWindowPositions

getWindowHeight

public int getWindowHeight()
Specified by:
getWindowHeight in class OwWindowPositions

getWindowTopX

public int getWindowTopX()
Specified by:
getWindowTopX in class OwWindowPositions

getWindowTopY

public int getWindowTopY()
Specified by:
getWindowTopY in class OwWindowPositions

getPositionMainWindow

public boolean getPositionMainWindow()
Specified by:
getPositionMainWindow in class OwWindowPositions

getUnits

public int getUnits()
Description copied from class: OwWindowPositions
return units as defined with UNITS_...

Specified by:
getUnits in class OwWindowPositions


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.