|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
javax.swing.JWindow
org.fife.ui.autocomplete.ParameterizedCompletionChoicesWindow
public class ParameterizedCompletionChoicesWindow
A small popup window offering a list of likely choices for a parameter
when the user has code-completed a parameterized completion. For example,
if they have just code-completed the C function "fprintf",
when entering the file name, this popup might display all local variables
of type "char *".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JWindow |
|---|
JWindow.AccessibleJWindow |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JWindow |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ParameterizedCompletionChoicesWindow(Window parent,
AutoCompletion ac,
org.fife.ui.autocomplete.ParameterizedCompletionDescriptionToolTip tip)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getSelectedChoice()
Returns the selected value. |
void |
incSelection(int amount)
Changes the selected index. |
void |
initialize(ParameterizedCompletion pc)
Initializes this window to offer suggestions for the parameters of a specific completion. |
void |
setLocationRelativeTo(Rectangle r)
Sets the location of this window relative to the given rectangle. |
void |
setParameter(int param,
String prefix)
Displays the choices for the specified parameter matching the given text. |
void |
setVisible(boolean visible)
Toggles the visibility of this popup window. |
void |
updateUI()
Updates the LookAndFeel of this window. |
| Methods inherited from class javax.swing.JWindow |
|---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update, windowInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterizedCompletionChoicesWindow(Window parent,
AutoCompletion ac,
org.fife.ui.autocomplete.ParameterizedCompletionDescriptionToolTip tip)
parent - The parent window (hosting the text component).ac - The auto-completion instance.tip - The parent parameter description tool tip.| Method Detail |
|---|
public String getSelectedChoice()
null if nothing is
selected.public void incSelection(int amount)
amount - The amount by which to change the selected index.public void initialize(ParameterizedCompletion pc)
pc - The completion whose parameters we should offer suggestions
for.public void setLocationRelativeTo(Rectangle r)
r - The visual position of the caret (in screen coordinates).
public void setParameter(int param,
String prefix)
param - The index of the parameter the caret is currently in.
This may be -1 if not in a parameter (i.e., on
the comma between parameters).prefix - Text in the parameter before the dot. This may
be null to represent the empty string.public void setVisible(boolean visible)
setVisible in class Windowvisible - Whether this window should be visible.public void updateUI()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||