|
Mp3dings 20100427 |
|||||||||
| 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
de.mospace.swing.JReplaceDialogue
public abstract class JReplaceDialogue
A customizable Replace Dialogue.
| 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, Dialog.ModalExclusionType, Dialog.ModalityType |
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
MATCH_CASE
|
static int |
MATCH_WORD
|
static int |
REG_EXP
|
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| 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 | |
|---|---|
JReplaceDialogue(Frame owner)
Constructs a replace dialog with no history of entered items. |
|
JReplaceDialogue(Frame owner,
Preferences pref,
int len)
Constructs a replace dialog with a search and replace history. |
|
JReplaceDialogue(Frame owner,
Preferences pref,
int len,
boolean showReplace)
Constructs a replace dialog with a search and replace history. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Show the dialogue when an action is performed |
void |
cancel()
Closes the dialog without doing a search. |
abstract void |
performReplace(String what,
String with,
boolean mWord,
boolean mCase,
boolean regExp,
boolean rAll,
Object scope)
Perform a find/replace operation. |
void |
setOptionEnabled(int option,
boolean enabled)
Hides or shows an option. |
void |
setScope(Object searchScope)
Specifies the scope of the next search. |
void |
setVisible(boolean b)
Displays or hides the dialogue. |
void |
show()
Deprecated. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MATCH_WORD
public static final int MATCH_CASE
public static final int REG_EXP
| Constructor Detail |
|---|
public JReplaceDialogue(Frame owner)
public JReplaceDialogue(Frame owner,
Preferences pref,
int len)
pref - the preference node to use for storing history itemslen - the number of items in the history
public JReplaceDialogue(Frame owner,
Preferences pref,
int len,
boolean showReplace)
pref - the preference node to use for storing history itemslen - the number of items in the historyshowReplace - whether to display the Replace All button and
the "[Replace ]with" field| Method Detail |
|---|
public void setScope(Object searchScope)
performReplace(String what, String with, boolean mWord,
boolean mCase, boolean regExp, boolean rAll, Object scope)public void show()
show in class DialogsetVisible(boolean)public void setVisible(boolean b)
setVisible in class Dialogpublic void cancel()
public void setOptionEnabled(int option,
boolean enabled)
option - one of MATCH_WORD, MATCH_CASE, REG_EXP
public abstract void performReplace(String what,
String with,
boolean mWord,
boolean mCase,
boolean regExp,
boolean rAll,
Object scope)
what - string or regular expression to look forwith - replacement stringmWord - modifier: match whole wordmCase - modifier: match caseregExp - modifier: what is a regular expressionrAll - modifier: replace all occurences in scopescope - search scope set by setScope(Object scope)public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListener
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||