|
Protege 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SlotValueWidget
Field Summary | |
---|---|
static int |
HEIGHT
|
static int |
WIDTH
|
Method Summary | |
---|---|
void |
doTask(String type)
Allow any other flexible process |
JComponent |
getComponent()
Return the JComponent to show on screen. |
Object[] |
getData()
Return an array of Objects that are shown in the widget. |
String |
getLabel()
Return the label of the widget. |
String[] |
getSelectedItems()
Returns the items currently selected in the JComponent. |
Object |
getSelectedObject()
Return the selected Object. |
String |
getSlotName()
Every widget is used to represent the value of s specific slot. |
QueriesTab |
getTab()
Get the tab. |
JComponent |
getWidget()
Return the JComponent to hold the data. |
void |
initialized()
Called after project and kb are set. |
boolean |
isComplete()
whether the seach is done or not |
boolean |
isSlotSingleValued()
If is a single value slot, set as true. |
boolean |
isViewEnabled()
|
boolean |
isVisible()
get visible |
void |
removeListener()
|
void |
removeMouse()
|
Collection |
search()
Performs the search for the specified string with the given search context. |
Collection |
search(Collection instances,
Slot slot,
String operation,
Object obj)
This is used to call for the Query settings. |
void |
setActionsEnabled(boolean b)
|
void |
setCls(Cls cls)
Setup the selected cls |
void |
setData(Object[] data)
An array of Objects are passed in that should be displayed. |
void |
setDisplayName(String name)
|
void |
setInstances(Collection instances)
Setup the instances collection |
void |
setProject(Project proj)
Each widget will have a pointer to the project so it can interact with the Protege knowledge base. |
void |
setSelectedObject(Object obj)
Set the displayed selected object. |
void |
setSpecification(SlotSpecification spec)
Setup the search specification. |
void |
setViewEnabled(boolean b)
|
void |
setVisible(boolean visible)
Set visible |
Field Detail |
---|
static final int WIDTH
static final int HEIGHT
Method Detail |
---|
void doTask(String type)
JComponent getComponent()
Object[] getData()
String getLabel()
String[] getSelectedItems()
Object getSelectedObject()
String getSlotName()
QueriesTab getTab()
JComponent getWidget()
void initialized()
boolean isComplete()
boolean isSlotSingleValued()
boolean isViewEnabled()
boolean isVisible()
void removeListener()
void removeMouse()
Collection search()
Collection search(Collection instances, Slot slot, String operation, Object obj)
void setActionsEnabled(boolean b)
void setCls(Cls cls)
void setData(Object[] data)
void setDisplayName(String name)
void setInstances(Collection instances)
void setProject(Project proj)
void setSelectedObject(Object obj)
void setSpecification(SlotSpecification spec)
void setViewEnabled(boolean b)
void setVisible(boolean visible)
|
Protege 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |