|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
kawigi.cmd.DefaultAction
kawigi.cmd.FindReplaceAction
public class FindReplaceAction
Action implementation for Find/Replace related actions. Actions here are not global, because they act on a specific CodePane.
| Field Summary | |
|---|---|
protected CodePane |
codepane
The CodePane that this action should act on. |
| Fields inherited from class kawigi.cmd.DefaultAction |
|---|
cmdid, COLOR, enableSet, FONT, LARGE_ICON, SELECTED, SPINNER_MODEL, SPINNER_VALUE, TEXT, visible, VISIBLE, visibleSet |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
FindReplaceAction(ActID cmdid,
CodePane codepane)
Constructs a new FindReplaceAction to execute the given ActID on the given CodePane. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Runs this action. |
void |
doReplaceAll()
Does a global replacement with the current search and replacement strings. |
void |
doReplacement()
Does the replacement action with the replacement pattern if the current selection matches the search string. |
java.lang.Object |
getValue(java.lang.String key)
Overridden to override the TEXT property of text fields and SELECTED property of the check boxes and radio buttons. |
boolean |
isEnabled()
Returns true if this Action should show up as enabled. |
boolean |
isVisible()
Returns true if this action should be showing at all. |
void |
putValue(java.lang.String key,
java.lang.Object value)
Overridden to save the TEXT property from the text fields and the SELECTED property from the checkboxes and radio buttons. |
| Methods inherited from class kawigi.cmd.DefaultAction |
|---|
equals, getID, isNeedTrackEnabled, reportError, setVisible, UIRefresh |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CodePane codepane
| Constructor Detail |
|---|
public FindReplaceAction(ActID cmdid,
CodePane codepane)
| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface javax.swing.ActionisEnabled in class javax.swing.AbstractActionpublic boolean isVisible()
isVisible in class DefaultActionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class DefaultActionpublic void doReplacement()
public void doReplaceAll()
public java.lang.Object getValue(java.lang.String key)
getValue in interface javax.swing.ActiongetValue in class javax.swing.AbstractAction
public void putValue(java.lang.String key,
java.lang.Object value)
putValue in interface javax.swing.ActionputValue in class javax.swing.AbstractAction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||