|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kupzog.ktable.KTableDefaultModel
de.kupzog.ktable.KTableSortedModel
org.qriterium.dogma.gui.DogmaURITable
public class DogmaURITable
Constructor Summary | |
---|---|
DogmaURITable(DogmaResource resource,
DogmaURIComponent uriComp)
Creates a new URITable based on the given resource and it's uris. |
|
DogmaURITable(DogmaURIComponent uriComp)
|
Method Summary | |
---|---|
void |
addRow(boolean toFirst)
Adds a row to the table. |
void |
deleteRow(int row)
Removes the given row from the table. |
org.eclipse.swt.graphics.Point |
doBelongsToCell(int col,
int row)
|
de.kupzog.ktable.KTableCellEditor |
doGetCellEditor(int col,
int row)
|
de.kupzog.ktable.KTableCellEditor |
doGetCellEditor(int col,
int row,
boolean r)
|
de.kupzog.ktable.KTableCellRenderer |
doGetCellRenderer(int col,
int row)
|
int |
doGetColumnCount()
Returns the amount of columns. |
java.lang.Object |
doGetContentAt(int col,
int row)
Returns the Object in the cell corresponding to the given values. |
int |
doGetRowCount()
Returns the amount of rows in the URI-table, including also header-row. |
java.lang.String |
doGetTooltipAt(int col,
int row)
|
java.lang.String |
doGetType(int row)
Gets the type-value for the given row. |
java.lang.String |
doGetUri(int row)
Gets the uri-value for the given row. |
void |
doSetContentAt(int col,
int row,
java.lang.Object value)
Sets the given value to the cell corresponding to the given column and row. |
org.eclipse.swt.graphics.Point |
getCell(int x,
int y)
Gets the cell as a point for the given x and y - coordinates. |
org.eclipse.swt.graphics.Rectangle |
getCellBounds(int x,
int y)
Returns the bounds of the given cell as a rectangle. |
java.lang.String |
getColumnName(int col)
Gets the columnNames for the given column. |
int |
getFixedHeaderColumnCount()
|
int |
getFixedHeaderRowCount()
|
int |
getFixedSelectableColumnCount()
|
int |
getFixedSelectableRowCount()
|
int |
getInitialColumnWidth(int column)
|
int |
getInitialFirstRowHeight()
|
int |
getInitialRowHeight(int row)
|
java.lang.String |
getItem(int row,
int col)
getItem gets the value on the cell that corresponds to given row and column |
int |
getLastVisibleColumn()
Returns the columnNumber of the last visible column. |
DogmaResource |
getResource()
Returns the current dogmaresource that is having it's uris shown |
int |
getRowHeightMinimum()
|
org.eclipse.swt.graphics.Point |
getSize()
Gets the size of the table. |
java.lang.String[][] |
getUriStringTable()
|
int |
getWidth()
Returns the width of the table |
void |
hideColumn(int col)
Hides the column of the given column-value. |
boolean |
inTable(int x,
int y)
Checks if the point corresponding to the given x-coordinate and y-coordinate is inside the table. |
boolean |
inTable(org.eclipse.swt.graphics.Point p)
Checks if the given point is inside our tablelimits. |
boolean |
isColumnResizable(int col)
|
boolean |
isRowResizable(int row)
|
void |
showColumn(int col)
Shows the column of the given column-value |
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 |
---|
public DogmaURITable(DogmaResource resource, DogmaURIComponent uriComp)
resource
- public DogmaURITable(DogmaURIComponent uriComp)
Method Detail |
---|
public java.lang.String getItem(int row, int col)
row
- The row of the cell to returncol
- The column of the cell to return
public void deleteRow(int row)
row
- the row that is to be removed.public java.lang.Object doGetContentAt(int col, int row)
doGetContentAt
in class de.kupzog.ktable.KTableDefaultModel
public java.lang.String doGetType(int row)
row
- The row we want to check for the type.
public java.lang.String doGetUri(int row)
row
- The row we want to check for the uri.
public de.kupzog.ktable.KTableCellRenderer doGetCellRenderer(int col, int row)
doGetCellRenderer
in class de.kupzog.ktable.KTableDefaultModel
public de.kupzog.ktable.KTableCellEditor doGetCellEditor(int col, int row, boolean r)
public de.kupzog.ktable.KTableCellEditor doGetCellEditor(int col, int row)
doGetCellEditor
in class de.kupzog.ktable.KTableDefaultModel
public void doSetContentAt(int col, int row, java.lang.Object value)
doSetContentAt
in class de.kupzog.ktable.KTableDefaultModel
public org.eclipse.swt.graphics.Point doBelongsToCell(int col, int row)
doBelongsToCell
in class de.kupzog.ktable.KTableDefaultModel
public int getInitialColumnWidth(int column)
getInitialColumnWidth
in class de.kupzog.ktable.KTableDefaultModel
public int getInitialRowHeight(int row)
getInitialRowHeight
in class de.kupzog.ktable.KTableDefaultModel
public int doGetColumnCount()
doGetColumnCount
in class de.kupzog.ktable.KTableDefaultModel
public org.eclipse.swt.graphics.Point getSize()
public org.eclipse.swt.graphics.Rectangle getCellBounds(int x, int y)
x
- x - coordinate for the cell.y
- y - coordinate for the cell.
public boolean inTable(org.eclipse.swt.graphics.Point p)
public boolean inTable(int x, int y)
x
- the x-coordinate for the pointy
- the y-coordinate for the point
public org.eclipse.swt.graphics.Point getCell(int x, int y)
x
- x - coordinate for the wanted cell.y
- y - coordinate for the wanted cell.
public int getFixedHeaderRowCount()
public int getFixedHeaderColumnCount()
public int getFixedSelectableRowCount()
public int getFixedSelectableColumnCount()
public boolean isColumnResizable(int col)
public int getInitialFirstRowHeight()
getInitialFirstRowHeight
in class de.kupzog.ktable.KTableDefaultModel
public boolean isRowResizable(int row)
public int getRowHeightMinimum()
public int getWidth()
public DogmaResource getResource()
public int getLastVisibleColumn()
public java.lang.String doGetTooltipAt(int col, int row)
doGetTooltipAt
in class de.kupzog.ktable.KTableDefaultModel
public void hideColumn(int col)
col
- The column we want to hide.public void showColumn(int col)
col
- public java.lang.String[][] getUriStringTable()
public java.lang.String getColumnName(int col)
col
- The column for the name we want to get
public void addRow(boolean toFirst)
public int doGetRowCount()
doGetRowCount
in class de.kupzog.ktable.KTableDefaultModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |