|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.project.ui.controls.FeatureTableControl
public class FeatureTableControl
A TreeViewer control for viewing a table of SimpleFeature 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 DefaultFeatureCollection. In this case the control hangs on to a reference to the DefaultFeatureCollection and populates the table entries directory from it. This method results in a single page containing all features.
TODO: Create next and first action
Constructor Summary | |
---|---|
FeatureTableControl()
Construct FeatureTableControl . |
|
FeatureTableControl(
Construct a FeatureTableControl . |
|
FeatureTableControl(DefaultFeatureCollection features)
Construct FeatureTableControl . |
Method Summary | |
---|---|
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. |
java.util.List<SimpleFeature> |
getFeatures()
Contents of the current page of features |
int |
getPageSize()
Returns the number of features viewed in the table per page. |
TableViewer |
getTableViewer()
The TableViewer used is returned... |
void |
next()
Moves the control to the next page of features. |
protected void |
nextInternal()
Moves the control to the next page of features. |
void |
reset()
Reset to start of FeatureResutls |
void |
setFeatures(
Set up for a one time only paged access |
void |
setFocus()
Does nothing. |
void |
setPageSize(int resPerPage)
Sets the number of features viewed in the table per page. |
void |
update()
Updates the table control with the current set of features. |
protected void |
updateTable()
Updates the table by adding/removing columns. |
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(DefaultFeatureCollection features)
FeatureTableControl
.
features
- The DefaultFeatureCollection containing the features to be displayed.public FeatureTableControl(fReader, int resPerPage)
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()
Control
public void createTableControl(Composite parent)
parent
- The to be parent of the control.Composite
public void next()
org.geotools.data.FeatureReader
.
protected void nextInternal()
public void update()
This method will ensure that the column information gets updated
protected void updateTable()
protected void createTableViewer(Composite parent)
parent
- Makes A TableViewer which diplays the features.Composite
public TableViewer getTableViewer()
public void setFocus()
org.eclipse.ui.IWorkbenchPart#setFocus()
public java.util.List<SimpleFeature> getFeatures()
DefaultFeatureCollection
public void setFeatures(reader)
reader
- API should this throw exceptions? the answer also potentially propagates
the issue and the question ... API is there a memory issue here?
public void reset()
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |