Package org.gjt.sp.jedit.gui
Class HistoryText
- java.lang.Object
-
- org.gjt.sp.jedit.gui.HistoryText
-
public class HistoryText extends java.lang.ObjectController (manager of models) for HistoryTextArea.
-
-
Constructor Summary
Constructors Constructor Description HistoryText(javax.swing.text.JTextComponent text, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCurrentToHistory()Adds the currently entered item to the history.voiddoBackwardSearch()voiddoForwardSearch()voidfireActionPerformed()javax.swing.text.DocumentgetDocument()intgetIndex()intgetInputStart()Subclasses can override this to provide funky history behavior, for JTextPanes and such.booleangetInstantPopups()Returns if selecting a value from the popup should immediately fire an ActionEvent.HistoryModelgetModel()Returns the underlying history controller.java.lang.StringgetText()Subclasses can override this to provide funky history behavior, for JTextPanes and such.voidhistoryNext()voidhistoryPrevious()voidsetIndex(int index)voidsetInstantPopups(boolean instantPopups)Sets if selecting a value from the popup should immediately fire an ActionEvent.voidsetModel(java.lang.String name)Sets the history list controller.voidsetText(java.lang.String text)Subclasses can override this to provide funky history behavior, for JTextPanes and such.voidshowPopupMenu(boolean search)voidshowPopupMenu(java.lang.String t, int x, int y)
-
-
-
Method Detail
-
fireActionPerformed
public void fireActionPerformed()
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
getModel
public HistoryModel getModel()
Returns the underlying history controller.- Since:
- jEdit 4.3pre1
-
setModel
public void setModel(java.lang.String name)
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
public javax.swing.text.Document getDocument()
-
getText
public java.lang.String getText()
Subclasses can override this to provide funky history behavior, for JTextPanes and such.
-
setText
public void setText(java.lang.String text)
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
public void showPopupMenu(java.lang.String t, int x, int y)
-
showPopupMenu
public void showPopupMenu(boolean search)
-
-