|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtj.ui.viewers.TableViewerConfiguration
public class TableViewerConfiguration
Instances of this class provide necessary configuration information for making a fully-functional table viewer with sortable columns.
| Constructor Summary | |
|---|---|
TableViewerConfiguration(IDialogSettings dialogSettings,
int defaultTableWidth,
TableColumnInfo[] columnInfo,
int defaultSortColumn)
Construct new viewer information with storage in the specified location. |
|
| Method Summary | |
|---|---|
void |
configure(TableViewer viewer)
Configure the table viewer and all related listeners based on this table viewer information. |
TableColumnInfo[] |
getColumnInfo()
|
IDialogSettings |
getDialogSettings()
|
int |
getSortColumn()
Return the index of the current column to be sorted. |
boolean |
getSortDirectionAscending()
Return a boolean indicating whether or not the current sort direction is ascending. |
void |
setColumnInfo(TableColumnInfo[] columnInfo)
|
void |
setDialogSettings(IDialogSettings dialogSettings)
|
void |
setSortColumn(int columnIndex)
Set the index of the current column to be sorted. |
void |
setSortDirectionAscending(boolean ascending)
Return a boolean indicating whether or not the current sort direction is ascending. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableViewerConfiguration(IDialogSettings dialogSettings,
int defaultTableWidth,
TableColumnInfo[] columnInfo,
int defaultSortColumn)
dialogSettings - columnInfo - | Method Detail |
|---|
public void configure(TableViewer viewer)
viewer - public TableColumnInfo[] getColumnInfo()
public IDialogSettings getDialogSettings()
public int getSortColumn()
public boolean getSortDirectionAscending()
public void setColumnInfo(TableColumnInfo[] columnInfo)
columnInfo - The columnInfo to set.public void setDialogSettings(IDialogSettings dialogSettings)
dialogSettings - The dialogSettings to set.public void setSortColumn(int columnIndex)
columnIndex - public void setSortDirectionAscending(boolean ascending)
ascending -
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||