org.topbraidcomposer.widgets.row.editors
Class AbstractRowEditor

java.lang.Object
  extended by org.topbraidcomposer.widgets.row.editors.AbstractRowEditor
All Implemented Interfaces:
IStatementProvider, IRowEditor
Direct Known Subclasses:
AbstractComboBoxEditor

public abstract class AbstractRowEditor
extends java.lang.Object
implements IRowEditor


Field Summary
protected  com.hp.hpl.jena.rdf.model.Statement statement
           
 
Constructor Summary
AbstractRowEditor(com.hp.hpl.jena.rdf.model.Statement statement)
           
 
Method Summary
protected  void assign(com.hp.hpl.jena.rdf.model.RDFNode newNode)
           
 com.hp.hpl.jena.rdf.model.Statement getStatement()
           
 com.hp.hpl.jena.rdf.model.Statement[] getStatements()
          Gets the selected statements that can be copied or moved.
 java.lang.String getText()
          Gets the currently edited value as text (for drag-and-drop).
 boolean isDirty()
           
 boolean isReadOnly()
          Checks if the statements are meant to be read-only.
 void updateState()
          Advises the editor to update its display state, e.g.
 
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.row.IRowEditor
addDropDownMenuActions, getControl
 

Field Detail

statement

protected com.hp.hpl.jena.rdf.model.Statement statement
Constructor Detail

AbstractRowEditor

public AbstractRowEditor(com.hp.hpl.jena.rdf.model.Statement statement)
Method Detail

assign

protected void assign(com.hp.hpl.jena.rdf.model.RDFNode newNode)

getStatement

public com.hp.hpl.jena.rdf.model.Statement getStatement()

getStatements

public com.hp.hpl.jena.rdf.model.Statement[] getStatements()
Description copied from interface: IStatementProvider
Gets the selected statements that can be copied or moved.

Specified by:
getStatements in interface IStatementProvider
Returns:
the Statements

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
Returns:
a textual representation or null if there is no suitable text

isDirty

public boolean isDirty()

isReadOnly

public boolean isReadOnly()
Description copied from interface: IStatementProvider
Checks if the statements are meant to be read-only. If a statement provider is read-only, then the drag target should only perform a copy operation instead of a move operation.

Specified by:
isReadOnly in interface IStatementProvider
Returns:
true if this is read-only (such as the basket)

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