|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.commons.gui.completion.CompletionModeFactory
public class CompletionModeFactory
Factory class that manages all installed completion modes and creates them.
Nested Class Summary | |
---|---|
static class |
CompletionModeFactory.CompletionModeInfo
Info class that associates a CompletionMode with a name that
can be shown to the user. |
Constructor Summary | |
---|---|
CompletionModeFactory()
|
Method Summary | |
---|---|
static CompletionMode |
createCompletionMode(CompletionModeFactory.CompletionModeInfo info)
Creates a completion mode using the class name information from info. |
static CompletionMode |
createCompletionMode(String className)
Creates a completion mode object with the given class name. |
static CompletionModeFactory.CompletionModeInfo |
getCompletionModeInfoByClassName(String className)
Returns the completion mode info object for the className . |
static CompletionModeFactory.CompletionModeInfo[] |
getInstalledCompletionModes()
Returns all installed completion mode info objects. |
static void |
installCompletionMode(CompletionModeFactory.CompletionModeInfo info)
Installs a completion mode info object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompletionModeFactory()
Method Detail |
---|
public static CompletionModeFactory.CompletionModeInfo[] getInstalledCompletionModes()
public static CompletionModeFactory.CompletionModeInfo getCompletionModeInfoByClassName(String className)
className
.
null
if no object for that class name was foundpublic static void installCompletionMode(CompletionModeFactory.CompletionModeInfo info)
It is then returned in getInstalledCompletionModes()
.
Completion modes can not be uninstalled, since they may already be
actively used in Completion
objects and provided as possible options
in CompletionModeMenus
.
info
- public static CompletionMode createCompletionMode(CompletionModeFactory.CompletionModeInfo info) throws ClassNotFoundException, NoSuchMethodException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException, InvocationTargetException
info
-
ClassNotFoundException
NoSuchMethodException
NoSuchMethodException
InvocationTargetException
InstantiationException
IllegalAccessException
InvocationTargetException
public static CompletionMode createCompletionMode(String className) throws ClassNotFoundException, NoSuchMethodException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException, InvocationTargetException
className
-
IllegalArgumentException
- if the created object is not an
instance of type CompletionMode
.
ClassNotFoundException
NoSuchMethodException
NoSuchMethodException
InvocationTargetException
InstantiationException
IllegalAccessException
InvocationTargetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |