public abstract class FindAction extends AbstractAction implements DocumentListener, KeyListener, Runnable
Modifier and Type | Field and Description |
---|---|
protected boolean |
controlDown |
protected boolean |
metaDown |
protected boolean |
shiftDown |
changeSupport, enabled
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 and Description |
---|
FindAction(JComponent comp,
boolean startAtKeytype) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ae) |
protected abstract boolean |
changed(JComponent comp,
String text,
Position.Bias bias) |
void |
changedUpdate(DocumentEvent e) |
JComponent |
getComponent() |
protected JLabel |
getMessageLabel() |
protected JTextField |
getSearchField() |
protected Thread |
getThread() |
protected int |
getWaitTime() |
protected void |
initSearch(ActionEvent ae) |
void |
insertUpdate(DocumentEvent e) |
void |
installKeyListener(Component comp) |
protected boolean |
isBlockAutoClosing() |
boolean |
isIgnoreCase() |
void |
keyPressed(KeyEvent ke) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
void |
next()
Go to the next match
|
void |
prev()
Go to the previous match
|
void |
removeUpdate(DocumentEvent e) |
protected void |
reset() |
protected void |
setBlockAutoClosing(boolean value) |
void |
setIgnoreCase(boolean ignoreCase) |
protected void |
setWaitTime(int value) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected boolean shiftDown
protected boolean controlDown
protected boolean metaDown
public FindAction(JComponent comp, boolean startAtKeytype)
protected void setBlockAutoClosing(boolean value)
protected boolean isBlockAutoClosing()
protected Thread getThread()
protected int getWaitTime()
protected void setWaitTime(int value)
protected JLabel getMessageLabel()
protected void reset()
public void prev()
public void next()
public boolean isIgnoreCase()
public void setIgnoreCase(boolean ignoreCase)
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
protected void initSearch(ActionEvent ae)
protected abstract boolean changed(JComponent comp, String text, Position.Bias bias)
public void insertUpdate(DocumentEvent e)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent e)
removeUpdate
in interface DocumentListener
public void changedUpdate(DocumentEvent e)
changedUpdate
in interface DocumentListener
public void keyPressed(KeyEvent ke)
keyPressed
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
protected JTextField getSearchField()
public JComponent getComponent()
public void installKeyListener(Component comp)
TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)