| java.lang.Object jimm.datavision.layout.swing.SwingPageContents
SwingPageContents | class SwingPageContents (Code) | | Holds report page contents and creates
SwingPage instances
when requested.
author: Jim Menard, jimm@io.com See Also: SwingLE See Also: SwingPageField |
Method Summary | |
void | add(Field f, String v, java.awt.Rectangle r) Adds a new field, its display value, and its position on the page. | void | buildPage() Builds the swing page and adds it to the parent. | 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. | SwingPage | getPage() Returns the swing page. | boolean | isPageBuilt() Returns true if the swing page has been built. | void | prebuildPage() Builds the swing page and adds it to the parent, all in a separate
thread. | void | showPage() Displays the swing page, building it first if necessary. |
pageNumber | int pageNumber(Code) | | |
SwingPageContents | SwingPageContents(JPanel parent, int pageNumber, Dimension dim)(Code) | | Constructor.
Parameters: parent - the panel in which this page will be displayed; itslayout must be a CardLayout Parameters: pageNumber - the page number, starting at 1 Parameters: dim - the page dimensions |
add | void add(Field f, String v, java.awt.Rectangle r)(Code) | | Adds a new field, its display value, and its position on the page.
Parameters: f - a report field Parameters: v - the field's display value (retrieved from the database orotherwise calculated) Parameters: r - the display position and size |
buildPage | void buildPage()(Code) | | Builds the swing page and adds it to the parent.
|
forgetPage | void forgetPage()(Code) | | Forgets the page we have built, removes it from its parent, and restores
the field information so we can build the page later.
|
getPage | SwingPage getPage()(Code) | | Returns the swing page. If the page is being built, wait for the page
building to complete before returning the page. If page construction
has not started, build the page and return it.
a SwingPage |
isPageBuilt | boolean isPageBuilt()(Code) | | Returns true if the swing page has been built.
|
prebuildPage | void prebuildPage()(Code) | | Builds the swing page and adds it to the parent, all in a separate
thread. Calls
SwingPageContents.buildPage .
This isn't entirely thread safe, but it's close enough for our purposes.
|
showPage | void showPage()(Code) | | Displays the swing page, building it first if necessary.
|
|
|