com.ibm.jdg2e.msseditor.ui.outline
Class MiniSSOutlineContentProvider

java.lang.Object
  extended bycom.ibm.jdg2e.msseditor.ui.outline.MiniSSOutlineContentProvider
All Implemented Interfaces:
org.eclipse.jface.viewers.IContentProvider, IMiniSSListener, org.eclipse.jface.viewers.IStructuredContentProvider, org.eclipse.jface.viewers.ITreeContentProvider

public class MiniSSOutlineContentProvider
extends java.lang.Object
implements org.eclipse.jface.viewers.ITreeContentProvider, IMiniSSListener

Provides mini-spreadsheet editor with content for the standard Outline view.


Constructor Summary
MiniSSOutlineContentProvider()
           
 
Method Summary
 void dispose()
           
 java.lang.Object[] getChildren(java.lang.Object parentElement)
           
 java.lang.Object[] getElements(java.lang.Object inputElement)
           
 java.lang.Object getParent(java.lang.Object element)
           
 boolean hasChildren(java.lang.Object element)
           
 void inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
          When the input changes, re-establish model change listening.
 void rowsChanged(MiniSS mss)
          Notification of a rows modification; the change is significant enough that a delta is not included in the notification, i.e., the receiver should assume that all rows may have changed.
 void valueChanged(MiniSS mss, int row, int column, java.lang.String newValue)
          Notification of a cell modification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiniSSOutlineContentProvider

public MiniSSOutlineContentProvider()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.viewers.IContentProvider

getChildren

public java.lang.Object[] getChildren(java.lang.Object parentElement)
Specified by:
getChildren in interface org.eclipse.jface.viewers.ITreeContentProvider

getElements

public java.lang.Object[] getElements(java.lang.Object inputElement)
Specified by:
getElements in interface org.eclipse.jface.viewers.IStructuredContentProvider

getParent

public java.lang.Object getParent(java.lang.Object element)
Specified by:
getParent in interface org.eclipse.jface.viewers.ITreeContentProvider

hasChildren

public boolean hasChildren(java.lang.Object element)
Specified by:
hasChildren in interface org.eclipse.jface.viewers.ITreeContentProvider

inputChanged

public void inputChanged(org.eclipse.jface.viewers.Viewer viewer,
                         java.lang.Object oldInput,
                         java.lang.Object newInput)
When the input changes, re-establish model change listening.

Specified by:
inputChanged in interface org.eclipse.jface.viewers.IContentProvider
See Also:
IContentProvider.inputChanged(Viewer, Object, Object)

rowsChanged

public void rowsChanged(MiniSS mss)
Description copied from interface: IMiniSSListener
Notification of a rows modification; the change is significant enough that a delta is not included in the notification, i.e., the receiver should assume that all rows may have changed.

Specified by:
rowsChanged in interface IMiniSSListener

valueChanged

public void valueChanged(MiniSS mss,
                         int row,
                         int column,
                         java.lang.String newValue)
Description copied from interface: IMiniSSListener
Notification of a cell modification.

Specified by:
valueChanged in interface IMiniSSListener
Parameters:
mss - changed MiniSS
row - row index (0-based)
column - column index (0-based)
newValue - new string value of changed cell