|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.stanford.smi.protege.widget.AbstractWidget
edu.stanford.smi.protege.widget.AbstractSlotWidget
edu.stanford.smi.protegex.owl.ui.widget.AbstractPropertyWidget
edu.stanford.smi.protegex.owl.ui.metadata.AnnotationTextAreaWidget
A property widget that can be used to edit a value of a (multi-valued) annotation property. This is usually used in conjunction with the AnnotationsWidget: The currently selected Annotation property is activated here, so that the user can edit and view the value in a multi-line editor.
Nested Class Summary |
Nested classes inherited from class edu.stanford.smi.protege.widget.AbstractSlotWidget |
|
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private RDFProperty |
annotationProperty
The currently edited annotation property (default: rdfs:comment) |
private Action |
editHTMLAction
|
private OWLLabeledComponent |
labeledComponent
|
private Object |
oldValue
|
private JTextArea |
textArea
|
private PropertyValueListener |
valueListener
|
Fields inherited from class edu.stanford.smi.protege.widget.AbstractSlotWidget |
|
Fields inherited from class edu.stanford.smi.protege.widget.AbstractWidget |
|
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
AnnotationTextAreaWidget()
|
Method Summary | |
private void |
assignCurrentValue()
|
private void |
assignValue(String text,
RDFResource instance)
|
void |
dispose()
|
private void |
editAsHTML()
|
void |
initialize()
|
static boolean |
isSuitable(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Slot slot,
edu.stanford.smi.protege.model.Facet facet)
|
void |
resetEditedValue()
|
void |
setEditedValue(OWLDatatypeProperty property,
String value,
String language,
Object v)
|
private void |
setEditedValueInternal(OWLDatatypeProperty property,
String value,
String language,
Object v)
|
void |
setInstance(edu.stanford.smi.protege.model.Instance newInstance)
|
private void |
unregisterFrameListener()
|
Methods inherited from class edu.stanford.smi.protegex.owl.ui.widget.AbstractPropertyWidget |
getEditedResource, getInstance, getOWLModel, getRDFProperty, getSlot, updateBorder |
Methods inherited from class edu.stanford.smi.protege.widget.AbstractSlotWidget |
addButtonConfiguration, addButtonConfiguration, allowsMultipleValues, areDirectValues, configure, createWidgetConfigurationPanel, displayButton, displayButton, getAssociatedCls, getButtonDescription, getCls, getClsWidget, getDefaultLabel, getDefaultToolTip, getDoubleClickAction, getFirstItem, getInvalidValueText, getLabel, getMaximumCardinality, getMinimumCardinality, getPreferredSize, getSelectionBorderSize, getValues, handleDoubleClick, isDirectValue, isSlotAtCls, loadValues, localizeStandardLabel, reshape, setAllowed, setAssociatedCls, setCls, setDefaultToolTip, setDoubleClickListener, setEditable, setInstanceValues, setInvalidValueBorder, setNormalBorder, setPreferredColumns, setPreferredRows, setPreferredSize, setSelectedBorder, setSelectedBorder, setShowInstanceListener, setSlot, setup, setValues, setWidgetValues, showInstance, valueChanged |
Methods inherited from class edu.stanford.smi.protege.widget.AbstractWidget |
addSelectionListener, beginTransaction, clearSelection, endTransaction, equals, getDescriptor, getKnowledgeBase, getProject, getPropertyList, getSelection, getStringProperty, isDesignTime, isRuntime, notifySelectionListeners, paint, removeSelectionListener, setLabel, setPropertyList, setup, show |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protege.widget.SlotWidget |
getAssociatedCls, getCls, getDefaultToolTip, setAssociatedCls, setDefaultToolTip, setup |
Methods inherited from interface edu.stanford.smi.protege.widget.Widget |
configure, getDescriptor, getKnowledgeBase, getLabel, getProject, setLabel |
Methods inherited from interface edu.stanford.smi.protege.util.Selectable |
addSelectionListener, clearSelection, getSelection, notifySelectionListeners, removeSelectionListener |
Methods inherited from interface edu.stanford.smi.protege.plugin.Plugin |
getName |
Field Detail |
private RDFProperty annotationProperty
private Action editHTMLAction
private PropertyValueListener valueListener
private OWLLabeledComponent labeledComponent
private Object oldValue
private JTextArea textArea
Constructor Detail |
public AnnotationTextAreaWidget()
Method Detail |
private void assignCurrentValue()
private void assignValue(String text, RDFResource instance)
public void dispose()
private void editAsHTML()
public void initialize()
public static boolean isSuitable(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Slot slot, edu.stanford.smi.protege.model.Facet facet)
public void resetEditedValue()
public void setEditedValue(OWLDatatypeProperty property, String value, String language, Object v)
private void setEditedValueInternal(OWLDatatypeProperty property, String value, String language, Object v)
public void setInstance(edu.stanford.smi.protege.model.Instance newInstance)
private void unregisterFrameListener()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |