org.xnap.commons.gui.completion
Class CompletionModeFactory.CompletionModeInfo

java.lang.Object
  extended by org.xnap.commons.gui.completion.CompletionModeFactory.CompletionModeInfo
Enclosing class:
CompletionModeFactory

public static class CompletionModeFactory.CompletionModeInfo
extends Object

Info class that associates a CompletionMode with a name that can be shown to the user.

Author:
Felix Berger

Constructor Summary
CompletionModeFactory.CompletionModeInfo(String name, String className)
          Constructs a new completion mode info object which can then be installed using CompletionModeFactory.installCompletionMode(CompletionModeInfo).
 
Method Summary
 String getClassName()
          Returns the class name of the completion mode.
 String getName()
          Returns the descriptive name of the completion mode.
 String toString()
          Returns the descriptive name of the completion mode, thus CompletionModeInfo object can be directly used in comobobox or list models without the need of providing a CellRenderer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompletionModeFactory.CompletionModeInfo

public CompletionModeFactory.CompletionModeInfo(String name,
                                                String className)
Constructs a new completion mode info object which can then be installed using CompletionModeFactory.installCompletionMode(CompletionModeInfo).

Parameters:
name - a possibly localized descriptive name of the completion mode, like i18n.tr("Drop down Completion").
className - the class name of the completion mode
Throws:
NullPointerException - if one of the arguments is null
Method Detail

getName

public String getName()
Returns the descriptive name of the completion mode.


getClassName

public String getClassName()
Returns the class name of the completion mode.


toString

public String toString()
Returns the descriptive name of the completion mode, thus CompletionModeInfo object can be directly used in comobobox or list models without the need of providing a CellRenderer.

Overrides:
toString in class Object


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.