Class DReport

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, 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, TableCellRenderer
This is the display class of a report.
See Also:
  • Field Details

    • interCellSpacing

      public static final Dimension interCellSpacing
  • Constructor Details

    • DReport

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

    • setColumnLabel

      public void setColumnLabel(int column, 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(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(String text)
    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Returns the right cell component
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer