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 static java.lang.String ANY
           
protected  boolean editing
          Indicates that the a feature is being updated by the table view so it is not necessary to load the change indicated by the feature event.
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 addSelectionChangedListener(ISelectionChangedListener listener)
           
 void createPartControl(Composite parent)
           
protected  void deactivate()
           
 void dispose()
           
 void editFeatureChanged(Feature feature)
           
protected  void editorActivated(MapPart editor)
          Watch current editor to indicate current selectable layers.
 IToolContext getContext()
           
 ISelection getSelection()
           
protected  void reloadFeatures(ILayer notifierLayer)
           
 void removeSelectionChangedListener(ISelectionChangedListener listener)
           
 void setContext(IToolContext newContext)
           
 void setFocus()
           
 void setSelection(ISelection selection)
           
protected  void updateSelection(ILayer notifierLayer)
           
protected  void updateTable(ILayer notifierLayer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

protected static final java.lang.String ANY

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


editing

protected volatile boolean editing
Indicates that the a feature is being updated by the table view so it is not necessary to load the change indicated by the feature event.


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(MapPart 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)

updateTable

protected void updateTable(ILayer notifierLayer)

reloadFeatures

protected void reloadFeatures(ILayer notifierLayer)

addSelectionChangedListener

public void addSelectionChangedListener(ISelectionChangedListener listener)

getSelection

public ISelection getSelection()

removeSelectionChangedListener

public void removeSelectionChangedListener(ISelectionChangedListener listener)

setSelection

public void setSelection(ISelection selection)

editFeatureChanged

public void editFeatureChanged(Feature feature)

getContext

public IToolContext getContext()

setContext

public void setContext(IToolContext newContext)