|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.refractions.udig.ui.FeatureTableControl
public class FeatureTableControl
A TreeViewer control for viewing a table of Feature attributes.
This object can be created in two ways. The first is using a FeatureReader. This method reads in Features a page at a time and populates the table entries. The page size can be set by calling FeatureTableControl#setPageSize(int).
The second way is using a FeatureCollection. In this case the control hangs on to a reference to the FeatureCollection and populates the table entries directory from it. This method results in a single page containing all features.
TODO: make this a virtual table that only loads the visible region.
| Constructor Summary | |
|---|---|
FeatureTableControl()
Construct FeatureTableControl. |
|
FeatureTableControl(Composite parent,
FeatureCollection features)
Construct a FeatureTableControl. |
|
| Method Summary | |
|---|---|
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
void |
clear()
Don't display nothing :-) |
void |
createTableControl(Composite parent)
Creates the table control. |
protected void |
createTableViewer(Composite parent)
Creates the table control itself. |
Control |
getControl()
Returns the control representing the table control. |
FeatureCollection |
getFeatures()
Contents of the current page of features |
int |
getPageSize()
Returns the number of features viewed in the table per page. |
ISelection |
getSelection()
|
void |
message(java.lang.String text)
|
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
|
void |
setFeatures(FeatureCollection features)
Set up for a single page of content |
void |
setFocus()
Does nothing. |
void |
setPageSize(int resPerPage)
Sets the number of features viewed in the table per page. |
void |
setSelection(ISelection selection)
|
void |
update()
Updates the table control with the current set of features. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureTableControl()
FeatureTableControl.
Must call setFeatures before use.
public FeatureTableControl(Composite parent,
FeatureCollection features)
FeatureTableControl.
fReader - The FeatureReader that returns the actual features.resPerPage - Results per page to be shown in the table.| Method Detail |
|---|
public void setPageSize(int resPerPage)
resPerPage - positive integer.public int getPageSize()
public Control getControl()
public void createTableControl(Composite parent)
parent - The to be parent of the control.public void update()
This method will ensure that the column information gets updated
protected void createTableViewer(Composite parent)
parent - public void setFocus()
org.eclipse.ui.IWorkbenchPart#setFocus()public FeatureCollection getFeatures()
public void setFeatures(FeatureCollection features)
public void clear()
public void message(java.lang.String text)
public void addSelectionChangedListener(ISelectionChangedListener listener)
public ISelection getSelection()
public void removeSelectionChangedListener(ISelectionChangedListener listener)
public void setSelection(ISelection selection)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||