| |
|
| javax.swing.JTextField org.gjt.sp.jedit.gui.HistoryTextField
All known Subclasses: org.gjt.sp.jedit.browser.VFSFileNameField,
HistoryTextField | public class HistoryTextField extends JTextField (Code) | | Text field with an arrow-key accessable history.
author: Slava Pestov version: $Id: HistoryTextField.java 10575 2007-09-14 02:31:49Z ezust $ |
Constructor Summary | |
public | HistoryTextField() Creates a new history text field. | public | HistoryTextField(String name) Creates a new history text field. | public | HistoryTextField(String name, boolean instantPopups) Creates a new history text field.
Parameters: name - The history model name Parameters: instantPopups - If true, selecting a value from the historypopup will immediately fire an ActionEvent. | public | HistoryTextField(String name, boolean instantPopups, boolean enterAddsToHistory) Creates a new history text field.
Parameters: name - The history model name Parameters: instantPopups - If true, selecting a value from the historypopup will immediately fire an ActionEvent. |
HistoryTextField | public HistoryTextField()(Code) | | Creates a new history text field.
since: jEdit 3.2pre5 |
HistoryTextField | public HistoryTextField(String name)(Code) | | Creates a new history text field.
Parameters: name - The history model name |
HistoryTextField | public HistoryTextField(String name, boolean instantPopups)(Code) | | Creates a new history text field.
Parameters: name - The history model name Parameters: instantPopups - If true, selecting a value from the historypopup will immediately fire an ActionEvent. If false, the userwill have to press 'Enter' first since: jEdit 2.2pre5 |
HistoryTextField | public HistoryTextField(String name, boolean instantPopups, boolean enterAddsToHistory)(Code) | | Creates a new history text field.
Parameters: name - The history model name Parameters: instantPopups - If true, selecting a value from the historypopup will immediately fire an ActionEvent. If false, the userwill have to press 'Enter' first Parameters: enterAddsToHistory - If true, pressing the Enter key willautomatically add the currently entered text to the history. since: jEdit 2.6pre5 |
addCurrentToHistory | public void addCurrentToHistory()(Code) | | Adds the currently entered item to the history.
|
fireActionPerformed | public void fireActionPerformed()(Code) | | Make it public.
|
getInstantPopups | public boolean getInstantPopups()(Code) | | Returns if selecting a value from the popup should immediately fire
an ActionEvent.
since: jEdit 4.0pre3 |
setEnterAddsToHistory | public void setEnterAddsToHistory(boolean enterAddsToHistory)(Code) | | Sets if pressing Enter should automatically add the currently
entered text to the history.
since: jEdit 4.0pre3 |
setEnterAddsToHistory | public boolean setEnterAddsToHistory()(Code) | | Returns if pressing Enter should automatically add the currently
entered text to the history.
since: jEdit 4.0pre3 |
setInstantPopups | public void setInstantPopups(boolean instantPopups)(Code) | | Sets if selecting a value from the popup should immediately fire
an ActionEvent.
since: jEdit 4.0pre3 |
setModel | public void setModel(String name)(Code) | | Sets the history list model.
Parameters: name - The model name since: jEdit 2.3pre3 |
setSelectAllOnFocus | public void setSelectAllOnFocus(boolean selectAllOnFocus)(Code) | | Sets if all text should be selected when the field gets focus.
since: jEdit 4.0pre3 |
setSelectAllOnFocus | public boolean setSelectAllOnFocus()(Code) | | Returns if all text should be selected when the field gets focus.
since: jEdit 4.0pre3 |
setText | public void setText(String text)(Code) | | Sets the displayed text.
|
|
|
|