java.lang.Object
org.gjt.sp.jedit.gui.HistoryText
Controller (manager of models) for HistoryTextArea.
- Version:
- $Id: HistoryText.java 24411 2016-06-19 11:02:53Z kerik-sf $
- Author:
- Slava Pestov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the currently entered item to the history.void
void
void
int
getIndex()
int
Subclasses can override this to provide funky history behavior, for JTextPanes and such.boolean
Returns if selecting a value from the popup should immediately fire an ActionEvent.getModel()
Returns the underlying history controller.getText()
Subclasses can override this to provide funky history behavior, for JTextPanes and such.void
void
void
setIndex
(int index) void
setInstantPopups
(boolean instantPopups) Sets if selecting a value from the popup should immediately fire an ActionEvent.void
Sets the history list controller.void
Subclasses can override this to provide funky history behavior, for JTextPanes and such.void
showPopupMenu
(boolean search) void
showPopupMenu
(String t, int x, int y)
-
Constructor Details
-
HistoryText
-
-
Method Details
-
fireActionPerformed
public void fireActionPerformed() -
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
getModel
Returns the underlying history controller.- Since:
- jEdit 4.3pre1
-
setModel
Sets the history list controller.- Parameters:
name
- The model name- Since:
- jEdit 4.3pre1
-
setInstantPopups
public void setInstantPopups(boolean instantPopups) Sets if selecting a value from the popup should immediately fire an ActionEvent. -
getInstantPopups
public boolean getInstantPopups()Returns if selecting a value from the popup should immediately fire an ActionEvent. -
addCurrentToHistory
public void addCurrentToHistory()Adds the currently entered item to the history. -
doBackwardSearch
public void doBackwardSearch() -
doForwardSearch
public void doForwardSearch() -
historyPrevious
public void historyPrevious() -
historyNext
public void historyNext() -
getDocument
-
getText
Subclasses can override this to provide funky history behavior, for JTextPanes and such. -
setText
Subclasses can override this to provide funky history behavior, for JTextPanes and such. -
getInputStart
public int getInputStart()Subclasses can override this to provide funky history behavior, for JTextPanes and such. -
showPopupMenu
-
showPopupMenu
public void showPopupMenu(boolean search)
-