|
Protege 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.queries_tab.AbstractSlotValueWidget
edu.stanford.smi.protegex.queries_tab.toolbox.AbstractListValueWidget
edu.stanford.smi.protegex.queries_tab.toolbox.ClassSelectWidget
public class ClassSelectWidget
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.stanford.smi.protegex.queries_tab.AbstractSlotValueWidget |
---|
AbstractSlotValueWidget.SlotValueWidgetMouse |
Field Summary |
---|
Fields inherited from class edu.stanford.smi.protegex.queries_tab.toolbox.AbstractListValueWidget |
---|
currentValue, instanceSlot, itsComp, itsInstance, itsKBListener, itsList, itsRemoveAction, itsSelectAction, itsViewAction, slotValueListMouse, theComparator |
Fields inherited from class edu.stanford.smi.protegex.queries_tab.AbstractSlotValueWidget |
---|
_validator, constraints, FIELDHEIGHT, FIELDWIDTH, isViewEnabled, itsInstances, itsSlot, itsTab, itsWidget, label, selection, slotName, specification, visible |
Fields inherited from interface edu.stanford.smi.protegex.queries_tab.SlotValueWidget |
---|
HEIGHT, WIDTH |
Constructor Summary | |
---|---|
ClassSelectWidget(SearchWidget widget)
Constructor. |
|
ClassSelectWidget(SearchWidget widget,
String label,
String slot)
Constructor with label, slot, and actions. |
Method Summary | |
---|---|
protected void |
addActions()
|
void |
clearList()
|
protected void |
createListener()
Create components in this relation display. |
edu.stanford.smi.protege.model.Cls |
getCls()
|
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 class for class slot. |
JComponent |
getWidget()
Return the embedded widget in the relation display, the JTextArea. |
boolean |
isSlotSingleValued()
Set the slot not a single value slot. |
Collection |
search(Collection instances,
edu.stanford.smi.protege.model.Slot slot,
String operation,
Object obj)
This is used to call for the Query settings. |
void |
setActionsEnabled(boolean b)
Enable/Disable the icons. |
void |
setCls(edu.stanford.smi.protege.model.Cls cls)
Overwrite the setCls to setup the selected cls |
void |
setData(Object[] data)
Set the specified string to the text area. |
void |
setSelectedObject(Object obj)
Set the displayed selected object. |
void |
setViewEnabled(boolean b)
|
void |
showInstance(edu.stanford.smi.protege.model.Instance instance)
|
void |
viewObject()
|
Methods inherited from class edu.stanford.smi.protegex.queries_tab.toolbox.AbstractListValueWidget |
---|
addListener, addMouse, createComponents, createList, removeListener, removeMouse, setDisplayName, updateList |
Methods inherited from class edu.stanford.smi.protegex.queries_tab.AbstractSlotValueWidget |
---|
doTask, getKB, getLabel, getNorthComponent, getProject, getSlotName, getTab, initialized, isComplete, isViewEnabled, isVisible, search, setInstances, setProject, setSlotName, setSpecification, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassSelectWidget(SearchWidget widget)
public ClassSelectWidget(SearchWidget widget, String label, String slot)
Method Detail |
---|
protected void addActions()
addActions
in class AbstractListValueWidget
public void clearList()
protected void createListener()
createListener
in class AbstractListValueWidget
public edu.stanford.smi.protege.model.Cls getCls()
public JComponent getComponent()
public Object[] getData()
public String[] getSelectedItems()
getSelectedItems
in interface SlotValueWidget
getSelectedItems
in class AbstractSlotValueWidget
public Object getSelectedObject()
public JComponent getWidget()
public boolean isSlotSingleValued()
isSlotSingleValued
in interface SlotValueWidget
isSlotSingleValued
in class AbstractSlotValueWidget
public Collection search(Collection instances, edu.stanford.smi.protege.model.Slot slot, String operation, Object obj)
SlotValueWidget
public void setActionsEnabled(boolean b)
AbstractSlotValueWidget
setActionsEnabled
in interface SlotValueWidget
setActionsEnabled
in class AbstractSlotValueWidget
public void setCls(edu.stanford.smi.protege.model.Cls cls)
setCls
in interface SlotValueWidget
setCls
in class AbstractSlotValueWidget
public void setData(Object[] data)
public void setSelectedObject(Object obj)
SlotValueWidget
public void setViewEnabled(boolean b)
setViewEnabled
in interface SlotValueWidget
setViewEnabled
in class AbstractSlotValueWidget
public void showInstance(edu.stanford.smi.protege.model.Instance instance)
public void viewObject()
viewObject
in class AbstractSlotValueWidget
|
Protege 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |