org.topbraidcomposer.widgets
Interface IWidget

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

public interface IWidget
extends org.eclipse.ui.forms.IFormPart

A part of a resource form. Widgets are typically used to edit values of a predicate for a given subject. This interface extends IFormPart and implementations should follow the usual life cycle of an IFormPart within a ManagedForm.

Author:
Holger Knublauch

Method Summary
 org.eclipse.swt.widgets.Control getControl()
          Gets the visual Control represented by this widget.
 com.hp.hpl.jena.rdf.model.Resource getSubject()
          Gets the subject that is currently assigned to this.
 void setSubject(com.hp.hpl.jena.rdf.model.Resource subject)
          Notifies this that the subject has changed.
 
Methods inherited from interface org.eclipse.ui.forms.IFormPart
commit, dispose, initialize, isDirty, isStale, refresh, setFocus, setFormInput
 

Method Detail

getControl

org.eclipse.swt.widgets.Control getControl()
Gets the visual Control represented by this widget.

Returns:
the Control or null if it has not been initialized yet

getSubject

com.hp.hpl.jena.rdf.model.Resource getSubject()
Gets the subject that is currently assigned to this.

Returns:
the subject

setSubject

void setSubject(com.hp.hpl.jena.rdf.model.Resource subject)
Notifies this that the subject has changed.

Parameters:
subject - the new subject