public interface PDFPanel
PDFViewerBean
.Modifier and Type | Field and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
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.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
false
void 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
documentIllegalArgumentException
- 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)