|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjimm.datavision.layout.swing.SwingPageContents
class SwingPageContents
Holds report page contents and creates SwingPage instances
when requested.
SwingLE,
SwingPageField| Field Summary | |
|---|---|
(package private) java.lang.Thread |
buildThread
|
(package private) SwingPage |
page
|
(package private) java.awt.Dimension |
pageDim
|
(package private) java.util.ArrayList |
pageFields
|
(package private) int |
pageNumber
|
(package private) javax.swing.JPanel |
parent
|
| Constructor Summary | |
|---|---|
SwingPageContents(javax.swing.JPanel parent,
int pageNumber,
java.awt.Dimension dim)
Constructor. |
|
| Method Summary | |
|---|---|
(package private) void |
add(Field f,
java.lang.String v,
java.awt.Rectangle r)
Adds a new field, its display value, and its position on the page. |
(package private) void |
buildPage()
Builds the swing page and adds it to the parent. |
(package private) void |
forgetPage()
Forgets the page we have built, removes it from its parent, and restores the field information so we can build the page later. |
(package private) SwingPage |
getPage()
Returns the swing page. |
(package private) boolean |
isPageBuilt()
Returns true if the swing page has been built. |
(package private) void |
prebuildPage()
Builds the swing page and adds it to the parent, all in a separate thread. |
(package private) void |
showPage()
Displays the swing page, building it first if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.ArrayList pageFields
SwingPage page
int pageNumber
javax.swing.JPanel parent
java.awt.Dimension pageDim
java.lang.Thread buildThread
| Constructor Detail |
|---|
SwingPageContents(javax.swing.JPanel parent,
int pageNumber,
java.awt.Dimension dim)
parent - the panel in which this page will be displayed; its
layout must be a CardLayoutpageNumber - the page number, starting at 1dim - the page dimensions| Method Detail |
|---|
void add(Field f,
java.lang.String v,
java.awt.Rectangle r)
f - a report fieldv - the field's display value (retrieved from the database or
otherwise calculated)r - the display position and sizeboolean isPageBuilt()
true if the swing page has been built.
SwingPage getPage()
SwingPagevoid showPage()
void prebuildPage()
buildPage().
This isn't entirely thread safe, but it's close enough for our purposes.
void buildPage()
void forgetPage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||