org.qriterium.dogma.gui
Class DogmaResourceTable

java.lang.Object
  extended by de.kupzog.ktable.KTableDefaultModel
      extended by de.kupzog.ktable.KTableSortedModel
          extended by org.qriterium.dogma.gui.DogmaResourceTable
All Implemented Interfaces:
de.kupzog.ktable.KTableModel

public class DogmaResourceTable
extends de.kupzog.ktable.KTableSortedModel

this class instance contains information for getting the resource data

Author:
dogma

Constructor Summary
DogmaResourceTable()
           
DogmaResourceTable(java.util.Vector<DogmaResource> resources)
          this is the main method for starting the table with vector of resources
 
Method Summary
 org.eclipse.swt.graphics.Point doBelongsToCell(int col, int row)
           
 de.kupzog.ktable.KTableCellEditor doGetCellEditor(int col, int row)
           
 de.kupzog.ktable.KTableCellRenderer doGetCellRenderer(int col, int row)
           
 int doGetColumnCount()
           
 java.lang.Object doGetContentAt(int col, int row)
           
 int doGetRowCount()
           
 java.lang.String doGetTooltipAt(int col, int row)
           
 void doSetContentAt(int col, int row, java.lang.Object value)
           
 int getFixedHeaderColumnCount()
           
 int getFixedHeaderRowCount()
           
 int getFixedSelectableColumnCount()
           
 int getFixedSelectableRowCount()
           
 int getInitialColumnWidth(int column)
           
 int getInitialFirstRowHeight()
           
 int getInitialRowHeight()
           
 int getInitialRowHeight(int row)
           
 java.lang.String getItem(int col, int row)
           
 DogmaResource getResourceOnRow(int row)
          Returns the DogmaResource on the tableRow from the vector.
 int getRowHeightMinimum()
           
 java.util.Vector<DogmaResource> getTableContents()
          Returns table contents as a Vector of DogmaResources
 boolean isColumnResizable(int col)
           
 boolean isRowResizable(int row)
           
 int searchResource(java.lang.String[] searchField)
          one field is in the end of the table for searching resources. this method searchis resource for the right resource
 
Methods inherited from class de.kupzog.ktable.KTableSortedModel
belongsToCell, getCellEditor, getCellRenderer, getContentAt, getSortColumn, getSortState, getTooltipAt, initialize, mapRowIndexToModel, mapRowIndexToTable, resetRowMapping, setContentAt, sort
 
Methods inherited from class de.kupzog.ktable.KTableDefaultModel
getColumnCount, getColumnWidth, getFirstRowHeight, getFixedColumnCount, getFixedRowCount, getRowCount, getRowHeight, isFixedCell, isHeaderCell, setColumnWidth, setFirstRowHeight, setRowHeight
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DogmaResourceTable

public DogmaResourceTable()

DogmaResourceTable

public DogmaResourceTable(java.util.Vector<DogmaResource> resources)
this is the main method for starting the table with vector of resources

Parameters:
resources -
Method Detail

searchResource

public int searchResource(java.lang.String[] searchField)
one field is in the end of the table for searching resources. this method searchis resource for the right resource

Parameters:
searchField -
Returns:

getItem

public java.lang.String getItem(int col,
                                int row)

doGetContentAt

public java.lang.Object doGetContentAt(int col,
                                       int row)
Specified by:
doGetContentAt in class de.kupzog.ktable.KTableDefaultModel

doGetCellRenderer

public de.kupzog.ktable.KTableCellRenderer doGetCellRenderer(int col,
                                                             int row)
Specified by:
doGetCellRenderer in class de.kupzog.ktable.KTableDefaultModel

doGetCellEditor

public de.kupzog.ktable.KTableCellEditor doGetCellEditor(int col,
                                                         int row)
Specified by:
doGetCellEditor in class de.kupzog.ktable.KTableDefaultModel

doSetContentAt

public void doSetContentAt(int col,
                           int row,
                           java.lang.Object value)
Specified by:
doSetContentAt in class de.kupzog.ktable.KTableDefaultModel

doBelongsToCell

public org.eclipse.swt.graphics.Point doBelongsToCell(int col,
                                                      int row)
Overrides:
doBelongsToCell in class de.kupzog.ktable.KTableDefaultModel

getInitialColumnWidth

public int getInitialColumnWidth(int column)
Specified by:
getInitialColumnWidth in class de.kupzog.ktable.KTableDefaultModel

getInitialRowHeight

public int getInitialRowHeight(int row)
Specified by:
getInitialRowHeight in class de.kupzog.ktable.KTableDefaultModel

getInitialRowHeight

public int getInitialRowHeight()

doGetRowCount

public int doGetRowCount()
Specified by:
doGetRowCount in class de.kupzog.ktable.KTableDefaultModel

doGetColumnCount

public int doGetColumnCount()
Specified by:
doGetColumnCount in class de.kupzog.ktable.KTableDefaultModel

getFixedHeaderRowCount

public int getFixedHeaderRowCount()

getFixedHeaderColumnCount

public int getFixedHeaderColumnCount()

getFixedSelectableRowCount

public int getFixedSelectableRowCount()

getFixedSelectableColumnCount

public int getFixedSelectableColumnCount()

isColumnResizable

public boolean isColumnResizable(int col)

getInitialFirstRowHeight

public int getInitialFirstRowHeight()
Overrides:
getInitialFirstRowHeight in class de.kupzog.ktable.KTableDefaultModel

isRowResizable

public boolean isRowResizable(int row)

getRowHeightMinimum

public int getRowHeightMinimum()

doGetTooltipAt

public java.lang.String doGetTooltipAt(int col,
                                       int row)
Overrides:
doGetTooltipAt in class de.kupzog.ktable.KTableDefaultModel

getResourceOnRow

public DogmaResource getResourceOnRow(int row)
Returns the DogmaResource on the tableRow from the vector. The row on the table is always +1 in comparison to the element on vector and it is also being taken care of here. So if row 1 is asked, element 0 is returned.

Parameters:
row - Number of the row on the table.
Returns:
DogmaResource from the table.

getTableContents

public java.util.Vector<DogmaResource> getTableContents()
Returns table contents as a Vector of DogmaResources

Returns:
resources currently on table