Class HistoryText
java.lang.Object
org.bidib.wizard.mvc.common.view.text.HistoryText
Controller (manager of models) for HistoryTextArea.
- Version:
- $Id: HistoryText.java 13414 2008-08-24 08:38:18Z k_satoda $
- Author:
- Slava Pestov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the currently entered item to the history.voidvoidvoidintgetIndex()intSubclasses can override this to provide funky history behavior, for JTextPanes and such.booleanReturns 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.voidvoidvoidsetIndex(int index) voidsetInstantPopups(boolean instantPopups) Sets if selecting a value from the popup should immediately fire an ActionEvent.voidSets the history list controller.voidSubclasses can override this to provide funky history behavior, for JTextPanes and such.voidshowPopupMenu(boolean search) voidshowPopupMenu(String t, int x, int y) static voidshowPopupMenu(JPopupMenu popup, Component comp, int x, int y, boolean point) Shows the specified popup menu, ensuring it is displayed within the bounds of the screen.
-
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) -
showPopupMenu
Shows the specified popup menu, ensuring it is displayed within the bounds of the screen.- Parameters:
popup- The popup menucomp- The component to show it forx- The x co-ordinatey- The y co-ordinatepoint- If true, then the popup originates from a single point; otherwise it will originate from the component itself. This affects positioning in the case where the popup does not fit onscreen.- Since:
- jEdit 4.1pre1
-