net.refractions.udig.tool.select
Class TableView

java.lang.Object
  extended by ViewPart
      extended by net.refractions.udig.tool.select.TableView

public class TableView
extends ViewPart

Table view for selected Layer, may choose to display FeatureSource with out supporting selection in the future.

Currently this is a playground using the FeatureTable to look at a FeautreSource, syncing up the slection with the Layer's filter will come next.

Long term responsibilities include:

Since:
0.6
Author:
Jody Garnett, Refractions Research, Inc.

Field Summary
protected  boolean filterChange
          Indicates that the selection filter has changed while inactive
protected  boolean reloadNeeded
          Indicates that the features in the view need to be reloaded when the view is visible again.
protected  boolean updatingLayerFilter
          Indicates that the view is updating the layer's filter because the selection on the table has changed.
 
Constructor Summary
TableView()
          Construct SelectView.
 
Method Summary
protected  void activate()
           
 void createPartControl(Composite parent)
           
protected  void deactivate()
           
 void dispose()
           
protected  void editorActivated(MapEditor editor)
          Watch current editor to indicate current selectable layers.
protected  void reloadFeatures(ILayer notifierLayer)
           
 void setFocus()
           
protected  void updateSelection(ILayer notifierLayer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reloadNeeded

protected volatile boolean reloadNeeded
Indicates that the features in the view need to be reloaded when the view is visible again.


filterChange

protected volatile boolean filterChange
Indicates that the selection filter has changed while inactive


updatingLayerFilter

protected volatile boolean updatingLayerFilter
Indicates that the view is updating the layer's filter because the selection on the table has changed.

Constructor Detail

TableView

public TableView()
Construct SelectView.

Don't do setup here - there is an init method you can override that has access to configuration and stuff.

Method Detail

createPartControl

public void createPartControl(Composite parent)

activate

protected void activate()

deactivate

protected void deactivate()

editorActivated

protected void editorActivated(MapEditor editor)
Watch current editor to indicate current selectable layers.

Parameters:
editor -

setFocus

public void setFocus()

dispose

public void dispose()

updateSelection

protected void updateSelection(ILayer notifierLayer)

reloadFeatures

protected void reloadFeatures(ILayer notifierLayer)