Protege-2000 1.7

edu.stanford.smi.protegex.queries_tab.toolbox
Class FloatSlotValueWidget

java.lang.Object
  |
  +--edu.stanford.smi.protegex.queries_tab.AbstractSlotValueWidget
        |
        +--edu.stanford.smi.protegex.queries_tab.toolbox.FloatSlotValueWidget
All Implemented Interfaces:
SlotValueWidget

public class FloatSlotValueWidget
extends AbstractSlotValueWidget


Inner classes inherited from class edu.stanford.smi.protegex.queries_tab.AbstractSlotValueWidget
AbstractSlotValueWidget.SlotValueWidgetMouse
 
Fields inherited from class edu.stanford.smi.protegex.queries_tab.AbstractSlotValueWidget
_validator, constraints, FIELDHEIGHT, FIELDWIDTH, isViewEnabled, itsInstances, itsSlot, itsTab, itsWidget, label, project, selection, slotName, specification, visible
 
Fields inherited from interface edu.stanford.smi.protegex.queries_tab.SlotValueWidget
HEIGHT, WIDTH
 
Constructor Summary
FloatSlotValueWidget(SearchWidget widget)
          Constructor.
FloatSlotValueWidget(SearchWidget widget, String label, String slot)
          Constructor with label, slot, and actions.
 
Method Summary
 JComponent getComponent()
          Return the relation display component.
 Object[] getData()
          Get the data from the text area and return it as a string array.
 String[] getSelectedItems()
          Get the selected string in text area and return them as a string array.
 Object getSelectedObject()
          Get the selected object which is a string for float slot.
 edu.stanford.smi.protege.widget.AbstractTemplateSlotNumberValidator getValidator()
           
 JComponent getWidget()
          Return the embedded widget in the relation display, the JTextArea.
 boolean isSlotSingleValued()
          Set the slot not a single value slot.
 Collection search()
          For the formed search result, change the format.
 Collection search(Collection instances, edu.stanford.smi.protege.model.Slot slot, String operation, Object obj)
          This is used to call for the Query settings.
 Collection search(Collection instances, String constraint, edu.stanford.smi.protege.model.Slot slot)
           
 void setData(Object[] data)
          Set the specified string to the text area.
 void setSelectedObject(Object obj)
          Set the displayed selected object.
 
Methods inherited from class edu.stanford.smi.protegex.queries_tab.AbstractSlotValueWidget
doTask, getKB, getLabel, getNorthComponent, getProject, getSlotName, getTab, initialized, isComplete, isViewEnabled, isVisible, removeListener, removeMouse, setActionsEnabled, setCls, setDisplayName, setInstances, setProject, setSlotName, setSpecification, setViewEnabled, setVisible, viewObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatSlotValueWidget

public FloatSlotValueWidget(SearchWidget widget)
Constructor.

FloatSlotValueWidget

public FloatSlotValueWidget(SearchWidget widget,
                            String label,
                            String slot)
Constructor with label, slot, and actions.
Method Detail

getComponent

public JComponent getComponent()
Return the relation display component.

getData

public Object[] getData()
Get the data from the text area and return it as a string array.

getSelectedItems

public String[] getSelectedItems()
Get the selected string in text area and return them as a string array.
Overrides:
getSelectedItems in class AbstractSlotValueWidget

getSelectedObject

public Object getSelectedObject()
Get the selected object which is a string for float slot.

getValidator

public edu.stanford.smi.protege.widget.AbstractTemplateSlotNumberValidator getValidator()

getWidget

public JComponent getWidget()
Return the embedded widget in the relation display, the JTextArea.

isSlotSingleValued

public boolean isSlotSingleValued()
Set the slot not a single value slot.
Overrides:
isSlotSingleValued in class AbstractSlotValueWidget

search

public Collection search()
Description copied from class: AbstractSlotValueWidget
For the formed search result, change the format.
Overrides:
search in class AbstractSlotValueWidget

search

public Collection search(Collection instances,
                         edu.stanford.smi.protege.model.Slot slot,
                         String operation,
                         Object obj)
                  throws NumberFormatException
Description copied from interface: SlotValueWidget
This is used to call for the Query settings.

search

public Collection search(Collection instances,
                         String constraint,
                         edu.stanford.smi.protege.model.Slot slot)

setData

public void setData(Object[] data)
Set the specified string to the text area.

setSelectedObject

public void setSelectedObject(Object obj)
Description copied from interface: SlotValueWidget
Set the displayed selected object.

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.