Protege 4.1.0

org.protege.editor.owl.ui.frame
Class AbstractOWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

java.lang.Object
  extended by org.protege.editor.owl.ui.frame.AbstractOWLFrameSectionRow<R,A,E>
All Implemented Interfaces:
MListItem, OWLObjectEditorHandler<E>, OWLFrameObject<R,A,E>, OWLFrameSectionRow<R,A,E>
Direct Known Subclasses:
AbstractPropertyDomainFrameSectionRow, AxiomListFrameSectionRow, InferredAxiomsFrameSectionRow, InheritedAnonymousClassesFrameSectionRow, OWLAnnotationPropertyDomainFrameSectionRow, OWLAnnotationPropertyRangeFrameSectionRow, OWLAnnotationsFrameSectionRow, OWLClassAssertionAxiomMembersSectionRow, OWLClassAssertionAxiomTypeFrameSectionRow, OWLDataPropertyAssertionAxiomFrameSectionRow, OWLDataPropertyRangeFrameSectionRow, OWLDatatypeDefinitionFrameSectionRow, OWLDifferentIndividualAxiomFrameSectionRow, OWLDisjointClassesAxiomFrameSectionRow, OWLDisjointDataPropertiesFrameSectionRow, OWLDisjointObjectPropertiesAxiomFrameSectionRow, OWLDisjointUnionAxiomFrameSectionRow, OWLEquivalentClassesAxiomFrameSectionRow, OWLEquivalentDataPropertiesFrameSectionRow, OWLEquivalentObjectPropertiesAxiomFrameSectionRow, OWLGeneralClassAxiomFrameSectionRow, OWLInverseObjectPropertiesAxiomFrameSectionRow, OWLKeyAxiomFrameSectionRow, OWLNegativeDataPropertyAssertionFrameSectionRow, OWLNegativeObjectPropertyAssertionFrameSectionRow, OWLObjectPropertyAssertionAxiomFrameSectionRow, OWLObjectPropertyRangeFrameSectionRow, OWLPropertyChainAxiomFrameSectionRow, OWLSameIndividualsAxiomFrameSectionRow, OWLSubAnnotationPropertyFrameSectionRow, OWLSubClassAxiomFrameSectionRow, OWLSubDataPropertyAxiomSuperPropertyFrameSectionRow, OWLSubObjectPropertyAxiomSuperPropertyFrameSectionRow, SWRLRuleFrameSectionRow

public abstract class AbstractOWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>
extends Object
implements OWLFrameSectionRow<R,A,E>, OWLObjectEditorHandler<E>

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 19-Jan-2007


Field Summary
protected  A axiom
           
static String DEFAULT_DELIMETER
           
static String DEFAULT_PREFIX
           
static String DEFAULT_SUFFIX
           
 
Constructor Summary
protected AbstractOWLFrameSectionRow(OWLEditorKit owlEditorKit, OWLFrameSection<R,A,E> section, org.semanticweb.owlapi.model.OWLOntology ontology, R rootObject, A axiom)
           
 
Method Summary
 boolean canAcceptDrop(List<org.semanticweb.owlapi.model.OWLObject> objects)
           
 boolean checkEditorResults(OWLObjectEditor<E> editor)
           
protected abstract  A createAxiom(E editedObject)
           
 boolean dropObjects(List<org.semanticweb.owlapi.model.OWLObject> objects)
           
 List<MListButton> getAdditionalButtons()
           
 A getAxiom()
          Gets the object that the row holds.
 List<? extends org.semanticweb.owlapi.model.OWLOntologyChange> getDeletionChanges()
          Deletes this row.
 String getDelimeter()
           
 OWLObjectEditor<E> getEditor()
           
 OWLFrameSection<R,A,E> getFrameSection()
          Gets the frame section which this row belongs to.
protected abstract  OWLObjectEditor<E> getObjectEditor()
           
protected  Object getObjectRendering(org.semanticweb.owlapi.model.OWLObject ob)
           
 org.semanticweb.owlapi.model.OWLOntology getOntology()
          This row represents an assertion in a particular ontology.
 org.semanticweb.owlapi.model.OWLDataFactory getOWLDataFactory()
           
 OWLEditorKit getOWLEditorKit()
           
 OWLModelManager getOWLModelManager()
           
 org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
           
 String getPrefix()
           
 String getRendering()
          Gets the rendering of the value of a particular column.
 R getRoot()
          Gets the root object of the frame that this row belongs to.
 R getRootObject()
           
 String getSuffix()
           
 String getTooltip()
           
 Object getUserObject()
          Default implementation which returns null
 boolean handleDelete()
           
 void handleEdit()
           
 void handleEditingFinished(Set<E> editedObjects)
           
 boolean isDeleteable()
           
 boolean isEditable()
          Determines if this row is editable.
 boolean isFixedHeight()
           
 boolean isInferred()
           
 void setUserObject(Object object)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.protege.editor.owl.ui.frame.OWLFrameSectionRow
getManipulatableObjects
 

Field Detail

DEFAULT_DELIMETER

public static final String DEFAULT_DELIMETER
See Also:
Constant Field Values

DEFAULT_PREFIX

public static final String DEFAULT_PREFIX
See Also:
Constant Field Values

DEFAULT_SUFFIX

public static final String DEFAULT_SUFFIX
See Also:
Constant Field Values

axiom

protected A extends org.semanticweb.owlapi.model.OWLAxiom axiom
Constructor Detail

AbstractOWLFrameSectionRow

protected AbstractOWLFrameSectionRow(OWLEditorKit owlEditorKit,
                                     OWLFrameSection<R,A,E> section,
                                     org.semanticweb.owlapi.model.OWLOntology ontology,
                                     R rootObject,
                                     A axiom)
Method Detail

getFrameSection

public OWLFrameSection<R,A,E> getFrameSection()
Description copied from interface: OWLFrameSectionRow
Gets the frame section which this row belongs to.

Specified by:
getFrameSection in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

getRootObject

public R getRootObject()

getUserObject

public Object getUserObject()
Default implementation which returns null

Specified by:
getUserObject in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

setUserObject

public void setUserObject(Object object)
Specified by:
setUserObject in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

isFixedHeight

public boolean isFixedHeight()

getEditor

public final OWLObjectEditor<E> getEditor()
Specified by:
getEditor in interface OWLFrameObject<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

getObjectEditor

protected abstract OWLObjectEditor<E> getObjectEditor()

checkEditorResults

public boolean checkEditorResults(OWLObjectEditor<E> editor)
Specified by:
checkEditorResults in interface OWLFrameObject<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

handleEditingFinished

public void handleEditingFinished(Set<E> editedObjects)
Specified by:
handleEditingFinished in interface OWLObjectEditorHandler<E>

createAxiom

protected abstract A createAxiom(E editedObject)

getOntology

public org.semanticweb.owlapi.model.OWLOntology getOntology()
This row represents an assertion in a particular ontology. This gets the ontology that the assertion belongs to.

Specified by:
getOntology in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

getOWLModelManager

public OWLModelManager getOWLModelManager()

getOWLDataFactory

public org.semanticweb.owlapi.model.OWLDataFactory getOWLDataFactory()

getOWLOntologyManager

public org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
Specified by:
getOWLOntologyManager in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

getOWLEditorKit

public OWLEditorKit getOWLEditorKit()

getRoot

public R getRoot()
Gets the root object of the frame that this row belongs to.

Specified by:
getRoot in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

getAxiom

public A getAxiom()
Gets the object that the row holds.

Specified by:
getAxiom in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

canAcceptDrop

public boolean canAcceptDrop(List<org.semanticweb.owlapi.model.OWLObject> objects)
Specified by:
canAcceptDrop in interface OWLFrameObject<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

dropObjects

public boolean dropObjects(List<org.semanticweb.owlapi.model.OWLObject> objects)
Specified by:
dropObjects in interface OWLFrameObject<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

getTooltip

public String getTooltip()
Specified by:
getTooltip in interface MListItem

toString

public String toString()
Overrides:
toString in class Object

getDeletionChanges

public List<? extends org.semanticweb.owlapi.model.OWLOntologyChange> getDeletionChanges()
Deletes this row. This will alter the underlying model of which this row is a representation. This method should not be called if the isEditable method returns false.

Specified by:
getDeletionChanges in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

isEditable

public boolean isEditable()
Determines if this row is editable. If a row is editable then it may be deleted/removed and column values may be edited.

Specified by:
isEditable in interface MListItem
Specified by:
isEditable in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>
Returns:
true if the row is editable, false if the row is not editable.

getPrefix

public String getPrefix()

getDelimeter

public String getDelimeter()

getSuffix

public String getSuffix()

getObjectRendering

protected Object getObjectRendering(org.semanticweb.owlapi.model.OWLObject ob)

isInferred

public boolean isInferred()
Specified by:
isInferred in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

getRendering

public String getRendering()
Gets the rendering of the value of a particular column.

Returns:
The String representation of the column value.

isDeleteable

public boolean isDeleteable()
Specified by:
isDeleteable in interface MListItem
Specified by:
isDeleteable in interface OWLFrameSectionRow<R,A extends org.semanticweb.owlapi.model.OWLAxiom,E>

handleEdit

public void handleEdit()
Specified by:
handleEdit in interface MListItem

handleDelete

public boolean handleDelete()
Specified by:
handleDelete in interface MListItem

getAdditionalButtons

public List<MListButton> getAdditionalButtons()

Protege 4.1.0

Submit a bug report or feature request

For further API reference and developer documentation, see Protege 4 Developer Documentation.

Copyright © 2010 Stanford Center for Biomedical Informatics Research