File: LafComponentPlugin.java

package info (click to toggle)
squareness 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 528 kB
  • ctags: 660
  • sloc: java: 5,594; xml: 55; makefile: 9
file content (43 lines) | stat: -rw-r--r-- 1,328 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.jvnet.lafplugin;

import javax.swing.plaf.metal.MetalTheme;

/**
 * Basic interface for look-and-feel plugins.
 * 
 * @author Kirill Grouchnikov
 * @author Erik Vickroy
 * @author Robert Beeger
 * @author Frederic Lavigne
 * @author Pattrick Gotthardt
 */
public interface LafComponentPlugin extends LafPlugin {
	/**
	 * XML tag for look-and-feel plugins that specify component UI delegates.
	 */
	public static final String COMPONENT_TAG_PLUGIN_CLASS = "component-plugin-class";

	/**
	 * Initializes <code>this</code> plugin.
	 */
	public void initialize();

	/**
	 * Unitializes <code>this</code> plugin.
	 */
	public void uninitialize();

	/**
	 * Retrieves a collection of custom settings based on the specified theme.
	 * The entries in the array should be pairwise, odd being symbolic name of a
	 * setting, and even being the setting value.
	 * 
	 * @param themeInfo
	 *            Theme information object. Can be {@link MetalTheme}, for
	 *            instance or any other LAF-specific object.
	 * @return Collection of custom settings based on the specified theme. The
	 *         entries in the array should be pairwise, odd being symbolic name
	 *         of a setting, and even being the setting value.
	 */
	public Object[] getDefaults(Object themeInfo);
}