|
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.JInternalFrame
inetsoft.sree.viewer.ViewFrame
public class ViewFrame
ViewFrame is a window to browse one report. It must be added to the Viewer's mdi to be managed by the viewer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
|---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
| 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.JInternalFrame |
|---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
| 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 javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ViewFrame(String title,
RepletRepository engine,
ViewerPane viewer)
Create an empty previewer. |
|
| Method Summary | |
|---|---|
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. |
void |
find(SearchCondition cond)
Perform a search on the search condition. |
void |
findNext(SearchCondition cond)
Find the next occurence of the search condition. |
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. |
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. |
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 |
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 |
setToolbarButtons(int buttons)
Set the buttons on the toolbar. |
void |
showLocation(PageLocation ploc,
boolean hl)
Show the location as highlighted. |
void |
showTarget(String target)
Jump to a target (hyperlink anchor). |
void |
writeReport(OutputStream os)
Write the previewed report into a .sro file. |
void |
zoom(double perc)
Set the zooming percentage. |
| 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, setTitle, setVisible |
| Constructor Detail |
|---|
public ViewFrame(String title,
RepletRepository engine,
ViewerPane viewer)
| Method Detail |
|---|
protected Component getToolbar()
public void dispose()
dispose in class JInternalFramepublic 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 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 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 PreviewViewpack in class JInternalFrameComponent.isDisplayable()
|
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 | ||||||||