public class ReportViewer extends AbstractVisionPanel implements ExtensibleComponent
| Modifier and Type | Class and Description |
|---|---|
protected class |
ReportViewer.ControlsPanel |
protected class |
ReportViewer.ReportLoader
ReportLoader is the background process that runs to collect the data for a report without blocking the UI
thread.
|
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CAT_REPORTING |
protected ReportViewer.ControlsPanel |
controls |
protected javax.swing.JPopupMenu |
popupMenu |
antialias, context, cursorCode, dynamicPropslistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTCOMPONENT_RUNNINGRESERVED_SET_KEYCOMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS| Constructor and Description |
|---|
ReportViewer() |
| Modifier and Type | Method and Description |
|---|---|
void |
bulkSetValues(java.util.Map<java.lang.String,java.lang.Object> map) |
protected boolean |
checkExpirationAccess() |
java.awt.Color |
getBackground()
Gets the background color of this component.
|
byte[] |
getBytesPDF()
Allows scripts to get the bytes in PDF format.
|
byte[] |
getBytesPNG()
Allows scripts to get the bytes in png format.
|
int |
getCurrentPage() |
java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> |
getDynamicProps() |
java.util.Map<java.lang.String,ExtensionFunction> |
getExtensionFunctions() |
int |
getPageCount() |
java.awt.Color |
getPanelBackground() |
DynamicPropertyDescriptor[] |
getProperties() |
java.lang.Object |
getPropertyValue(java.lang.String name) |
java.lang.String |
getReportPath() |
java.lang.String |
getSuggestedFilename() |
float |
getZoomFactor() |
protected javax.swing.JPopupMenu |
initMenu() |
boolean |
isPropertyDefined(java.lang.String name) |
boolean |
isReportLoading() |
boolean |
isShowControls() |
void |
loadReport()
loadReport() starts most of the checking and loading duties for the ReportViewer.
|
void |
localeChanged(java.util.Locale newLocale) |
void |
onShutdown()
Subclasses should override this to provide shutdown logic.
|
void |
onStartup()
We override these PropertyProvider methods to expose the ReportResource's parameters as custom properties in the
Property Editor, but we don't want the names to be editable outside of the ReportData configuration panel.
|
void |
print() |
void |
print(java.lang.String printerName) |
void |
print(java.lang.String printerName,
boolean showDialog) |
java.lang.String |
saveAsHTML(java.lang.String fname,
boolean continuous) |
java.lang.String |
saveAsPDF(java.lang.String fname) |
java.lang.String |
saveAsPNG(java.lang.String fname) |
java.lang.String |
saveAsXls(java.lang.String fname) |
void |
setBackground(java.awt.Color bg) |
void |
setCurrentPage(int pageNumber) |
void |
setDynamicProps(java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> map) |
void |
setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map) |
void |
setForeground(java.awt.Color fg) |
void |
setPageCount(int unused) |
void |
setPanelBackground(java.awt.Color panelBackground) |
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
The Property (aka Report Parameter) values can be set from the Property editor to override the default value.
|
void |
setPropertyValueQuiet(java.lang.String name,
java.lang.Object value)
Sets the property value without reloading the report.
|
void |
setReportLoading(boolean reportLoading) |
void |
setReportPath(java.lang.String reportPath) |
void |
setShowControls(boolean show) |
void |
setSuggestedFilename(java.lang.String suggestedFilename) |
void |
setZoomFactor(float zoomFactor) |
void |
updateControlVisibility() |
getAppContext, getCursorCode, getDataQuality, getQuality, getStyles, getToolTipText, initStyleListener, isAntialias, isComponentRunning, paintChildren, paintComponent, paintOverlayOverChildren, setAntialias, setCursorCode, setDataQuality, setName, setQuality, setStyles, setToolTipText, setVisible, shutdownComponent, startupComponent, translate, updateQualitygetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAppContext, shutdownComponent, startupComponentpublic static final java.lang.String CAT_REPORTING
protected javax.swing.JPopupMenu popupMenu
protected ReportViewer.ControlsPanel controls
public void onStartup()
onStartup in class AbstractVisionPanelpublic void onShutdown()
AbstractVisionPanelonShutdown in class AbstractVisionPanelpublic DynamicPropertyDescriptor[] getProperties()
getProperties in interface DynamicPropertyProvidergetProperties in class AbstractVisionPanelpublic java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> getDynamicProps()
getDynamicProps in interface MutableDynamicPropertyProvidergetDynamicProps in class AbstractVisionPanelpublic void setDynamicProps(@Nullable
java.util.TreeMap<java.lang.String,DynamicPropertyDescriptor> map)
setDynamicProps in interface MutableDynamicPropertyProvidersetDynamicProps in class AbstractVisionPanelpublic void setPropertyValue(java.lang.String name,
java.lang.Object value)
throws java.lang.ClassCastException
setPropertyValue in interface DynamicPropertyProvidersetPropertyValue in class AbstractVisionPaneljava.lang.ClassCastExceptionpublic void setPropertyValueQuiet(java.lang.String name,
java.lang.Object value)
throws java.lang.ClassCastException
java.lang.ClassCastExceptionpublic void bulkSetValues(java.util.Map<java.lang.String,java.lang.Object> map)
public java.lang.Object getPropertyValue(java.lang.String name)
getPropertyValue in interface DynamicPropertyProvidergetPropertyValue in class AbstractVisionPanelpublic boolean isPropertyDefined(java.lang.String name)
isPropertyDefined in interface DynamicPropertyProviderisPropertyDefined in class AbstractVisionPanelpublic boolean isReportLoading()
public void setReportLoading(boolean reportLoading)
public java.lang.String getReportPath()
public void setReportPath(java.lang.String reportPath)
public void loadReport()
public void setBackground(java.awt.Color bg)
setBackground in class javax.swing.JComponentpublic java.awt.Color getBackground()
getBackground in class java.awt.Componentpublic void setForeground(java.awt.Color fg)
setForeground in class javax.swing.JComponentpublic java.util.Map<java.lang.String,ExtensionFunction> getExtensionFunctions()
getExtensionFunctions in interface ExtensibleComponentpublic void setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map)
setExtensionFunctions in interface ExtensibleComponentpublic void localeChanged(java.util.Locale newLocale)
localeChanged in interface LocaleListenerlocaleChanged in class AbstractVisionPanelpublic float getZoomFactor()
public void setZoomFactor(float zoomFactor)
public int getCurrentPage()
public void setCurrentPage(int pageNumber)
public int getPageCount()
public void setPageCount(int unused)
protected javax.swing.JPopupMenu initMenu()
public void print()
public void print(java.lang.String printerName)
public void print(java.lang.String printerName,
boolean showDialog)
@Nullable public byte[] getBytesPDF()
@Nullable public byte[] getBytesPNG()
public java.lang.String saveAsPDF(java.lang.String fname)
@Nullable
public java.lang.String saveAsHTML(java.lang.String fname,
boolean continuous)
public java.lang.String saveAsPNG(java.lang.String fname)
public java.lang.String saveAsXls(java.lang.String fname)
protected boolean checkExpirationAccess()
public java.awt.Color getPanelBackground()
public void setPanelBackground(java.awt.Color panelBackground)
public void setSuggestedFilename(java.lang.String suggestedFilename)
public java.lang.String getSuggestedFilename()
public boolean isShowControls()
public void setShowControls(boolean show)
public void updateControlVisibility()