|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.commons.gui.completion.GlobalDefaultCompletionMode
public class GlobalDefaultCompletionMode
This mode acts as a proxy for another mode that can be set as global default.
| Constructor Summary | |
|---|---|
GlobalDefaultCompletionMode()
|
|
| Method Summary | |
|---|---|
void |
disable()
Disables the completion mode letting it remove its listeners from the text component. |
void |
enable(Completion completion)
Enables the completion mode letting it add its listeners to the text component. |
static String |
getCompletionMode()
Returns the class name of the currently used completion mode. |
static void |
setCompletionMode(String className)
Calls to this method need to be Swing thread synchronized. |
void |
updateMode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalDefaultCompletionMode()
| Method Detail |
|---|
public void enable(Completion completion)
CompletionMode
enable in interface CompletionModecompletion - provides all components and information the completion
mode must know aboutpublic void disable()
CompletionMode
disable in interface CompletionModepublic void updateMode()
public static String getCompletionMode()
public static void setCompletionMode(String className)
className - must not be null, must not be
the class name of DefaultCompletionMode itself.
IllegalArgumentException - if className violates
one of the requirements stated above
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||