org.topbraidcomposer.widgets
Interface IPropertyWidget

All Superinterfaces:
org.eclipse.ui.forms.IFormPart, IWidget
All Known Implementing Classes:
AbstractPropertyWidget, RowWidget, SortedRowWidget

public interface IPropertyWidget
extends IWidget

An IWidget that displays the values of a given subject/predicate combination.

Author:
Holger Knublauch

Method Summary
 void addEmptyValue()
          Asks the widget to add an "empty" row to hold a new value.
 void expandNested()
           
 com.hp.hpl.jena.rdf.model.Property getPredicate()
           
 void restoreState(IWidgetState state)
          Restores a previously saved state.
 IWidgetState saveState()
          Creates an object that can be used to restore the state of this widget in the future.
 void setPredicate(com.hp.hpl.jena.rdf.model.Property predicate)
           
 void triplesChanged(TripleChangeRecord[] records, boolean undone)
          Called by the container when triples with the current subject/predicate combination have changed.
 
Methods inherited from interface org.topbraidcomposer.widgets.IWidget
getControl, getSubject, setSubject
 
Methods inherited from interface org.eclipse.ui.forms.IFormPart
commit, dispose, initialize, isDirty, isStale, refresh, setFocus, setFormInput
 

Method Detail

addEmptyValue

void addEmptyValue()
Asks the widget to add an "empty" row to hold a new value.


expandNested

void expandNested()

getPredicate

com.hp.hpl.jena.rdf.model.Property getPredicate()

restoreState

void restoreState(IWidgetState state)
Restores a previously saved state.

Parameters:
state - the state to restore (never null)

saveState

IWidgetState saveState()
Creates an object that can be used to restore the state of this widget in the future. This is typically used to remember partially entered values that were not assigned yet, so that they can be continued when the user returns to the corresponding form page.

Returns:
a state or null if no state information are needed

setPredicate

void setPredicate(com.hp.hpl.jena.rdf.model.Property predicate)

triplesChanged

void triplesChanged(TripleChangeRecord[] records,
                    boolean undone)
Called by the container when triples with the current subject/predicate combination have changed.

Parameters:
records - the records describing the change
undone - true if the records have been undone