Class DReport

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.table.TableCellRenderer, org.kopi.galite.visual.base.UComponent, org.kopi.galite.visual.FileProductionListener, org.kopi.galite.visual.ModelCloseListener, org.kopi.galite.visual.ProgressDialogListener, org.kopi.galite.visual.report.ReportListener, org.kopi.galite.visual.report.UReport, org.kopi.galite.visual.UWindow, org.kopi.galite.visual.VActionListener, org.kopi.galite.visual.WaitDialogListener, org.kopi.galite.visual.WaitInfoListener

    public class DReport
    extends DWindow
    implements org.kopi.galite.visual.report.UReport, javax.swing.table.TableCellRenderer
    This is the display class of a report.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JPanel

        javax.swing.JPanel.AccessibleJPanel
      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • Nested classes/interfaces inherited from interface org.kopi.galite.visual.report.UReport

        org.kopi.galite.visual.report.UReport.UTable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.awt.Dimension interCellSpacing  
      • Fields inherited from class javax.swing.JComponent

        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

        accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Constructor Summary

      Constructors 
      Constructor Description
      DReport​(org.kopi.galite.visual.report.VReport report)
      Constructs a new report view
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addColumn()  
      void addColumn​(int position)  
      void build()
      run
      void columnMoved​(int[] pos)  
      void contentChanged()  
      int getColumnCount()
      Returns the number of columns displayed in the table
      int[] getDisplayOrder()
      Return the new columns order
      org.kopi.galite.visual.report.Point getSelectedCell()
      Returns the coordinate of the selected cell The index of the column is relative to the model
      int getSelectedColumn()
      Returns the selected column The index of the column is relative to the model
      static int getState​(java.lang.String text)  
      org.kopi.galite.visual.report.UReport.UTable getTable()  
      java.awt.Component getTableCellRendererComponent​(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Returns the right cell component
      void redisplay()  
      void removeColumn​(int position)  
      void reorder​(int[] newOrder)
      Reoder
      void resetWidth()  
      void run()
      start a block and enter in the good field (rec)
      void run​(boolean visible)
      start a block and enter in the good field (rec)
      void setColumnLabel​(int column, java.lang.String label)  
      void setTitle​(java.lang.String title)
      Sets the title of the report
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, 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, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
      • Methods inherited from class java.awt.Container

        add, 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, validateTree
      • Methods inherited from class java.awt.Component

        action, 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, getBackground, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.kopi.galite.visual.FileProductionListener

        fileProduced
      • Methods inherited from interface org.kopi.galite.visual.ModelCloseListener

        dispose, modelClosed
      • Methods inherited from interface org.kopi.galite.visual.ProgressDialogListener

        setProgressDialog, unsetProgressDialog
      • Methods inherited from interface org.kopi.galite.visual.base.UComponent

        isEnabled, isVisible, setEnabled, setVisible
      • Methods inherited from interface org.kopi.galite.visual.UWindow

        closeWindow, getModel, openURL, performBasicAction, setCurrentJob, setInformationText, setTotalJobs, setWindowFocusEnabled, updateWaitDialogMessage
      • Methods inherited from interface org.kopi.galite.visual.VActionListener

        performAsyncAction
      • Methods inherited from interface org.kopi.galite.visual.WaitDialogListener

        setWaitDialog, unsetWaitDialog
      • Methods inherited from interface org.kopi.galite.visual.WaitInfoListener

        setWaitInfo, unsetWaitInfo
    • Field Detail

      • interCellSpacing

        public static final java.awt.Dimension interCellSpacing
    • Constructor Detail

      • DReport

        public DReport​(org.kopi.galite.visual.report.VReport report)
        Constructs a new report view
        Parameters:
        report - the report model
    • Method Detail

      • setColumnLabel

        public void setColumnLabel​(int column,
                                   java.lang.String label)
        Specified by:
        setColumnLabel in interface org.kopi.galite.visual.report.UReport
      • removeColumn

        public void removeColumn​(int position)
        Specified by:
        removeColumn in interface org.kopi.galite.visual.report.UReport
      • addColumn

        public void addColumn​(int position)
        Specified by:
        addColumn in interface org.kopi.galite.visual.report.UReport
      • addColumn

        public void addColumn()
        Specified by:
        addColumn in interface org.kopi.galite.visual.report.UReport
      • getTable

        public org.kopi.galite.visual.report.UReport.UTable getTable()
        Specified by:
        getTable in interface org.kopi.galite.visual.report.UReport
      • columnMoved

        public void columnMoved​(int[] pos)
        Specified by:
        columnMoved in interface org.kopi.galite.visual.report.UReport
      • contentChanged

        public void contentChanged()
        Specified by:
        contentChanged in interface org.kopi.galite.visual.report.ReportListener
      • build

        public void build()
        run
        Specified by:
        build in interface org.kopi.galite.visual.report.UReport
        Overrides:
        build in class DWindow
      • resetWidth

        public void resetWidth()
        Specified by:
        resetWidth in interface org.kopi.galite.visual.report.UReport
      • redisplay

        public void redisplay()
        Specified by:
        redisplay in interface org.kopi.galite.visual.report.UReport
      • getDisplayOrder

        public int[] getDisplayOrder()
        Return the new columns order
      • setTitle

        public void setTitle​(java.lang.String title)
        Sets the title of the report
        Specified by:
        setTitle in interface org.kopi.galite.visual.UWindow
        Overrides:
        setTitle in class DWindow
      • reorder

        public void reorder​(int[] newOrder)
        Reoder
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns displayed in the table
        Returns:
        the number or columns displayed
      • run

        public void run​(boolean visible)
                 throws org.kopi.galite.visual.VException
        start a block and enter in the good field (rec)
        Throws:
        org.kopi.galite.visual.VException - may be raised by triggers
      • run

        public void run()
                 throws org.kopi.galite.visual.VException
        start a block and enter in the good field (rec)
        Specified by:
        run in interface org.kopi.galite.visual.UWindow
        Specified by:
        run in class DWindow
        Throws:
        org.kopi.galite.visual.VException - may be raised by triggers
      • getSelectedColumn

        public int getSelectedColumn()
        Returns the selected column The index of the column is relative to the model
        Specified by:
        getSelectedColumn in interface org.kopi.galite.visual.report.UReport
      • getSelectedCell

        public org.kopi.galite.visual.report.Point getSelectedCell()
        Returns the coordinate of the selected cell The index of the column is relative to the model
        Specified by:
        getSelectedCell in interface org.kopi.galite.visual.report.UReport
      • getState

        public static int getState​(java.lang.String text)
      • getTableCellRendererComponent

        public java.awt.Component getTableCellRendererComponent​(javax.swing.JTable table,
                                                                java.lang.Object value,
                                                                boolean isSelected,
                                                                boolean hasFocus,
                                                                int row,
                                                                int column)
        Returns the right cell component
        Specified by:
        getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer