Protege-2000 1.7

edu.stanford.smi.protegex.queries_tab
Class QueriesTab

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--edu.stanford.smi.protege.widget._AbstractWidget
                          |
                          +--edu.stanford.smi.protege.widget.AbstractTabWidget
                                |
                                +--edu.stanford.smi.protegex.queries_tab.QueriesTab
All Implemented Interfaces:
edu.stanford.smi.protege.util.Disposable, ImageObserver, MenuContainer, Observer, edu.stanford.smi.protege.util.Selectable, Serializable, edu.stanford.smi.protege.widget.TabWidget, edu.stanford.smi.protege.widget.Widget

public class QueriesTab
extends edu.stanford.smi.protege.widget.AbstractTabWidget
implements Observer

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
Component.AccessibleAWTComponent
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
QueriesTab()
           
 
Method Summary
 void clearQueryStack()
           
 void clearSearch()
           
 boolean compareQueries()
           
 boolean compareQuery(InstancesQuery query)
          Compare the current loading query with another query.
 JPanel createQueryDialogPanel(InstancesQuery query, QueriesTab tab)
           
 void dispose()
           
 void downLoadQuery()
           
 void enableQueryButtons(boolean b)
           
 void enableSearch()
           
 Box getEmptyBox()
           
 Vector getLine(String result)
          Organizer the query in a vector of string by line.
 boolean getMatchAll()
           
 QueryListModel getModel()
           
 String getQueryName()
           
 Stack getQueryStack()
           
 JPanel getSearchPanel()
           
 int getWidgetHeight()
           
 Vector getWidgets()
           
 int getWidgetWidth()
           
 void initialize()
           
 boolean isEmptySearchPanel()
          if the search Parts are empty, return true, otherwise, return false.
static void main(String[] args)
           
 InstancesQuery popQuery()
           
 void postWarningDialog(String name)
           
 void pushQuery(InstancesQuery query)
           
 void save()
           
 int searchQueryStack(InstancesQuery query)
           
 void setEditable(boolean b)
           
 void setQuery(InstancesQuery query)
           
 void setQueryName(String name)
           
 void setTabComponents()
          Setup the layout of the tab
 void setupRadios(boolean b)
           
 void setupStatus(boolean b)
          Switch buttons and radios according to the settings.
 void showDialog(InstancesQuery query)
           
 void update(Observable instancesQuery, Object arg)
           
 void updateHashMap(JFrame frame)
           
 
Methods inherited from class edu.stanford.smi.protege.widget.AbstractTabWidget
configure, finalize, setup
 
Methods inherited from class edu.stanford.smi.protege.widget._AbstractWidget
addButtonConfiguration, addButtonConfiguration, addMainWindowToolBarButton, addSelectionListener, addWidgetListener, allowsMultipleValues, canClose, canSave, clearSelection, close, createLeftRightSplitPane, createTopBottomSplitPane, createWidgetConfigurationPanel, displayButton, displayButton, getAssociatedCls, getButtonDescription, getCls, getDescriptor, getFirstItem, getIcon, getInstance, getInvalidValueText, getKnowledgeBase, getLabel, getMainWindowMenuBar, getMaximumCardinality, getMinimumCardinality, getPreferredSize, getProject, getPropertyList, getSelection, getShortDescription, getSlot, getStringProperty, getValues, handleBrowserTextChanged, handleFrameNameChanged, handleOwnSlotValueChanged, isDesignTime, isRuntime, isSlotAtCls, isSuitable, loadValues, notifySelectionListeners, postWidgetEvent, removeMainWindowToolBarButton, removeSelectionListener, removeWidgetListener, reshape, setAllowed, setAssociatedCls, setCls, setIcon, setInstance, setInstance, setInstanceValues, setLabel, setPreferredColumns, setPreferredRows, setPreferredSize, setPropertyList, setShortDescription, setSlot, setup, setValues, setWidgetValues, show, showInstance, toString, updateBorder, valueChanged
 
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, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, 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, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
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, setSize, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protege.widget.TabWidget
canClose, canSave, close, getIcon, getShortDescription
 
Methods inherited from interface edu.stanford.smi.protege.widget.Widget
addWidgetListener, getDescriptor, getKnowledgeBase, getLabel, getProject, removeWidgetListener, setLabel
 
Methods inherited from interface edu.stanford.smi.protege.util.Selectable
addSelectionListener, clearSelection, getSelection, notifySelectionListeners, removeSelectionListener
 

Constructor Detail

QueriesTab

public QueriesTab()
Method Detail

clearQueryStack

public void clearQueryStack()

clearSearch

public void clearSearch()

compareQueries

public boolean compareQueries()

compareQuery

public boolean compareQuery(InstancesQuery query)
Compare the current loading query with another query.

createQueryDialogPanel

public JPanel createQueryDialogPanel(InstancesQuery query,
                                     QueriesTab tab)

dispose

public void dispose()
Overrides:
dispose in class edu.stanford.smi.protege.widget._AbstractWidget

downLoadQuery

public void downLoadQuery()

enableQueryButtons

public void enableQueryButtons(boolean b)

enableSearch

public void enableSearch()

getEmptyBox

public Box getEmptyBox()

getLine

public Vector getLine(String result)
Organizer the query in a vector of string by line.

getMatchAll

public boolean getMatchAll()

getModel

public QueryListModel getModel()

getQueryName

public String getQueryName()

getQueryStack

public Stack getQueryStack()

getSearchPanel

public JPanel getSearchPanel()

getWidgetHeight

public int getWidgetHeight()

getWidgets

public Vector getWidgets()

getWidgetWidth

public int getWidgetWidth()

initialize

public void initialize()
Overrides:
initialize in class edu.stanford.smi.protege.widget.AbstractTabWidget

isEmptySearchPanel

public boolean isEmptySearchPanel()
if the search Parts are empty, return true, otherwise, return false.

main

public static void main(String[] args)

popQuery

public InstancesQuery popQuery()

postWarningDialog

public void postWarningDialog(String name)

pushQuery

public void pushQuery(InstancesQuery query)

save

public void save()
Overrides:
save in class edu.stanford.smi.protege.widget._AbstractWidget

searchQueryStack

public int searchQueryStack(InstancesQuery query)

setEditable

public void setEditable(boolean b)
Overrides:
setEditable in class edu.stanford.smi.protege.widget._AbstractWidget

setQuery

public void setQuery(InstancesQuery query)

setQueryName

public void setQueryName(String name)

setTabComponents

public void setTabComponents()
Setup the layout of the tab

setupRadios

public void setupRadios(boolean b)

setupStatus

public void setupStatus(boolean b)
Switch buttons and radios according to the settings. True: enable the button and radios False: disable the button and radios

showDialog

public void showDialog(InstancesQuery query)

update

public void update(Observable instancesQuery,
                   Object arg)
Specified by:
update in interface Observer

updateHashMap

public void updateHashMap(JFrame frame)

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.