org.topbraidcomposer.widgets.row.editors
Class LiteralEditor

java.lang.Object
  extended by org.topbraidcomposer.widgets.row.editors.AbstractTextRowEditor
      extended by org.topbraidcomposer.widgets.row.editors.LiteralEditor
All Implemented Interfaces:
IStatementProvider, ITextRowEditor, IAssignableRowEditor, IRowEditor

public class LiteralEditor
extends AbstractTextRowEditor


Field Summary
static java.lang.String datatypeURI
           
 
Constructor Summary
LiteralEditor(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit, com.hp.hpl.jena.rdf.model.Statement statement, IRowEditorCallback callback)
           
 
Method Summary
protected  AbstractEditorText createEditorText(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit, com.hp.hpl.jena.rdf.model.Statement statement)
           
 java.lang.String getText()
          Gets the currently edited value as text (for drag-and-drop).
 void updateState()
          Advises the editor to update its display state, e.g.
 
Methods inherited from class org.topbraidcomposer.widgets.row.editors.AbstractTextRowEditor
addDropDownMenuActions, assign, getControl, getStatement, getStatements, isAssignable, isDirty, isReadOnly, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datatypeURI

public static java.lang.String datatypeURI
Constructor Detail

LiteralEditor

public LiteralEditor(org.eclipse.swt.widgets.Composite parent,
                     org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                     com.hp.hpl.jena.rdf.model.Statement statement,
                     IRowEditorCallback callback)
Method Detail

createEditorText

protected AbstractEditorText createEditorText(org.eclipse.swt.widgets.Composite parent,
                                              org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                                              com.hp.hpl.jena.rdf.model.Statement statement)
Specified by:
createEditorText in class AbstractTextRowEditor

getText

public java.lang.String getText()
Description copied from interface: IRowEditor
Gets the currently edited value as text (for drag-and-drop).

Specified by:
getText in interface IRowEditor
Overrides:
getText in class AbstractTextRowEditor
Returns:
a textual representation or null if there is no suitable text

updateState

public void updateState()
Description copied from interface: IRowEditor
Advises the editor to update its display state, e.g. to change the background color or icon.

Specified by:
updateState in interface IRowEditor
Overrides:
updateState in class AbstractTextRowEditor