|
Style Intelligence v12.0 | ||||||||
| 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
inetsoft.sree.viewer.ViewPreviewPane
public abstract class ViewPreviewPane
ViewPreviewPane is a panel to browse one previewed report.
| Nested Class Summary | |
|---|---|
class |
ViewPreviewPane.ViewPane
|
| 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 |
|---|
| 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 inetsoft.report.PreviewView |
|---|
CLOSE_BUTTON, FULL_SCREEN_BUTTON, N_PAGE_BUTTON, ONE_PAGE_BUTTON, PRINT_BUTTON, ZOOM_BUTTON |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ViewPreviewPane(RepletRepository engine)
Create an empty previewer. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Triggered when event handler mask is changed. |
void |
addDisposeListener(ActionListener listener)
Add dispose listener. |
void |
addSelectionListener(SelectionListener l)
Add a selection listener. |
void |
addToolbarComponent(Component comp)
Add a component to the toolbar. |
void |
customize()
Bring up the customizer for this report. |
void |
dispose()
Close this window and inform the repository. |
protected void |
distroyEngine()
|
protected abstract void |
enqueue(ViewPreviewPane.ViewPane pane,
int pn)
Add a page retrieval request to the queue. |
protected abstract void |
enqueueNow(ViewPreviewPane.ViewPane pane,
int pn)
Add a page retrieval request to the queue. |
void |
find(SearchCondition cond)
Perform a search on the search condition. |
void |
findNext(SearchCondition cond)
Find the next occurence of the search condition. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Expose the call. |
int |
getCurrentPage()
Get the current page index. |
int |
getOrientation()
Returns the orientation of this PageFormat. |
int |
getPageCount()
Get the total number of pages. |
double |
getPageHeight()
Get the page height in inches. |
int |
getPageResolution()
Get the page resolution. |
double |
getPageWidth()
Get the page width in inches. |
protected abstract PreviewView |
getParentView()
Get the parent preview view, for example ViewFrame or itself; |
Object |
getRepletID()
Get the replet ID of the current report. |
ReportSheet |
getReport()
Get the style sheet object in this pane. |
Enumeration |
getStylePages()
Get all pages of the current report. |
Enumeration |
getStylePages(int[] printPages)
Get indicated pages of the current report. |
protected Component |
getToolbar()
Get the toolbar. |
double |
getZoom()
Get the zoom percentage. |
void |
gotoPage()
Prompt for a page number to go to. |
protected void |
handleRepletEvent(EventObject e)
Handle the viewer events. |
boolean |
isCustomizable()
Check if this report has a customizer. |
abstract boolean |
isVisible()
Check if the parent pane is visible. |
void |
itemStateChanged(ItemEvent e)
Zoom item changed. |
void |
pack()
Causes this Window to be sized to fit the preferred size and layouts of its subcomponents. |
void |
print()
Print the report to a printer. |
void |
print(ReportSheet report)
Populate the view with a report. |
void |
printAction()
Start printing to printer. |
void |
process(RepletCommand cmd)
Process a command sequence. |
void |
processCommand(RepletCommand cmd)
Process an individual command. |
void |
refresh()
Refresh the contents of the pages. |
void |
removeSelectionListener(SelectionListener l)
Remove a selection listener. |
void |
reprint()
Reprint the contents of the pages. |
void |
scrollTo(String eid,
int row)
Scroll to specified element and optional row. |
void |
setCurrentPage(int pn)
Scroll to the specified page. |
void |
setEventHandler(EventHandler cmds)
Set the client-side event handler. |
void |
setEventMask(int mask)
Set the event mask. |
void |
setExitOnClose(boolean exitit)
If the ExitOnClose is set to true, the Previewer exits from the application when the previewer window is closed. |
void |
setOrientation(int orientation)
Sets the page orientation. |
void |
setPageCount(int n)
Set the total number of pages in this view. |
void |
setPageCount(int n,
boolean checkCompleted)
Set the total number of pages in this view. |
void |
setPageHeight(double height)
Set the page height in inches. |
void |
setPageResolution(int res)
Set the page resolution, as number of dots per inch. |
void |
setPages(int rows,
int cols)
Set the multi-page dimension. |
void |
setPageWidth(double width)
Set the page width in inches. |
void |
setRepletID(Object id)
Set the replet ID of the current report. |
void |
setRepletRequest(RepletRequest req)
Set the replet request used in this frame. |
void |
setReport(ReportSheet report)
Set the report in this frame. |
void |
setShowTOC(boolean toc)
Set the option to show the Table of Contents view. |
void |
setStylePages(Enumeration pages)
Display the StylePages in the preview pane. |
void |
setTitle(String title)
Set the preview window title. |
void |
setToolbarButtons(int buttons)
Set the buttons on the toolbar. |
protected abstract void |
showConsoleDialog()
Show the console dialog. |
void |
showLocation(PageLocation ploc,
boolean hl)
Show the location as highlighted. |
protected abstract void |
showMessage(String msg)
Show a message in a message dialog. |
abstract PreviewView |
showReplet(String name,
RepletRequest req)
Show a replet in a viewer window. |
abstract PreviewView |
showReplet(String name,
RepletRequest req,
PreviewView frame)
Show a replet in a viewer window using an existing frame. |
abstract void |
showStatus(String msg)
Show status on the status bar. |
void |
showTarget(String target)
Jump to a target (hyperlink anchor). |
abstract void |
showURL(String url,
String target)
Show the document in a browser window. |
void |
writeReport(OutputStream os)
Write the previewed report into a .sro file. |
void |
zoom(double perc)
Set the zooming percentage. |
| 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 inetsoft.report.PreviewView |
|---|
setPreferredSize, setVisible |
| Constructor Detail |
|---|
public ViewPreviewPane(RepletRepository engine)
| Method Detail |
|---|
public abstract PreviewView showReplet(String name,
RepletRequest req)
name - replet name.req - replet request.
public abstract PreviewView showReplet(String name,
RepletRequest req,
PreviewView frame)
name - replet name.req - replet request.
public abstract void showURL(String url,
String target)
url - URL string.target - target frame.public abstract void showStatus(String msg)
public abstract boolean isVisible()
isVisible in class Component
protected abstract void enqueue(ViewPreviewPane.ViewPane pane,
int pn)
protected abstract void enqueueNow(ViewPreviewPane.ViewPane pane,
int pn)
protected abstract void showMessage(String msg)
protected abstract PreviewView getParentView()
protected abstract void showConsoleDialog()
public void setTitle(String title)
setTitle in interface PreviewViewtitle - previewer title.protected Component getToolbar()
protected void distroyEngine()
public void dispose()
public void addDisposeListener(ActionListener listener)
addDisposeListener in interface PreviewViewpublic void print(ReportSheet report)
print in interface PreviewViewreport - report.public void print()
public void writeReport(OutputStream os)
writeReport in interface PreviewViewpublic Enumeration getStylePages()
getStylePages in interface PreviewViewpublic Enumeration getStylePages(int[] printPages)
printPages - array of page numbers to print
public Object getRepletID()
public void setRepletID(Object id)
id - replet ID.public boolean isCustomizable()
public void customize()
public void setEventMask(int mask)
mask - bitwise-or of the event masks.public void setEventHandler(EventHandler cmds)
cmds - event handler.public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic void setPageCount(int n)
n - number of pages.
public void setPageCount(int n,
boolean checkCompleted)
n - number of pages.public int getPageCount()
public void zoom(double perc)
zoom in interface PreviewViewperc - zooming percentage.public double getZoom()
getZoom in interface PreviewView
public void setPages(int rows,
int cols)
rows - the number of rows.cols - the number of columns.public void gotoPage()
public void setCurrentPage(int pn)
pn - page number. Starting at 0.public int getCurrentPage()
public void setShowTOC(boolean toc)
toc - true to show table of contents.public void find(SearchCondition cond)
cond - search conditions.public void findNext(SearchCondition cond)
cond - search conditions.
public void scrollTo(String eid,
int row)
eid - element ID.row - row number. Ignored if the element is not a table.public void showTarget(String target)
public void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListener
public void showLocation(PageLocation ploc,
boolean hl)
ploc - page location.hl - true to highlight the area.protected void handleRepletEvent(EventObject e)
e - event object.public void setRepletRequest(RepletRequest req)
public void process(RepletCommand cmd)
public void refresh()
public void reprint()
public void processCommand(RepletCommand cmd)
public ReportSheet getReport()
getReport in interface PreviewViewpublic void setReport(ReportSheet report)
public void setStylePages(Enumeration pages)
setStylePages in interface PreviewViewpages - return a collection of StylePage objects.public void setToolbarButtons(int buttons)
setToolbarButtons in interface PreviewViewbuttons - bit-wise OR of the button masks.public void addToolbarComponent(Component comp)
addToolbarComponent in interface PreviewViewpublic void setPageWidth(double width)
setPageWidth in interface PreviewViewwidth - page width.public double getPageWidth()
getPageWidth in interface PreviewViewpublic void setPageHeight(double height)
setPageHeight in interface PreviewViewheight - page height.public double getPageHeight()
getPageHeight in interface PreviewViewpublic void setOrientation(int orientation)
orientation must be
one of the constants: PORTRAIT, LANDSCAPE.
setOrientation in interface PreviewVieworientation - the new orientation for the pagepublic int getOrientation()
PageFormat.
getOrientation in interface PreviewViewPageFormat object's orientation.public void setPageResolution(int res)
setPageResolution in interface PreviewViewres - page resolution.public int getPageResolution()
getPageResolution in interface PreviewViewpublic void printAction()
printAction in interface PreviewViewpublic void addSelectionListener(SelectionListener l)
addSelectionListener in interface PreviewViewpublic void removeSelectionListener(SelectionListener l)
removeSelectionListener in interface PreviewViewpublic void setExitOnClose(boolean exitit)
setExitOnClose in interface PreviewViewpublic void pack()
pack in interface PreviewViewComponent.isDisplayable()
public void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
firePropertyChange in class Component
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||