01: package net.suberic.util.swing;
02:
03: import javax.swing.plaf.metal.MetalTheme;
04:
05: /**
06: * A UI which can dynamically set its theme.
07: */
08:
09: public interface ThemeSupporter {
10:
11: /**
12: * Gets the Theme object from the ThemeManager which is appropriate
13: * for this UI.
14: */
15: public MetalTheme getTheme(ThemeManager mgr);
16:
17: /**
18: * Gets the currently configured Theme.
19: */
20: public MetalTheme getCurrentTheme();
21:
22: /**
23: * Sets the Theme that this component is currently using.
24: */
25: public void setCurrentTheme(MetalTheme newTheme);
26:
27: }
|