Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.gui
Class LazyConfigurationForm

java.lang.Object
  extended by net.java.sip.communicator.service.gui.LazyConfigurationForm
All Implemented Interfaces:
ConfigurationForm

public class LazyConfigurationForm
extends Object
implements ConfigurationForm

Author:
Lubomir Marinov, Yana Stamcheva

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.gui.ConfigurationForm
ADVANCED_TYPE, CONTACT_SOURCE_TYPE, FORM_TYPE, GENERAL_TYPE, SECURITY_TYPE
 
Constructor Summary
LazyConfigurationForm(String formClassName, ClassLoader formClassLoader, String iconID, String titleID)
          Creates an instance of LazyConfigurationForm.
LazyConfigurationForm(String formClassName, ClassLoader formClassLoader, String iconID, String titleID, int index)
          Creates an instance of LazyConfigurationForm.
LazyConfigurationForm(String formClassName, ClassLoader formClassLoader, String iconID, String titleID, int index, boolean isAdvanced)
          Creates an instance of LazyConfigurationForm.
 
Method Summary
 Object getForm()
          Returns the form component.
protected  ClassLoader getFormClassLoader()
          Returns the form class loader.
 String getFormClassName()
          Returns the form class name.
 byte[] getIcon()
          Returns the icon of the form.
protected  String getIconID()
          Returns the identifier of the icon.
 int getIndex()
          Returns the index of the form in its parent container.
 String getTitle()
          Returns the title of the form.
protected  String getTitleID()
          Returns the identifier of the title of the form.
 boolean isAdvanced()
          Indicates if the form is an advanced form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyConfigurationForm

public LazyConfigurationForm(String formClassName,
                             ClassLoader formClassLoader,
                             String iconID,
                             String titleID)
Creates an instance of LazyConfigurationForm.

Parameters:
formClassName - the class name of the configuration form
formClassLoader - the class loader
iconID - the identifier of the form icon
titleID - the identifier of the form title

LazyConfigurationForm

public LazyConfigurationForm(String formClassName,
                             ClassLoader formClassLoader,
                             String iconID,
                             String titleID,
                             int index)
Creates an instance of LazyConfigurationForm.

Parameters:
formClassName - the class name of the configuration form
formClassLoader - the class loader
iconID - the identifier of the form icon
titleID - the identifier of the form title
index - the index of the form in the parent container

LazyConfigurationForm

public LazyConfigurationForm(String formClassName,
                             ClassLoader formClassLoader,
                             String iconID,
                             String titleID,
                             int index,
                             boolean isAdvanced)
Creates an instance of LazyConfigurationForm.

Parameters:
formClassName - the class name of the configuration form
formClassLoader - the class loader
iconID - the identifier of the form icon
titleID - the identifier of the form title
index - the index of the form in the parent container
isAdvanced - indicates if the form is advanced configuration form
Method Detail

getForm

public Object getForm()
Returns the form component.

Specified by:
getForm in interface ConfigurationForm
Returns:
the form component

getFormClassLoader

protected ClassLoader getFormClassLoader()
Returns the form class loader.

Returns:
the form class loader

getFormClassName

public String getFormClassName()
Returns the form class name.

Returns:
the form class name

getIcon

public byte[] getIcon()
Returns the icon of the form.

Specified by:
getIcon in interface ConfigurationForm
Returns:
a byte array containing the icon of the form

getIconID

protected String getIconID()
Returns the identifier of the icon.

Returns:
the identifier of the icon

getIndex

public int getIndex()
Returns the index of the form in its parent container.

Specified by:
getIndex in interface ConfigurationForm
Returns:
the index of the form in its parent container

getTitle

public String getTitle()
Returns the title of the form.

Specified by:
getTitle in interface ConfigurationForm
Returns:
the title of the form

getTitleID

protected String getTitleID()
Returns the identifier of the title of the form.

Returns:
the identifier of the title of the form

isAdvanced

public boolean isAdvanced()
Indicates if the form is an advanced form.

Specified by:
isAdvanced in interface ConfigurationForm
Returns:
true to indicate that this is an advanced form, otherwise returns false

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.