|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PDFPanel
The panel interface for customizing the panels available in
PDFViewerBean.
| Field Summary | |
|---|---|
static int |
ALWAYS_ACTIVE
Always make the PDFPanel active when loading or modifying a
document. |
static int |
DEFAULT_POLICY
Use the default policy when loading or modifying a document to determine if a PDFPanel should be active. |
static int |
NEVER_ACTIVE
Never make the PDFPanel active when loading or modifying a
document. |
| Method Summary | |
|---|---|
int |
getActivePolicy()
Returns the policy for the PDFPanel to use when a document
is loaded into the PDFViewerBean, or when a document is modified. |
PanelToolbar |
getToolbar()
Returns a this panel's toolbar. |
boolean |
isActive()
Returns the active state of the panel. |
boolean |
isPaneSelected()
Returns true if this panel is currently selected; otherwise,
false. |
void |
setActive(boolean active)
Set the active state for this panel depending on the value of the parameter. |
void |
setActivePolicy(int policy)
Sets the policy for the PDFPanel to use when a document is
loaded into the PDFViewerBean, or when a document is modified. |
void |
setPaneVisible(boolean visible)
Show or hide the this pane depending on the value of the parameter. |
| Field Detail |
|---|
static final int DEFAULT_POLICY
PDFPanel should be active.
static final int ALWAYS_ACTIVE
PDFPanel active when loading or modifying a
document.
static final int NEVER_ACTIVE
PDFPanel active when loading or modifying a
document.
| Method Detail |
|---|
PanelToolbar getToolbar()
void setActive(boolean active)
false, the panel's corresponding button on
the split pane will not be visible. If this panel is currently showing,
the split pane will be closed and the corresponding button will be
hidden.
When true, the button will be made visible, but the button
may not be showing if the split pane is not visible.
active - the active statePDFViewerBean.setSplitVisible(boolean),
PDFViewerBean.setSplitPolicy(int),
PDFViewerBean.setSplitOpen(boolean)boolean isActive()
setActive(boolean)void setPaneVisible(boolean visible)
visible - if true the pane will be shown; otherwise, the
split pane will be closedboolean isPaneSelected()
true if this panel is currently selected; otherwise,
false.
true if this panel is currently selected; otherwise
falsevoid setActivePolicy(int policy)
PDFPanel to use when a document is
loaded into the PDFViewerBean, or when a document is modified.
DEFAULT_POLICY: Use the document content to determine
which panels should be active.
ALWAYS_ACTIVE: Always make the panel active irrespective
of the document content.
NEVER_ACTIVE: Never make the panel active irrespective
of the document content.
The value is set to DEFAULT_POLICY by default.
policy - the policy which should be used when loading or modifying a
document
IllegalArgumentException - if policy value isn't one of the above valid valuesint getActivePolicy()
PDFPanel to use when a document
is loaded into the PDFViewerBean, or when a document is modified.
setActivePolicy(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||