|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jimm.datavision.SectionArea
public class SectionArea
Field Summary | |
---|---|
(package private) int |
area
One of the REPORT_* constants. |
protected static java.lang.String[] |
AREA_NAME_KEYS
These are I18N lookup keys for REPORT_* constants. |
static int |
DETAIL
|
static int |
GROUP_FOOTER
|
static int |
GROUP_HEADER
|
static int |
PAGE_FOOTER
|
static int |
PAGE_HEADER
|
static int |
REPORT_FOOTER
|
static int |
REPORT_HEADER
|
(package private) java.util.List |
sections
|
Constructor Summary | |
---|---|
SectionArea(int area)
Constructor. |
Method Summary | |
---|---|
void |
add(int index,
Section s)
Adds a section to our list and sets its name and other area-related information. |
void |
add(Section s)
Adds a section to our list and sets its name and other area-related information. |
void |
clear()
|
boolean |
contains(Section s)
Returns true if s is one of our sections. |
Section |
first()
|
Section |
get(int index)
|
int |
getArea()
|
java.lang.String |
getName()
Returns the name of this area. |
protected void |
imprint(Section section)
Modifies section so it knows that it's part of this area. |
int |
indexOf(Section s)
|
Section |
insertAfter(Section section,
Section afterThis)
Adds a (possibly created) section after afterThis and returns the section. |
boolean |
isDetail()
Returns true if this is a report detail section. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
static java.lang.String |
nameFromArea(int area)
Given the REPORT_* constant area,
returns the section area name. |
void |
remove(Section s)
Removes a section. |
java.util.List |
sections()
Returns an unmodifiable version of our list of sections. |
int |
size()
|
void |
withSectionsDo(SectionWalker s)
|
void |
writeXML(XMLWriter out)
Writes this object as an XML tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REPORT_HEADER
public static final int REPORT_FOOTER
public static final int PAGE_HEADER
public static final int PAGE_FOOTER
public static final int DETAIL
public static final int GROUP_HEADER
public static final int GROUP_FOOTER
protected static final java.lang.String[] AREA_NAME_KEYS
REPORT_*
constants.
The order of these keys must match the values of those constants.
java.util.List sections
int area
REPORT_*
constants.
Constructor Detail |
---|
public SectionArea(int area)
area
- a REPORT_*
constantMethod Detail |
---|
public static java.lang.String nameFromArea(int area)
REPORT_*
constant area,
returns the section area name.
area
- a REPORT_*
constantpublic int getArea()
public int indexOf(Section s)
public Section get(int index)
public Section first()
public void add(Section s)
s
- a sectionpublic void add(int index, Section s)
s
- a sectionpublic Section insertAfter(Section section, Section afterThis)
null
,
a new section will be created.
section
- the section to insert; if null
, a new
section will be createdafterThis
- the new section will be inserted after this oneprotected void imprint(Section section)
section
- a sectionpublic boolean isDetail()
true
if this is a report detail section.
true
if this is a report detail sectionpublic void remove(Section s)
s
- a report sectionpublic boolean contains(Section s)
true
if s is one of our sections.
s
- a section
true
if s is one of our sectionspublic java.lang.String getName()
public java.util.List sections()
public java.util.Iterator iterator()
public int size()
public boolean isEmpty()
public void clear()
public void withSectionsDo(SectionWalker s)
public void writeXML(XMLWriter out)
Writeable
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 |