|
Protege 3.4.4 | ||||||||
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
public abstract class AbstractSlotValueWidget
Nested Class Summary | |
---|---|
protected class |
AbstractSlotValueWidget.SlotValueWidgetMouse
Define table mouse adapter. |
Field Summary | |
---|---|
AbstractTemplateSlotNumberValidator |
_validator
|
protected String[] |
constraints
|
static int |
FIELDHEIGHT
|
static int |
FIELDWIDTH
|
protected boolean |
isViewEnabled
|
protected Collection |
itsInstances
|
edu.stanford.smi.protege.model.Slot |
itsSlot
|
QueriesTab |
itsTab
|
SearchWidget |
itsWidget
|
protected String |
label
|
edu.stanford.smi.protege.model.Cls |
selection
|
protected String |
slotName
|
protected SlotSpecification |
specification
|
protected boolean |
visible
|
Fields inherited from interface edu.stanford.smi.protegex.queries_tab.SlotValueWidget |
---|
HEIGHT, WIDTH |
Constructor Summary | |
---|---|
AbstractSlotValueWidget(SearchWidget widget)
Constructor of class AbstractRelationDisplay. |
Method Summary | |
---|---|
void |
doTask(String type)
flexible task |
edu.stanford.smi.protege.model.KnowledgeBase |
getKB()
Get the reference of current knowledge base in protege. |
String |
getLabel()
Get the label of RelationDisplay. |
JComponent |
getNorthComponent()
Get the component which will locate in the north of relation display. |
edu.stanford.smi.protege.model.Project |
getProject()
Get Protege project |
String[] |
getSelectedItems()
Get the selected items. |
String |
getSlotName()
Get the name of the slot for this relation display. |
QueriesTab |
getTab()
Get the tab. |
void |
initialized()
Called after project and kb are set. |
boolean |
isComplete()
whether the seach is done or not |
boolean |
isSlotSingleValued()
If the slot is single value, return true. |
boolean |
isViewEnabled()
|
boolean |
isVisible()
get visible |
void |
removeListener()
|
void |
removeMouse()
|
Collection |
search()
For the formed search result, change the format. |
void |
setActionsEnabled(boolean b)
Enable/Disable the icons. |
void |
setCls(edu.stanford.smi.protege.model.Cls cls)
Setup the selected cls |
void |
setDisplayName(String name)
|
void |
setInstances(Collection instances)
Setup the instances collection |
void |
setProject(edu.stanford.smi.protege.model.Project proj)
Set the Protege project. |
void |
setSlotName(String n)
Set the name of the slot for this relation display. |
void |
setSpecification(SlotSpecification spec)
Setup the search specification. |
void |
setViewEnabled(boolean b)
|
void |
setVisible(boolean v)
Set visible |
void |
viewObject()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protegex.queries_tab.SlotValueWidget |
---|
getComponent, getData, getSelectedObject, getWidget, search, setData, setSelectedObject |
Field Detail |
---|
public static final int FIELDWIDTH
public static final int FIELDHEIGHT
protected String slotName
protected String label
protected boolean visible
protected SlotSpecification specification
public edu.stanford.smi.protege.model.Cls selection
public edu.stanford.smi.protege.model.Slot itsSlot
public QueriesTab itsTab
protected Collection itsInstances
protected String[] constraints
public SearchWidget itsWidget
protected boolean isViewEnabled
public AbstractTemplateSlotNumberValidator _validator
Constructor Detail |
---|
public AbstractSlotValueWidget(SearchWidget widget)
Method Detail |
---|
public void doTask(String type)
doTask
in interface SlotValueWidget
public edu.stanford.smi.protege.model.KnowledgeBase getKB()
public String getLabel()
getLabel
in interface SlotValueWidget
public JComponent getNorthComponent()
public edu.stanford.smi.protege.model.Project getProject()
public String[] getSelectedItems()
getSelectedItems
in interface SlotValueWidget
public String getSlotName()
getSlotName
in interface SlotValueWidget
public QueriesTab getTab()
SlotValueWidget
getTab
in interface SlotValueWidget
public void initialized()
SlotValueWidget
initialized
in interface SlotValueWidget
public boolean isComplete()
SlotValueWidget
isComplete
in interface SlotValueWidget
public boolean isSlotSingleValued()
isSlotSingleValued
in interface SlotValueWidget
public boolean isViewEnabled()
isViewEnabled
in interface SlotValueWidget
public boolean isVisible()
isVisible
in interface SlotValueWidget
public void removeListener()
removeListener
in interface SlotValueWidget
public void removeMouse()
removeMouse
in interface SlotValueWidget
public Collection search()
search
in interface SlotValueWidget
public void setActionsEnabled(boolean b)
setActionsEnabled
in interface SlotValueWidget
public void setCls(edu.stanford.smi.protege.model.Cls cls)
setCls
in interface SlotValueWidget
public void setDisplayName(String name)
setDisplayName
in interface SlotValueWidget
public void setInstances(Collection instances)
setInstances
in interface SlotValueWidget
public void setProject(edu.stanford.smi.protege.model.Project proj)
setProject
in interface SlotValueWidget
public void setSlotName(String n)
public void setSpecification(SlotSpecification spec)
setSpecification
in interface SlotValueWidget
public void setViewEnabled(boolean b)
setViewEnabled
in interface SlotValueWidget
public void setVisible(boolean v)
setVisible
in interface SlotValueWidget
public void viewObject()
|
Protege 3.4.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |