by.belsoft.report.tools.actions
Class ViewAction

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

public class ViewAction
extends CommonViewAction

The class to work with view page

Author:
Ilya Kirillov

Field Summary
 
Fields inherited from class by.belsoft.report.tools.actions.CommonViewAction
attributes, attributeStyleList, cols, container, haveColor, id, inputRend, renders, rows, selectedTableId, selectLists, selectValue, uiTree, xmluts
 
Constructor Summary
ViewAction()
          The base constructor
 
Method Summary
 void applyTemplate(ActionEvent ae)
          applyTemplate method to apply template
 void delete(ActionEvent ae)
          delete deletes element with current id
 void deleteElement(java.lang.String id, BaseTakenUp cont)
          deleteElement deletes element from given container
 void draw(FacesContext context)
          draw draws the workspace
 BaseTakenUp findTable(java.util.ArrayList tabls, java.lang.String id)
          findTable finds table by id
 BaseTakenUp getAndDeleteInContainerByBaseElement(java.lang.String id, BaseTakenUp cont)
          getAndDeleteInContainerByBaseElement gets and deletes element by id
 java.lang.String getElements()
          standard getter
 java.util.ArrayList getTables()
          standard getter
 java.util.ArrayList getTablesUI()
          standard getter
 java.lang.String getTemplate()
          getTemplate standard getter
 java.util.ArrayList getTemplates()
          getTemplates standard getter
 DefaultTreeModel getTree()
          getTree gets element tree
 java.lang.String getUrl()
          getUrl standard getter
 boolean isFullScreen()
          method to check if fool screen
 void listenTemplateName(ValueChangeEvent vce)
          listenTemplateName listens template name to make url
 DefaultMutableTreeNode makeXMLTreeDynamicElementsFromObject(DefaultMutableTreeNode to, java.util.ArrayList what)
          makeXMLTreeDynamicElementsFromObject makes page tree from list of objects
 DefaultMutableTreeNode makeXMLTreeStaticElementsFromObject(DefaultMutableTreeNode to, java.util.ArrayList what)
          makeXMLTreeStaticElementsFromObject makes static elements tree
 void newTable(ActionEvent ae)
          newTable makes new table
 void pasteTable(ActionEvent ae)
          pasteTable pastes table into container
 void preview(ActionEvent ae)
          preview makes preview action
 void save(ActionEvent ae)
          save saves all view structure
 void saveContainer(ActionEvent ae)
          saveContainer saves container
 void setAttributeStyle(ActionEvent ae)
          setAttributeStyle sets attributes for current element
 void setAvalibleTables(ActionEvent ae)
          setAvalibleTables sets avalible tables into popup
 void setChartQueries(ActionEvent ae)
          setChartQueries sets tables to chart popup
 void setElements(java.lang.String elements)
          standard setter
 void setFullScreen(boolean fullScreen)
          standard setter
 void setId(ActionEvent ae)
          setId sets element id
 void setTableextToTable(ActionEvent ae)
          setTableextToTable pastes table element into container
 void setTables(java.util.ArrayList tables)
          standard setter
 void setTablesUI(java.util.ArrayList tablesUI)
          standard setter
 void setTemplate(java.lang.String template)
          setTemplate standard setter
 void setTemplates(java.util.ArrayList templates)
          setTemplates standard setter
 void setupView(ValueChangeEvent vce)
          setupView sets view mode
 void setUrl(java.lang.String url)
          setUrl standard setter
 void viewTemplates(ActionEvent ae)
          viewTemplates method to view templates
 
Methods inherited from class by.belsoft.report.tools.actions.CommonViewAction
findContainerBaseElement, findContainerObject, generateTable, getAttributes, getAttributeStyleList, getCols, getContainer, getHaveColor, getId, getIdContainer, getInputRend, getRenders, getRows, getSelectedTableId, getSelectLists, getSelectValue, getUiTree, listenSelectProps, organizeAttributes, pasteImage, pasteLink, pasteTextArea, pasteTextField, properties, returnContainer, setAttributes, setAttributeStyleList, setCols, setCommonAttributeStyle, setContainer, setHaveColor, setId, setInputRend, setPageData, setRenders, setRows, setSelectedTableId, setSelectLists, setSelectValue, setUiTree
 
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
 

Constructor Detail

ViewAction

public ViewAction()
The base constructor

Method Detail

getAndDeleteInContainerByBaseElement

public BaseTakenUp getAndDeleteInContainerByBaseElement(java.lang.String id,
                                                        BaseTakenUp cont)
getAndDeleteInContainerByBaseElement gets and deletes element by id

Parameters:
id - String the element id
cont - BaseTakenUp the continer where to look
Returns:
BaseTakenUp the element found

getTree

public DefaultTreeModel getTree()
getTree gets element tree

Returns:
DefaultTreeModel the page element tree

setupView

public void setupView(ValueChangeEvent vce)
setupView sets view mode

Parameters:
vce - ValueChangeEvent event invoked by value changing

draw

public void draw(FacesContext context)
draw draws the workspace

Parameters:
context - FacesContext the faces context

makeXMLTreeDynamicElementsFromObject

public DefaultMutableTreeNode makeXMLTreeDynamicElementsFromObject(DefaultMutableTreeNode to,
                                                                   java.util.ArrayList what)
makeXMLTreeDynamicElementsFromObject makes page tree from list of objects

Parameters:
to - DefaultMutableTreeNode where to put data
what - ArrayList where to get data
Returns:
DefaultMutableTreeNode the result tree

makeXMLTreeStaticElementsFromObject

public DefaultMutableTreeNode makeXMLTreeStaticElementsFromObject(DefaultMutableTreeNode to,
                                                                  java.util.ArrayList what)
makeXMLTreeStaticElementsFromObject makes static elements tree

Parameters:
to - DefaultMutableTreeNode where to put data
what - ArrayList where to get data
Returns:
DefaultMutableTreeNode the result tree

saveContainer

public void saveContainer(ActionEvent ae)
saveContainer saves container

Parameters:
ae - ActionEvent event invoked

viewTemplates

public void viewTemplates(ActionEvent ae)
viewTemplates method to view templates

Parameters:
ae - ActionEvent event invoked

applyTemplate

public void applyTemplate(ActionEvent ae)
applyTemplate method to apply template

Parameters:
ae - ActionEvent event invoked

listenTemplateName

public void listenTemplateName(ValueChangeEvent vce)
listenTemplateName listens template name to make url

Parameters:
vce - ValueChangeEvent event invoked by value changing

setId

public void setId(ActionEvent ae)
setId sets element id

Overrides:
setId in class CommonViewAction
Parameters:
ae - ActionEvent event invoked

setTableextToTable

public void setTableextToTable(ActionEvent ae)
setTableextToTable pastes table element into container

Parameters:
ae - ActionEvent event invoked

findTable

public BaseTakenUp findTable(java.util.ArrayList tabls,
                             java.lang.String id)
findTable finds table by id

Parameters:
tabls - ArrayList of tables to look in
id - String the element id
Returns:
BaseTakenUp the found element

save

public void save(ActionEvent ae)
save saves all view structure

Parameters:
ae - ActionEvent event invoked

newTable

public void newTable(ActionEvent ae)
newTable makes new table

Parameters:
ae - ActionEvent

pasteTable

public void pasteTable(ActionEvent ae)
pasteTable pastes table into container

Parameters:
ae - ActionEvent event invoked

setAvalibleTables

public void setAvalibleTables(ActionEvent ae)
setAvalibleTables sets avalible tables into popup

Parameters:
ae - ActionEvent event invoked

setChartQueries

public void setChartQueries(ActionEvent ae)
setChartQueries sets tables to chart popup

Parameters:
ae - ActionEvent event invoked

setAttributeStyle

public void setAttributeStyle(ActionEvent ae)
setAttributeStyle sets attributes for current element

Parameters:
ae - ActionEvent event invoked

delete

public void delete(ActionEvent ae)
delete deletes element with current id

Parameters:
ae - ActionEvent event invoked

deleteElement

public void deleteElement(java.lang.String id,
                          BaseTakenUp cont)
deleteElement deletes element from given container

Parameters:
id - String the element id
cont - BaseTakenUp the container

preview

public void preview(ActionEvent ae)
preview makes preview action

Parameters:
ae - ActionEvent event invoked

getTables

public java.util.ArrayList getTables()
standard getter

Returns:
Returns the tables.

setTables

public void setTables(java.util.ArrayList tables)
standard setter

Parameters:
tables - The tables to set.

getElements

public java.lang.String getElements()
standard getter

Returns:
Returns the elements.

setElements

public void setElements(java.lang.String elements)
standard setter

Parameters:
elements - The elements to set.

isFullScreen

public boolean isFullScreen()
method to check if fool screen

Returns:
Returns the fullScreen.

setFullScreen

public void setFullScreen(boolean fullScreen)
standard setter

Parameters:
fullScreen - The fullScreen to set.

getTablesUI

public java.util.ArrayList getTablesUI()
standard getter

Returns:
Returns the tablesUI.

setTablesUI

public void setTablesUI(java.util.ArrayList tablesUI)
standard setter

Parameters:
tablesUI - The tablesUI to set.

getTemplates

public java.util.ArrayList getTemplates()
getTemplates standard getter

Returns:
ArrayList of the templates

setTemplates

public void setTemplates(java.util.ArrayList templates)
setTemplates standard setter

Parameters:
templates - ArrayList of the templates

getTemplate

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

Returns:
String with template name

setTemplate

public void setTemplate(java.lang.String template)
setTemplate standard setter

Parameters:
template - String with name

getUrl

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

Returns:
String with the url

setUrl

public void setUrl(java.lang.String url)
setUrl standard setter

Parameters:
url - String with the url


Copyright © 2005 BelSoft Inc. All Rights Reserved.