|
|||||||||
| 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
gov.nih.nlm.swing.FindDialog
public class FindDialog
Dialog to manage find on a Document shown in a
JEditorPane.
Document,
JEditorPane,
Serialized Form| Nested Class Summary |
|---|
| 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 | |
|---|---|
static int |
OP_FIND
find operation |
static int |
OP_NONE
Constants for operation |
static boolean |
STATE_LOCKED
Constants for method toggleState state locked |
static boolean |
STATE_UNLOCKED
state unlocked |
| 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 | |
|---|---|
FindDialog(Frame owner)
---- Constructor(s) start ----------- /** Construct a FindDialog. |
|
| Method Summary | |
|---|---|
void |
centerDialog(Frame owner)
Center this dialog window relative to its owning Frame. |
String |
getSearchField()
Returns the contents/search terms in the search field. |
boolean |
isMatchCase()
Indicates if the Match Case button is selected. |
boolean |
isSearchDown()
Indicates if the Search Down button is selected. |
boolean |
isSearchUp()
Indicates if the Search Up button is selected. |
boolean |
isStartOnTop()
Indicates if the Start on Top button is selected. |
void |
setHandler(FinderHandler handler)
Sets the FinderHandler that will execute the find operation. |
void |
terminateOperation()
Terminate the current operation |
| 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 |
| Field Detail |
|---|
public static final boolean STATE_LOCKED
public static final boolean STATE_UNLOCKED
public static final int OP_NONE
public static final int OP_FIND
| Constructor Detail |
|---|
public FindDialog(Frame owner)
FindDialog.
Shows the dialog window modal, packed and centered over the owning
Frame after construction.
Using this constructor implies the dialog shall be used in mode MODE_DOCUMENT
owner - the Frame that owns this dialog @param editors
JEditorPanes displaying the Document to
seach inJEditorPane,
Document,
Frame| Method Detail |
|---|
public void setHandler(FinderHandler handler)
FinderHandler that will execute the find operation.
handler - FinderHandlerpublic void centerDialog(Frame owner)
Frame.
owner - Frame owning this dialogFramepublic void terminateOperation()
public boolean isSearchUp()
true if selected
false otherwisepublic boolean isSearchDown()
true if selected
false otherwisepublic boolean isMatchCase()
true if selected
false otherwisepublic boolean isStartOnTop()
true if selected
false otherwisepublic String getSearchField()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||