by.belsoft.report.tools.actions
Class CommonViewAction

java.lang.Object
  |
  +--by.belsoft.report.tools.actions.ContextData
        |
        +--by.belsoft.report.tools.actions.CommonViewAction
All Implemented Interfaces:
SimpleElements
Direct Known Subclasses:
PreviewAction, ViewAction

public class CommonViewAction
extends ContextData
implements SimpleElements

Class that responds on common data

Author:
Ilya Kirillov

Field Summary
protected  java.util.HashMap attributes
           
protected  java.util.ArrayList attributeStyleList
           
protected  java.lang.String cols
           
protected  BaseTakenUp container
           
protected  java.util.HashMap haveColor
           
protected  java.lang.String id
           
protected  java.util.HashMap inputRend
           
protected  java.util.HashMap renders
           
protected  java.lang.String rows
           
protected  java.lang.String selectedTableId
           
protected  java.util.HashMap selectLists
           
protected  java.lang.String selectValue
           
protected  UITree uiTree
           
protected  XmlUtilities xmluts
           
 
Constructor Summary
CommonViewAction()
          Base constructor
 
Method Summary
 BaseElement findContainerBaseElement(java.lang.String id, BaseTakenUp cont)
          findContainerBaseElement is looking for base elements
 java.lang.Object findContainerObject(java.lang.String id, BaseTakenUp cont)
          findContainerObject looking for object by given data
 BaseTakenUp generateTable(java.lang.String table, java.lang.String tr, java.lang.String td)
          generateTable generates table with given number of rows and columns
 java.util.HashMap getAttributes()
          standard getter
 java.util.ArrayList getAttributeStyleList()
          standard getter
 java.lang.String getCols()
          standard getter
 BaseTakenUp getContainer()
          standard getter
 java.util.HashMap getHaveColor()
          standard getter
 java.lang.String getId()
          standard getter
 java.lang.String getIdContainer()
          getIdContainer reorganizes the current id to container id
 java.util.HashMap getInputRend()
          getInputRend standard getter
 java.util.HashMap getRenders()
          standard getter
 java.lang.String getRows()
          standard getter
 java.lang.String getSelectedTableId()
          getSelectedTableId standard getter
 java.util.HashMap getSelectLists()
          standard getter
 java.lang.String getSelectValue()
          getSelectValue standard getter
 UITree getUiTree()
          standard getter
 void listenSelectProps(ValueChangeEvent vce)
          listenSelectProps listens select properties
 void organizeAttributes(java.lang.String elementName)
          organizeAttributes organizes attributes for given element
 void pasteImage(java.util.HashMap attributes, UploadedFile image)
          pasteImage pastes image into container
 void pasteLink(java.util.HashMap attributes, UploadedFile image)
          pasteLink pastes link into container
 void pasteTextArea(java.util.HashMap attributes)
          pasteTextArea pastes textarea into container
 void pasteTextField(java.util.HashMap attributes)
          pasteTextField pastes textfield into container
 java.lang.String properties()
          properties method for tree expanding
 BaseTakenUp returnContainer(java.lang.String id, BaseTakenUp cont)
          returnContainer returns container by given data
 void setAttributes(java.util.HashMap attributes)
          standard setter
 void setAttributeStyleList(java.util.ArrayList attributeStyleList)
          standard setter
 void setCols(java.lang.String cols)
          standard setter
 void setCommonAttributeStyle(java.lang.String actName, ActionEvent ae, java.lang.String id, java.lang.String template)
          setCommonAttributeStyle sets attributes and their values
 void setContainer(BaseTakenUp container)
          standard setter
 void setHaveColor(java.util.HashMap haveColor)
          standard setter
 void setId(java.lang.String id)
          standard setter
 void setInputRend(java.util.HashMap inputRend)
          setInputRend standard setter
 void setPageData(java.lang.String elementName, java.lang.String elementId)
          setPageData sets all element data on page
 void setRenders(java.util.HashMap renders)
          standard setter
 void setRows(java.lang.String rows)
          standard setter
 void setSelectedTableId(java.lang.String selectedTableId)
          setSelectedTableId standard setter
 void setSelectLists(java.util.HashMap selectLists)
          standard setter
 void setSelectValue(java.lang.String selectValue)
          setSelectValue standard setter
 void setUiTree(UITree uiTree)
          standard setter
 
Methods inherited from class by.belsoft.report.tools.actions.ContextData
getContext, getReportName, getRequest, getSession, setRefreshData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmluts

protected XmlUtilities xmluts

container

protected BaseTakenUp container

id

protected java.lang.String id

rows

protected java.lang.String rows

cols

protected java.lang.String cols

attributes

protected java.util.HashMap attributes

selectLists

protected java.util.HashMap selectLists

renders

protected java.util.HashMap renders

haveColor

protected java.util.HashMap haveColor

inputRend

protected java.util.HashMap inputRend

attributeStyleList

protected java.util.ArrayList attributeStyleList

uiTree

protected UITree uiTree

selectValue

protected java.lang.String selectValue

selectedTableId

protected java.lang.String selectedTableId
Constructor Detail

CommonViewAction

public CommonViewAction()
Base constructor

Method Detail

returnContainer

public BaseTakenUp returnContainer(java.lang.String id,
                                   BaseTakenUp cont)
returnContainer returns container by given data

Parameters:
id - String the id of element to return
cont - BaseTakenUp the container to find element
Returns:
BaseTakenUp the element found

findContainerBaseElement

public BaseElement findContainerBaseElement(java.lang.String id,
                                            BaseTakenUp cont)
findContainerBaseElement is looking for base elements

Parameters:
id - String the id of element to find
cont - BaseTakenUp the container where to look
Returns:
BaseElement the found element

findContainerObject

public java.lang.Object findContainerObject(java.lang.String id,
                                            BaseTakenUp cont)
findContainerObject looking for object by given data

Parameters:
id - String the id of element to find
cont - BaseTakenUp the container where to look
Returns:
Object the found object

getIdContainer

public java.lang.String getIdContainer()
getIdContainer reorganizes the current id to container id

Returns:
String the container id

generateTable

public BaseTakenUp generateTable(java.lang.String table,
                                 java.lang.String tr,
                                 java.lang.String td)
generateTable generates table with given number of rows and columns

Parameters:
table - String the table name
tr - String the tr name
td - String the td name
Returns:
BaseTakenUp resulting table

setCommonAttributeStyle

public void setCommonAttributeStyle(java.lang.String actName,
                                    ActionEvent ae,
                                    java.lang.String id,
                                    java.lang.String template)
setCommonAttributeStyle sets attributes and their values

Parameters:
actName - String the action name
ae - ActionEvent action event
id - String the element id
template - String the template name

organizeAttributes

public void organizeAttributes(java.lang.String elementName)
organizeAttributes organizes attributes for given element

Parameters:
elementName - String the element name

setPageData

public void setPageData(java.lang.String elementName,
                        java.lang.String elementId)
setPageData sets all element data on page

Parameters:
elementName - String the element name
elementId - String the element id

listenSelectProps

public void listenSelectProps(ValueChangeEvent vce)
listenSelectProps listens select properties

Parameters:
vce - ValueChangeEvent event generated by value changing

properties

public java.lang.String properties()
properties method for tree expanding

Returns:
String for property tree forward

pasteImage

public void pasteImage(java.util.HashMap attributes,
                       UploadedFile image)
pasteImage pastes image into container

Specified by:
pasteImage in interface SimpleElements
Parameters:
attributes - HashMap with image attributes
image - UploadedFile image file

pasteLink

public void pasteLink(java.util.HashMap attributes,
                      UploadedFile image)
pasteLink pastes link into container

Specified by:
pasteLink in interface SimpleElements
Parameters:
attributes - HashMap link attributes
image - UploadedFile link image if exists

pasteTextField

public void pasteTextField(java.util.HashMap attributes)
pasteTextField pastes textfield into container

Specified by:
pasteTextField in interface SimpleElements
Parameters:
attributes - HashMap textfield attributes

pasteTextArea

public void pasteTextArea(java.util.HashMap attributes)
pasteTextArea pastes textarea into container

Specified by:
pasteTextArea in interface SimpleElements
Parameters:
attributes - HashMap textarea attributes

getHaveColor

public java.util.HashMap getHaveColor()
standard getter

Returns:
Returns the haveColor.

setHaveColor

public void setHaveColor(java.util.HashMap haveColor)
standard setter

Parameters:
haveColor - to set

getContainer

public BaseTakenUp getContainer()
standard getter

Returns:
Returns the container.

setContainer

public void setContainer(BaseTakenUp container)
standard setter

Parameters:
container - The container to set.

getId

public java.lang.String getId()
standard getter

Returns:
Returns the id.

setId

public void setId(java.lang.String id)
standard setter

Parameters:
id - The id to set.

getRows

public java.lang.String getRows()
standard getter

Returns:
Returns the rows.

setRows

public void setRows(java.lang.String rows)
standard setter

Parameters:
rows - The rows to set.

getAttributes

public java.util.HashMap getAttributes()
standard getter

Returns:
Returns the attributes.

setAttributes

public void setAttributes(java.util.HashMap attributes)
standard setter

Parameters:
attributes - The attributes to set.

getCols

public java.lang.String getCols()
standard getter

Returns:
Returns the cols.

setCols

public void setCols(java.lang.String cols)
standard setter

Parameters:
cols - The cols to set.

getAttributeStyleList

public java.util.ArrayList getAttributeStyleList()
standard getter

Returns:
Returns the attributeStyleList.

setAttributeStyleList

public void setAttributeStyleList(java.util.ArrayList attributeStyleList)
standard setter

Parameters:
attributeStyleList - The attributeStyleList to set.

getRenders

public java.util.HashMap getRenders()
standard getter

Returns:
Returns the renders.

setRenders

public void setRenders(java.util.HashMap renders)
standard setter

Parameters:
renders - The renders to set.

getSelectLists

public java.util.HashMap getSelectLists()
standard getter

Returns:
Returns the selectLists.

setSelectLists

public void setSelectLists(java.util.HashMap selectLists)
standard setter

Parameters:
selectLists - The selectLists to set.

getUiTree

public UITree getUiTree()
standard getter

Returns:
Returns the uiTree.

setUiTree

public void setUiTree(UITree uiTree)
standard setter

Parameters:
uiTree - The uiTree to set.

getSelectValue

public java.lang.String getSelectValue()
getSelectValue standard getter

Returns:
String the value selected

setSelectValue

public void setSelectValue(java.lang.String selectValue)
setSelectValue standard setter

Parameters:
selectValue - String

getInputRend

public java.util.HashMap getInputRend()
getInputRend standard getter

Returns:
HashMap of rendered inputs

setInputRend

public void setInputRend(java.util.HashMap inputRend)
setInputRend standard setter

Parameters:
inputRend - HashMap of rendered inputs

getSelectedTableId

public java.lang.String getSelectedTableId()
getSelectedTableId standard getter

Returns:
String of selected table id

setSelectedTableId

public void setSelectedTableId(java.lang.String selectedTableId)
setSelectedTableId standard setter

Parameters:
selectedTableId - String selected table id


Copyright © 2005 BelSoft Inc. All Rights Reserved.