edu.stanford.smi.protegex.queries_tab
Class SearchWidget
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--edu.stanford.smi.protegex.queries_tab.SearchWidget
- All Implemented Interfaces:
- Accessible, ImageObserver, MenuContainer, Serializable
- public class SearchWidget
- extends JPanel
- See Also:
- Serialized Form
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, show, show, size, toString, transferFocus |
searchStyle
protected int searchStyle
SearchWidget
public SearchWidget(QueriesTab tab,
edu.stanford.smi.protege.model.KnowledgeBase kb)
SearchWidget
public SearchWidget(QueriesTab tab,
edu.stanford.smi.protege.model.KnowledgeBase kb,
String[] slotNames,
String[] slotTypes,
Collection slotCol)
clearSearch
public void clearSearch()
clearSearchObjectContent
public void clearSearchObjectContent(String name)
dispose
public void dispose()
enableQueryButton
public void enableQueryButton(boolean b)
flowWidgets
public JComponent flowWidgets()
getAddStyle
public int getAddStyle()
getCls
public edu.stanford.smi.protege.model.Cls getCls()
- return the specified cls in this searchWidget.
getDisplayedSlotName
public String getDisplayedSlotName()
getInstances
public Collection getInstances(edu.stanford.smi.protege.model.Cls cls)
getInstances
public Collection getInstances(edu.stanford.smi.protege.model.Cls cls,
int type,
edu.stanford.smi.protege.model.Slot slot)
getKB
public edu.stanford.smi.protege.model.KnowledgeBase getKB()
getMatchSlotWidget
public SlotValueWidget getMatchSlotWidget(String slotType)
getQueryName
public String getQueryName()
getSearchClass
public ClassSelectWidget getSearchClass()
getSearchConstraint
public String getSearchConstraint()
getSearchObject
public SlotValueWidget getSearchObject()
getSearchSubject
public String getSearchSubject()
getSelectedObjects
public Object[] getSelectedObjects()
- Get the selected Objects for the Query.
getSelectSlotName
public String getSelectSlotName()
getSlotsModel
public SlotsModel getSlotsModel()
getSlotType
public String getSlotType()
- return type for the selected subject
getTab
public QueriesTab getTab()
getTargetValue
public Object getTargetValue()
getValueWidgets
public JComponent getValueWidgets(int i)
isReady
public boolean isReady()
removeMouseListener
public void removeMouseListener()
search
public Collection search()
- Search method in the searchWidget.
search
public Collection search(Collection instances)
setClass
public void setClass(edu.stanford.smi.protege.model.Instance instance)
- This is used to set whole class
setClass2
public void setClass2(edu.stanford.smi.protege.model.Instance instance)
setData
public void setData(edu.stanford.smi.protege.model.Cls cls)
- Set the suitable data for each slotvaluewidget.
setData2
public void setData2(edu.stanford.smi.protege.model.Cls cls)
- Set the suitable data for each slotvaluewidget.
setObjectsViewEnabled
public void setObjectsViewEnabled(boolean b)
setReady
public void setReady(boolean b)
setSelectedObjects
public void setSelectedObjects(Object[] objs,
String[] names)
setSelectSlotName
public void setSelectSlotName()
setSize
public void setSize(int width,
int height)
- Overrides:
setSize
in class Component
setViewEnabled
public void setViewEnabled(boolean b)
setWidget
public void setWidget(int index)
- Setup which one is displayed.
updateSearchWidget
public void updateSearchWidget(String currentName)
- Update the corresponding search methods and the slotvaluewidgets.
updateWidget
public void updateWidget(int index)
- Setup which one is displayed.
Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.