org.topbraidcomposer.widgets.row.composite
Class SortedRowWidget

java.lang.Object
  extended by org.eclipse.ui.forms.AbstractFormPart
      extended by org.topbraidcomposer.widgets.AbstractWidget
          extended by org.topbraidcomposer.widgets.AbstractPropertyWidget
              extended by org.topbraidcomposer.widgets.row.RowWidget
                  extended by org.topbraidcomposer.widgets.row.composite.SortedRowWidget
All Implemented Interfaces:
org.eclipse.ui.forms.IFormPart, IChangeEngineListener, IPropertyWidget, IWidget

public class SortedRowWidget
extends RowWidget
implements IChangeEngineListener

Sorts the rows of the row widget with respect to composite:index

Author:
Gokhan H. Soydan

Constructor Summary
SortedRowWidget(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit)
           
 
Method Summary
 void changeOperationPerformed(ChangeOperation operation, boolean undone)
          Picks only [index property] operations, where [index property] is a subclass of composite:index and the subject(s) of the operation records is/are the composite child(ren) of the parent in this row widget.
 void dispose()
           
 java.util.List<com.hp.hpl.jena.graph.Node> getObjectsAsNode()
           
 void graphChangePerformed()
          Notifies the receiver that a global change to the current model has been performed.
 void graphDirty(com.hp.hpl.jena.graph.Graph graph)
          Called when a Graph has been set to dirty.
 void sortedRowWidgetTriplesChanged(TripleChangeRecord[] sortedRowWidgetRecords, boolean undone)
          Sorts the children with respect to their indices
 
Methods inherited from class org.topbraidcomposer.widgets.row.RowWidget
addDropDownMenuActions, addEmptyRow, addEmptyValue, addRow, addToolBarContributions, compareObjects, createClient, createHeaderDropListener, expandNested, expandNestedForm, getEmptyRow, getMaxRowCount, getRow, getRow, getStatements, initialize, removeEmptyRow, restoreState, saveState, triplesChanged, triplesChanged, updateBackgroundColor
 
Methods inherited from class org.topbraidcomposer.widgets.AbstractPropertyWidget
createClientLayout, getControl, getHeader, getHeaderText, getNameLabel, getPredicate, setPredicate
 
Methods inherited from class org.topbraidcomposer.widgets.AbstractWidget
getSubject, getToolkit, setSubject
 
Methods inherited from class org.eclipse.ui.forms.AbstractFormPart
commit, getManagedForm, isDirty, isStale, markDirty, markStale, refresh, setFocus, setFormInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.topbraidcomposer.widgets.IWidget
getSubject, setSubject
 
Methods inherited from interface org.eclipse.ui.forms.IFormPart
commit, isDirty, isStale, refresh, setFocus, setFormInput
 

Constructor Detail

SortedRowWidget

public SortedRowWidget(org.eclipse.swt.widgets.Composite parent,
                       org.eclipse.ui.forms.widgets.FormToolkit toolkit)
Method Detail

sortedRowWidgetTriplesChanged

public void sortedRowWidgetTriplesChanged(TripleChangeRecord[] sortedRowWidgetRecords,
                                          boolean undone)
Sorts the children with respect to their indices


changeOperationPerformed

public void changeOperationPerformed(ChangeOperation operation,
                                     boolean undone)
Picks only [index property] operations, where [index property] is a subclass of composite:index and the subject(s) of the operation records is/are the composite child(ren) of the parent in this row widget.

Specified by:
changeOperationPerformed in interface IChangeEngineListener
Parameters:
operation - the ModelOperation that was executed, redone or undone
undone - true if the operation has been undone

getObjectsAsNode

public java.util.List<com.hp.hpl.jena.graph.Node> getObjectsAsNode()

graphChangePerformed

public void graphChangePerformed()
Description copied from interface: IChangeEngineListener
Notifies the receiver that a global change to the current model has been performed. This is typically called when new sub-Graphs have been added or removed, allowing the receiver to do a complete refresh.

Specified by:
graphChangePerformed in interface IChangeEngineListener

graphDirty

public void graphDirty(com.hp.hpl.jena.graph.Graph graph)
Description copied from interface: IChangeEngineListener
Called when a Graph has been set to dirty.

Specified by:
graphDirty in interface IChangeEngineListener
Parameters:
graph - the Graph that has changed

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.forms.IFormPart
Overrides:
dispose in class AbstractPropertyWidget