public class OwSettingsPropertyWindowPositions.OwWindowPositionsImpl extends OwWindowPositions
Modifier and Type | Field and Description |
---|---|
protected boolean |
relativePos
Marker to know if the current position is defined with relative or absolute coordinates
|
UNITS_PERCENT, UNITS_PIXEL
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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 |
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) |
getUndefWindowPosition
protected boolean relativePos
public OwSettingsPropertyWindowPositions.OwWindowPositionsImpl()
public OwSettingsPropertyWindowPositions.OwWindowPositionsImpl(javax.servlet.http.HttpServletRequest request_p, String strID_p) throws OwInvalidOperationException
request_p
- HttpServletRequest with form data to update the propertystrID_p
- String the HTML form element ID of the requested valueOwInvalidOperationException
public OwSettingsPropertyWindowPositions.OwWindowPositionsImpl(Node valueNode_p)
valueNode_p
- Nodepublic void setFromRequest(javax.servlet.http.HttpServletRequest request_p, String strBaseID_p) throws OwInvalidOperationException
setFromRequest
in class OwWindowPositions
request_p
- HttpServletRequest with form data to update the propertystrBaseID_p
- String the HTML form element base ID of the requested valueOwInvalidOperationException
protected void insertFormValue(Writer w_p, String strID_p, Locale locale_p) throws Exception
w_p
- Writer to write HTML code tostrID_p
- String the ID of the HTML element for use in onApplylocale_p
- Locale to useException
protected void writeBooleanMember(Writer w_p, boolean fValue_p, String strID_p, String sName_p, Locale locale_p) throws Exception
Exception
public OwSettingsPropertyWindowPositions.OwWindowPositionsImpl createClone()
public void appendNode(Node valueRootNode_p)
valueRootNode_p
- Nodepublic int getViewerWidth()
getViewerWidth
in class OwWindowPositions
public int getViewerHeight()
getViewerHeight
in class OwWindowPositions
public int getViewerTopX()
getViewerTopX
in class OwWindowPositions
public int getViewerTopY()
getViewerTopY
in class OwWindowPositions
public int getWindowWidth()
getWindowWidth
in class OwWindowPositions
public int getWindowHeight()
getWindowHeight
in class OwWindowPositions
public int getWindowTopX()
getWindowTopX
in class OwWindowPositions
public int getWindowTopY()
getWindowTopY
in class OwWindowPositions
public boolean getPositionMainWindow()
getPositionMainWindow
in class OwWindowPositions
public int getUnits()
OwWindowPositions
getUnits
in class OwWindowPositions
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.