configuration forms

cusax-fix
Yana Stamcheva 20 years ago
parent 54b9e64011
commit d81fcf38ac

@ -0,0 +1,15 @@
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.gui;
public interface ConfigurationContainer {
public void addConfigurationForm (ConfigurationForm configForm);
public void removeConfigurationForm (ConfigurationForm configForm);
}

@ -0,0 +1,36 @@
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.gui;
import java.awt.Component;
import javax.swing.Icon;
/**
* @author Yana Stamcheva
*
*/
public interface ConfigurationForm {
/**
*
* @return the title of this configuration form.
*/
public String getTitle();
/**
*
* @return the icon to be showed near the title of this configuration form.
*/
public Icon getIcon();
/**
*
* @return the configuration form itself.
*/
public Component getForm();
}

@ -142,6 +142,13 @@ public void addComponent(Object component, String constraint)
public void addUserActionListener();
//========================== CONFIG FORM CONTAINER =============================
/**
* Returns the ConfigurationContainer object. The method is meant to be used to
* add or remove configuration form to or from the currently used configuration dialog.
*/
public ConfigurationContainer getConfigurationContainer();
//========================== CONFIG ======================================
//maybe add a method to show the config dialog

Loading…
Cancel
Save