public class HistoryText
extends java.lang.Object
Constructor and Description |
---|
HistoryText(javax.swing.text.JTextComponent text,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addCurrentToHistory()
Adds the currently entered item to the history.
|
void |
doBackwardSearch() |
void |
doForwardSearch() |
void |
fireActionPerformed() |
javax.swing.text.Document |
getDocument() |
int |
getIndex() |
int |
getInputStart()
Subclasses can override this to provide funky history behavior,
for JTextPanes and such.
|
boolean |
getInstantPopups()
Returns if selecting a value from the popup should immediately fire
an ActionEvent.
|
HistoryModel |
getModel()
Returns the underlying history controller.
|
java.lang.String |
getText()
Subclasses can override this to provide funky history behavior,
for JTextPanes and such.
|
void |
historyNext() |
void |
historyPrevious() |
void |
setIndex(int index) |
void |
setInstantPopups(boolean instantPopups)
Sets if selecting a value from the popup should immediately fire
an ActionEvent.
|
void |
setModel(java.lang.String name)
Sets the history list controller.
|
void |
setText(java.lang.String text)
Subclasses can override this to provide funky history behavior,
for JTextPanes and such.
|
void |
showPopupMenu(boolean search) |
void |
showPopupMenu(java.lang.String t,
int x,
int y) |
public HistoryText(javax.swing.text.JTextComponent text, java.lang.String name)
public void fireActionPerformed()
public int getIndex()
public void setIndex(int index)
public HistoryModel getModel()
public void setModel(java.lang.String name)
name
- The model namepublic void setInstantPopups(boolean instantPopups)
public boolean getInstantPopups()
public void addCurrentToHistory()
public void doBackwardSearch()
public void doForwardSearch()
public void historyPrevious()
public void historyNext()
public javax.swing.text.Document getDocument()
public java.lang.String getText()
public void setText(java.lang.String text)
public int getInputStart()
public void showPopupMenu(java.lang.String t, int x, int y)
public void showPopupMenu(boolean search)