|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.ceryle.ui.graph.FindTopicDialog
public class FindTopicDialog
A class that creates a dialog box used for searching for a topic in the
graph. This uses the gnu.regexp regular expression (RE)
package, which allows for sixteen different (!) RE syntax variations,
which should pretty much satisfy anyone's preferences. With JDK 1.4's
availability of an RE package, this could be replaced at some point.
| Nested Class Summary | |
|---|---|
class |
FindTopicDialog.FindKeyListener
Internal class implements KeyAdapter to capture key events. |
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FindTopicDialog(TMLayoutPanel tmlpanel,
String defaultString,
BitSet settings)
Constructor for a FindTopicDialog, including a reference to the parent Desktop, a TopicMap topicmap, an optional default search String defaultString (which can be null), and a bitwise int settings to provide various search settings. |
|
| Method Summary | |
|---|---|
protected void |
exit()
Closes the Find Topic dialog (disposing of it). |
void |
find(boolean next)
Performs the Find function, Find Next if next is true. |
void |
focusGained(FocusEvent fe)
Indicates that the panel has gained the focus. |
void |
focusLost(FocusEvent fe)
Indicates that the panel has lost the focus. |
FindTopicPanel |
getFindTopicPanel()
Returns the internal FindTopicPanel (that does all the work). |
boolean |
isSearchVisibleOnly()
Returns true if the current setting is to search visible nodes only. |
void |
reload()
Requests a reload of the topics based on the current graph. |
String |
writeMessage(int status,
String message)
Writes the String message to the current message window. |
void |
writeMessage(String message)
Writes the String message to the current message window. |
void |
writeStatus(String message)
Sets the content of the status line to the String message. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FindTopicDialog(TMLayoutPanel tmlpanel,
String defaultString,
BitSet settings)
tmlpanel - the TMLayoutPanel containing the TopicMap objectdefaultString - the default search stringsettings - bitwise settings| Method Detail |
|---|
public FindTopicPanel getFindTopicPanel()
public void reload()
public boolean isSearchVisibleOnly()
public void find(boolean next)
public void writeMessage(String message)
writeMessage in interface MessageWriter
public String writeMessage(int status,
String message)
writeMessage in interface MessageWriterMessageHandlerpublic void writeStatus(String message)
writeStatus in interface MessageWriterpublic void focusGained(FocusEvent fe)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent fe)
focusLost in interface FocusListenerprotected void exit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||