|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
gate.gui.ontology.SearchAction
public class SearchAction
A Class that provides a GUI to search for a resource in the ontology editor. It allows looking up for a resource with certain name or to locate a resource that has a certain value set on the specified property.
| Nested Class Summary | |
|---|---|
class |
SearchAction.ComboRenderer
Description: This class provides the renderer for the Search comboBox Nodes. |
| Field Summary | |
|---|---|
protected JPanel |
guiPanel
main guiPanel that holds the search gui components. |
protected OntologyEditor |
ontologyEditor
The editor whose ontology is used for searching in. |
protected JComboBox |
properties
combobox that holds the filtered properties based on user's input. |
protected RDFProperty[] |
propertiesArray
An array that contains a list of properties in which the search function searches in. |
protected OResource[] |
resourcesArray
An array that contains a list of resources in which the search function searches in. |
protected JComboBox |
resourcesBox
Box to show the filtered resources based on the user's input in the find what box. |
protected JCheckBox |
searchInPropertyValues
Indicates if the search function should search for the find what string in the values of the specified property. |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
SearchAction(String s,
Icon icon,
OntologyEditor editor)
Constructor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Obtains a list of resources from the ontology being displayed in the ontology editor and invokes the search dialog. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JComboBox resourcesBox
protected JPanel guiPanel
protected OntologyEditor ontologyEditor
protected OResource[] resourcesArray
protected RDFProperty[] propertiesArray
protected JComboBox properties
protected JCheckBox searchInPropertyValues
| Constructor Detail |
|---|
public SearchAction(String s,
Icon icon,
OntologyEditor editor)
s - - caption of the search buttonicon - - icon to be used for the search buttoneditor - - instance of the ontology editor| Method Detail |
|---|
public void actionPerformed(ActionEvent ae)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||