|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.ui.AutoCompletePopup
public class AutoCompletePopup
Autocomplete support.
| Field Summary | |
|---|---|
protected Set<MainFrameStatics.AutoCompletePopupEntry> |
_allEntries
Complete set of entries. |
protected Set<MainFrameStatics.AutoCompletePopupEntry> |
_apiEntries
Set of all the Java API classes. |
(package private) JCheckBox |
_completeJavaAPICheckbox
Checkbox that controls whether Java API classes are included. |
protected Set<MainFrameStatics.AutoCompletePopupEntry> |
_docEntries
Set of the document entries. |
protected PredictiveInputFrame.FrameState |
_lastState
Frame state. |
protected MainFrame |
_mainFrame
Main frame. |
| Constructor Summary | |
|---|---|
AutoCompletePopup(MainFrame mf)
Constructor for an auto-complete popup that uses the MainFrame for information. |
|
AutoCompletePopup(MainFrame mf,
String frameState)
Constructor for an auto-complete popup that uses the MainFrame for information. |
|
| Method Summary | |
|---|---|
private void |
addJavaAPI()
|
protected PredictiveInputFrame<MainFrameStatics.AutoCompletePopupEntry> |
createCompleteWordDialog(String title,
int start,
int loc,
SizedIterable<String> actionNames,
SizedIterable<KeyStroke> actionKeyStrokes,
Runnable canceledAction,
SizedIterable<Runnable3<MainFrameStatics.AutoCompletePopupEntry,Integer,Integer>> acceptedActions)
|
PredictiveInputFrame.FrameState |
getFrameState()
Returns the last state of the frame, i.e. |
private void |
removeJavaAPI()
|
void |
setFrameState(PredictiveInputFrame.FrameState ds)
Sets state of the frame, i.e. |
void |
setFrameState(String s)
Sets state of the frame, i.e. |
void |
show(Component parent,
String title,
String initial,
int loc,
Runnable canceledAction,
Runnable3<MainFrameStatics.AutoCompletePopupEntry,Integer,Integer> acceptedAction)
Display an auto-complete popup with the specified window title centered around the parent component. |
void |
show(Component parent,
String title,
String initial,
int loc,
SizedIterable<String> actionNames,
Runnable canceledAction,
SizedIterable<Runnable3<MainFrameStatics.AutoCompletePopupEntry,Integer,Integer>> acceptedActions)
Display an auto-complete popup with the specified window title centered around the parent component. |
void |
show(Component parent,
String title,
String initial,
int loc,
SizedIterable<String> actionNames,
SizedIterable<KeyStroke> actionKeyStrokes,
int oneMatchActionIndex,
Runnable canceledAction,
SizedIterable<Runnable3<MainFrameStatics.AutoCompletePopupEntry,Integer,Integer>> acceptedActions)
Display an auto-complete popup with the specified window title centered around the parent component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final MainFrame _mainFrame
JCheckBox _completeJavaAPICheckbox
protected PredictiveInputFrame.FrameState _lastState
protected final Set<MainFrameStatics.AutoCompletePopupEntry> _allEntries
protected final Set<MainFrameStatics.AutoCompletePopupEntry> _docEntries
protected final Set<MainFrameStatics.AutoCompletePopupEntry> _apiEntries
| Constructor Detail |
|---|
public AutoCompletePopup(MainFrame mf)
mf - main frame of DrJava
public AutoCompletePopup(MainFrame mf,
String frameState)
mf - main frame of DrJavaframeState - position and size of the dialog| Method Detail |
|---|
public void show(Component parent,
String title,
String initial,
int loc,
Runnable canceledAction,
Runnable3<MainFrameStatics.AutoCompletePopupEntry,Integer,Integer> acceptedAction)
parent - parent GUI componenttitle - window titleinitial - initial textloc - caret location in the initial textcanceledAction - action to take if canceledacceptedAction - action to take if accepted
public void show(Component parent,
String title,
String initial,
int loc,
SizedIterable<String> actionNames,
Runnable canceledAction,
SizedIterable<Runnable3<MainFrameStatics.AutoCompletePopupEntry,Integer,Integer>> acceptedActions)
parent - parent GUI componenttitle - window titleinitial - initial textloc - caret location in the initial textactionNames - names for the actionscanceledAction - action to take if canceledacceptedActions - actions to take if accepted
public void show(Component parent,
String title,
String initial,
int loc,
SizedIterable<String> actionNames,
SizedIterable<KeyStroke> actionKeyStrokes,
int oneMatchActionIndex,
Runnable canceledAction,
SizedIterable<Runnable3<MainFrameStatics.AutoCompletePopupEntry,Integer,Integer>> acceptedActions)
parent - parent GUI componenttitle - window titleinitial - initial textloc - caret location in the initial textactionNames - names for the actionsactionKeyStrokes - keystrokes for the actionsoneMatchActionIndex - the action to take when there's just one match, or -1canceledAction - action to take if canceledacceptedActions - actions to take if accepted public PredictiveInputFrame.FrameState getFrameState()
public void setFrameState(PredictiveInputFrame.FrameState ds)
ds - State to update to, or null to resetpublic void setFrameState(String s)
s - State to update to, or null to reset
protected PredictiveInputFrame<MainFrameStatics.AutoCompletePopupEntry> createCompleteWordDialog(String title,
int start,
int loc,
SizedIterable<String> actionNames,
SizedIterable<KeyStroke> actionKeyStrokes,
Runnable canceledAction,
SizedIterable<Runnable3<MainFrameStatics.AutoCompletePopupEntry,Integer,Integer>> acceptedActions)
private void addJavaAPI()
private void removeJavaAPI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||