|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable jimm.datavision.Element
public abstract class Element
Element
is the abstract superclass of Field
and Line
. These are the visual elements of a report section.
Field Summary | |
---|---|
protected Report |
report
|
protected Section |
section
|
protected boolean |
visible
|
Constructor Summary | |
---|---|
Element(Report report,
Section section,
boolean visible)
Constructor. |
Method Summary | |
---|---|
Report |
getReport()
Returns the report that containts this field. |
Section |
getSection()
Returns the section that containts this field. |
boolean |
isVisible()
Returns the visible state of this element. |
void |
setSection(Section s)
Modifies the section to which this field belongs. |
void |
setVisible(boolean newVisible)
Sets the visibility of this element. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
abstract void |
writeXML(XMLWriter out)
Writes this element as an XML tag. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Report report
protected Section section
protected boolean visible
Constructor Detail |
---|
public Element(Report report, Section section, boolean visible)
null
section and then add them to
some section later on).
report
- the report containing this elementsection
- the report section containing this elementMethod Detail |
---|
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public Section getSection()
public Report getReport()
public void setSection(Section s)
s
- the sectionpublic boolean isVisible()
public void setVisible(boolean newVisible)
newVisible
- the new visible statepublic abstract void writeXML(XMLWriter out)
Field
and Line
subclasses.
writeXML
in interface Writeable
out
- a writer that knows how to write XML
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |