| 
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jidesoft.dialog.AbstractPage
public abstract class AbstractPage
AbstractPage is an abstract base class that provides functionality to defer populating a JPanel object until it is actually viewed. This is very useful when using CardLayout and tab panel views which have several pages. Delaying the construction means it will start up fast. Sometimes delay means never.
If subclasses choose to override any of the following methods, it is their responsibility to ensure their overridden methods call the parent's method first. The methods are:PageEvent 
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel | 
|---|
JPanel.AccessibleJPanel | 
| Nested classes/interfaces inherited from class javax.swing.JComponent | 
|---|
JComponent.AccessibleJComponent | 
| Nested classes/interfaces inherited from class java.awt.Container | 
|---|
Container.AccessibleAWTContainer | 
| Nested classes/interfaces inherited from class java.awt.Component | 
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy | 
| Field Summary | |
|---|---|
protected  PageEvent | 
_pageEvent
Only one DataChangeEvent is needed per model instance since the event's only (read-only) state is
 the source property. | 
static int | 
INVOKE_ON_ALL
Used by setInvokeCondition().  | 
static int | 
INVOKE_ON_NONE
Used by setInvokeCondition().  | 
static int | 
INVOKE_ON_PAINT
Used by setInvokeCondition().  | 
static int | 
INVOKE_ON_REPAINT
Used by setInvokeCondition().  | 
static int | 
INVOKE_ON_UPDATE
Used by setInvokeCondition().  | 
static int | 
INVOKE_ON_VALIDATE
Used by setInvokeCondition().  | 
| Fields inherited from class javax.swing.JComponent | 
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW | 
| Fields inherited from class java.awt.Component | 
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface java.awt.image.ImageObserver | 
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
|---|---|
protected  | 
AbstractPage()
Creates an AbstractPage.  | 
| Method Summary | |
|---|---|
 void | 
addPageListener(PageListener l)
Adds a PageListener to the page. | 
 boolean | 
allowClosing()
Allow this document closing.  | 
 void | 
firePageEvent(int id)
Runs each PageListener's pageEventFired method. | 
 void | 
firePageEvent(Object source,
              int id)
Runs each PageListener's pageEventFired method. | 
 int | 
getInvokeCondition()
Gets the invoke condition.  | 
 PageListener[] | 
getPageListeners()
Returns an array of all the PageListeners added to this Page with
 addPageListener . | 
 void | 
initialize()
Force the lazyInitialize() method implemented in the child class to be called.  | 
 void | 
invalidate()
 | 
 void | 
paint(Graphics g)
 | 
 void | 
paintAll(Graphics g)
 | 
 void | 
paintComponents(Graphics g)
 | 
 void | 
removePageListener(PageListener l)
Removes a PageListener from the page. | 
 void | 
repaint()
 | 
 void | 
repaint(int i1,
        int i2,
        int i3,
        int i4)
 | 
 void | 
repaint(long l)
 | 
 void | 
repaint(long l,
        int i1,
        int i2,
        int i3,
        int i4)
 | 
 void | 
reset()
Resets the page which will result all child components being removed and the method initialize() being
 invoked again. | 
 void | 
revalidate()
 | 
 void | 
setAllowClosing(boolean allowClosing)
Sets allow closing.  | 
 void | 
setInvokeCondition(int invokeCondition)
Sets the invoke condition.  | 
 void | 
update(Graphics g)
 | 
| Methods inherited from class javax.swing.JPanel | 
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface com.jidesoft.dialog.Laziness | 
|---|
lazyInitialize | 
| Field Detail | 
|---|
public static int INVOKE_ON_ALL
public static int INVOKE_ON_NONE
public static int INVOKE_ON_PAINT
public static int INVOKE_ON_REPAINT
public static int INVOKE_ON_UPDATE
public static int INVOKE_ON_VALIDATE
protected transient PageEvent _pageEvent
DataChangeEvent is needed per model instance since the event's only (read-only) state is
 the source property. The source of events generated here is always "this".
| Constructor Detail | 
|---|
protected AbstractPage()
| Method Detail | 
|---|
public int getInvokeCondition()
public void setInvokeCondition(int invokeCondition)
invokeCondition - the invoke condition.public void invalidate()
invalidate in class Containerpublic void revalidate()
revalidate in class JComponentpublic void paint(Graphics g)
paint in class JComponentpublic void paintAll(Graphics g)
paintAll in class Componentpublic void paintComponents(Graphics g)
paintComponents in class Containerpublic void repaint()
repaint in class Componentpublic void repaint(long l)
repaint in class Component
public void repaint(int i1,
                    int i2,
                    int i3,
                    int i4)
repaint in class Component
public void repaint(long l,
                    int i1,
                    int i2,
                    int i3,
                    int i4)
repaint in class JComponentpublic void update(Graphics g)
update in class JComponentpublic final void initialize()
public void reset()
initialize() being
 invoked again.
public void addPageListener(PageListener l)
PageListener to the page.
l - the PageListener to be addedpublic void removePageListener(PageListener l)
PageListener from the page.
l - the PageListener to be removedpublic PageListener[] getPageListeners()
PageListeners added to this Page with
 addPageListener .
PageListeners added, or an empty array if no listeners have been addedpublic void firePageEvent(int id)
PageListener's pageEventFired method.
id - event id.
public void firePageEvent(Object source,
                          int id)
PageListener's pageEventFired method.
source - of this eventid - event id.public void setAllowClosing(boolean allowClosing)
allowClosing - true or false.public boolean allowClosing()
  | 
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||