Class TableRowPainted

    • Field Detail

      • drawOffset

        private org.eclipse.swt.graphics.Point drawOffset
      • numSubItems

        private int numSubItems
      • subDataSources

        private java.lang.Object[] subDataSources
      • subRows_sync

        private final java.lang.Object subRows_sync
      • subRowsHeightUseAccessors

        private int subRowsHeightUseAccessors
      • heightUseAccessors

        private int heightUseAccessors
      • isHidden

        private boolean isHidden
      • initializing

        private boolean initializing
      • inPaintItem

        private boolean inPaintItem
      • colorFG

        private org.eclipse.swt.graphics.Color colorFG
      • colorLock

        private java.lang.Object colorLock
    • Constructor Detail

      • TableRowPainted

        public TableRowPainted​(TableRowCore parentRow,
                               TableViewPainted tv,
                               java.lang.Object dataSource,
                               boolean triggerHeightChange)
    • Method Detail

      • refilter

        public boolean refilter()
      • isHidden

        public boolean isHidden()
      • buildCells

        private void buildCells()
      • destroyCells

        private void destroyCells()
      • swt_paintGC

        public void swt_paintGC​(org.eclipse.swt.graphics.GC gc,
                                org.eclipse.swt.graphics.Rectangle drawBounds,
                                int rowStartX,
                                int rowStartY,
                                int pos,
                                boolean isTableSelected,
                                boolean isTableEnabled)
        Parameters:
        gc - GC to draw to
        drawBounds - Area that needs redrawing
        rowStartX - where in the GC this row's x-axis starts
        rowStartY - where in the GC this row's y-axis starts
        pos -
      • fakeRedraw

        public void fakeRedraw​(java.lang.String col_name)
        Description copied from interface: TableRowCore
        forces the cell to be refreshed/repainted onto an off-screen area so that any side-effects of the process (e.g. preferred width) can be updated
      • swt_fakeRedraw

        private void swt_fakeRedraw​(java.lang.String col_name)
      • isInPaintItem

        public boolean isInPaintItem()
        Returns:
      • swt_paintCell

        private boolean swt_paintCell​(org.eclipse.swt.graphics.GC gc,
                                      org.eclipse.swt.graphics.Rectangle cellBounds,
                                      TableCellSWTBase cell,
                                      org.eclipse.swt.graphics.Color shadowColor,
                                      boolean enableColumnBG,
                                      boolean enableColumnFG,
                                      boolean isAltColor)
      • getRandomFont

        private org.eclipse.swt.graphics.Font getRandomFont()
      • redraw

        public void redraw​(boolean doChildren)
      • redraw

        public void redraw​(boolean doChildren,
                           boolean immediateRedraw)
      • debug

        protected void debug​(java.lang.String s)
      • getDrawBounds

        public org.eclipse.swt.graphics.Rectangle getDrawBounds()
      • getFullHeight

        public int getFullHeight()
      • getDrawOffset

        public org.eclipse.swt.graphics.Point getDrawOffset()
      • heightChanged

        public void heightChanged​(int oldHeight,
                                  int newHeight)
      • setSubRowsHeight

        private void setSubRowsHeight​(int h)
      • subRowHeightChanged

        protected void subRowHeightChanged​(int oldHeight,
                                           int newHeight)
      • setDrawOffset

        public boolean setDrawOffset​(org.eclipse.swt.graphics.Point drawOffset)
      • deleteExistingSubRows

        private void deleteExistingSubRows()
      • setSubItemCount

        public void setSubItemCount​(int length)
      • setSubItemCount

        private void setSubItemCount​(int length,
                                     boolean triggerHeightListener)
      • getSubItemCount

        public int getSubItemCount()
      • linkSubItem

        public TableRowCore linkSubItem​(int indexOf)
        Returns:
      • setSubItems

        public void setSubItems​(java.lang.Object[] datasources)
      • setSubItems

        private void setSubItems​(java.lang.Object[] datasources,
                                 boolean triggerHeightListeners)
      • getSubRowsWithNull

        public TableRowCore[] getSubRowsWithNull()
      • getSubRowsRecursive

        public TableRowCore[] getSubRowsRecursive​(boolean includeHidden)
      • getSubRowsRecursive

        private void getSubRowsRecursive​(java.util.List<TableRowCore> result,
                                         TableRowCore[] rows,
                                         boolean includeHidden)
      • removeSubRow

        public void removeSubRow​(java.lang.Object datasource)
      • setExpanded

        private void setExpanded​(boolean b,
                                 boolean triggerHeightChange)
      • requestForegroundColor

        public void requestForegroundColor​(TableViewSWT.ColorRequester requester,
                                           org.eclipse.swt.graphics.Color color)
      • requestBackgroundColor

        public void requestBackgroundColor​(TableViewSWT.ColorRequester requester,
                                           org.eclipse.swt.graphics.Color color)
      • getHeight

        public int getHeight()
      • setHeight

        public boolean setHeight​(int newHeight)
        Description copied from interface: TableRowCore
        Adjust cell height. Don't use if any other column/cell uses setImage()
        Parameters:
        newHeight - new Row Height. Will not reduce row's height (SWT)
        Returns:
        success level
      • setHeight

        public boolean setHeight​(int newHeight,
                                 boolean trigger)
      • getTableCellCore

        public TableCellCore getTableCellCore​(java.lang.String name)
        Description copied from interface: TableRowCore
        Retrieve a cell based on the supplied value
        Specified by:
        getTableCellCore in interface TableRowCore
        Overrides:
        getTableCellCore in class TableRowSWTBase
        Parameters:
        name - Column name of the cell to be returned
        Returns:
        TableCellCore object related to this row and the specified column
      • getTableCell

        public TableCell getTableCell​(java.lang.String field)
        Description copied from interface: TableRow
        Retrieve a cell based on its column name
        Specified by:
        getTableCell in interface TableRow
        Overrides:
        getTableCell in class TableRowSWTBase
        Parameters:
        field - Name/ID of column
        Returns:
        TableCell object related to this row and the column specified
      • getSortColumnCells

        public TableCellCore[] getSortColumnCells​(java.lang.String hint)
      • setSortColumn

        public void setSortColumn​(java.lang.String... columnIDs)