by.belsoft.report.tools.view
Class BaseElement

java.lang.Object
  |
  +--by.belsoft.report.tools.view.BaseElement
All Implemented Interfaces:
ViewElement
Direct Known Subclasses:
BaseTakenUp

public class BaseElement
extends java.lang.Object
implements ViewElement

The class to work with static elements

Author:
Ilya Kirillov

Field Summary
 java.util.HashMap attributes
           
 java.util.ArrayList childElements
           
 java.lang.String elementName
           
 java.lang.String id
           
 java.lang.String innerText
           
static java.lang.String MARKED_TABLE_COLOR
           
 
Constructor Summary
BaseElement()
          The base constructor
BaseElement(java.lang.String name)
          BaseElement constructor
 
Method Summary
 void addAttributes(org.w3c.dom.Element element)
          addAttributes adds element attributes
 void draw(FacesContext context, java.lang.String selectedId, boolean isDetailView)
          draw draws base element
 java.util.HashMap getAttributes()
          Standard getter
 java.util.ArrayList getChildElements()
          Standard getter
 java.lang.String getElementName()
          Standard getter
 java.lang.String getId()
          Standard getter
 java.lang.String getInnerText()
          Standard getter
 void makeImage()
          makeImage makes image
 void setAttributes(java.util.HashMap attributes)
          Standard setter
 void setChildElements(java.util.ArrayList childElements)
          Standard setter
 void setElementName(java.lang.String elementName)
          Standard setter
 void setId(java.lang.String id)
          Standard setter
 void setInnerText(java.lang.String innerText)
          Standard setter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.String id

attributes

public java.util.HashMap attributes

elementName

public java.lang.String elementName

innerText

public java.lang.String innerText

childElements

public java.util.ArrayList childElements

MARKED_TABLE_COLOR

public static final java.lang.String MARKED_TABLE_COLOR
See Also:
Constant Field Values
Constructor Detail

BaseElement

public BaseElement()
The base constructor


BaseElement

public BaseElement(java.lang.String name)
BaseElement constructor

Parameters:
name - String the element name
Method Detail

draw

public void draw(FacesContext context,
                 java.lang.String selectedId,
                 boolean isDetailView)
draw draws base element

Parameters:
context - FacesContext the faces context
selectedId - String the selected element id
isDetailView - boolean the state of view

makeImage

public void makeImage()
makeImage makes image


getAttributes

public java.util.HashMap getAttributes()
Standard getter

Specified by:
getAttributes in interface ViewElement
Returns:
Returns the attributes.

setAttributes

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

Parameters:
attributes - The attributes to set.

addAttributes

public void addAttributes(org.w3c.dom.Element element)
addAttributes adds element attributes

Parameters:
element - Element the element to add attributes

getElementName

public java.lang.String getElementName()
Standard getter

Specified by:
getElementName in interface ViewElement
Returns:
Returns the elementName.

setElementName

public void setElementName(java.lang.String elementName)
Standard setter

Parameters:
elementName - The elementName to set.

getInnerText

public java.lang.String getInnerText()
Standard getter

Specified by:
getInnerText in interface ViewElement
Returns:
Returns the innerText.

setInnerText

public void setInnerText(java.lang.String innerText)
Standard setter

Parameters:
innerText - The innerText to set.

getChildElements

public java.util.ArrayList getChildElements()
Standard getter

Returns:
Returns the childElements.

setChildElements

public void setChildElements(java.util.ArrayList childElements)
Standard setter

Parameters:
childElements - The childElements to set.

getId

public java.lang.String getId()
Standard getter

Specified by:
getId in interface ViewElement
Returns:
Returns the id.

setId

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

Parameters:
id - The id to set.


Copyright © 2005 BelSoft Inc. All Rights Reserved.