public class SkinsFactory extends Object
org.jets3t.gui.skins.<skinName>
Skinned classes are specially-named extensions to standard Swing classes, which must have a
constructor of the form public SkinnedJButton(Properties skinProperties, String itemName)
.
This constructor allows skinned GUI elements to change their look or behaviour based on any
skin-specific properties that are provided, or based on the name of a specific GUI element.
The skinned class names supported by this factory include:
Class name | Extends |
---|---|
SkinnedJButton | javax.swing.JButton |
SkinnedJHtmlLabel | org.jets3t.gui.JHtmlLabel |
SkinnedJPanel | javax.swing.JPanel |
SkinnedLookAndFeel | javax.swing.plaf.metal.MetalLookAndFeel |
public static final String NO_SKIN
public static SkinsFactory getInstance(Properties properties)
skin.<skinName>.
properties
- a set of properties that may contain skin-specific properties.public LookAndFeel createSkinnedMetalTheme(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedLookAndFeel
class implementation for the current skin, or the default
system LookAndFeel if no skin-specific implementation is available.public JButton createSkinnedJButton(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJButton
class implementation for the current skin, or a default
JButton if no skin-specific implementation is available.public JRadioButton createSkinnedJRadioButton(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJRadioButton
class implementation for the current skin, or a default
JRadioButton if no skin-specific implementation is available.public JComboBox createSkinnedJComboBox(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJComboBox
class implementation for the current skin, or a default
JComboBox if no skin-specific implementation is available.public JCheckBox createSkinnedJCheckBox(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJComboBox
class implementation for the current skin, or a default
JComboBox if no skin-specific implementation is available.public JPanel createSkinnedJPanel(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJPanel
class implementation for the current skin, or a default
JPanel if no skin-specific implementation is available.public JTable createSkinnedJTable(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJTable
class implementation for the current skin, or a default
JPanel if no skin-specific implementation is available.public JScrollPane createSkinnedJScrollPane(String itemName, Object view)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.view
- the client's viewport view to be used.SkinnedJScrollPane
class implementation for the current skin, or a default
JScrollPane if no skin-specific implementation is available.public JScrollPane createSkinnedJScrollPane(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJScrollPane
class implementation for the current skin, or a default
JScrollPane if no skin-specific implementation is available.public JHtmlLabel createSkinnedJHtmlLabel(String itemName, HyperlinkActivatedListener hyperlinkListener)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJLabel
class implementation for the current skin, or a default
JHtmlLabel if no skin-specific implementation is available.public JHtmlLabel createSkinnedJHtmlLabel(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJLabel
class implementation for the current skin, or a default
JHtmlLabel if no skin-specific implementation is available.public JPasswordField createSkinnedJPasswordField(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJPasswordField
class implementation for the current skin, or a default
JPasswordField if no skin-specific implementation is available.public JTextField createSkinnedJTextField(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJTextField
class implementation for the current skin, or a default
JTextField if no skin-specific implementation is available.public JTextArea createSkinnedJTextArea(String itemName)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJTextArea
class implementation for the current skin, or a default
JTextArea if no skin-specific implementation is available.public JPopupMenu createSkinnedJPopupMenu(String itemName)
public JProgressBar createSkinnedJProgressBar(String itemName, int min, int max)
itemName
- the name of this specific item in the GUI, which may be used to determine how the skinned
item should look or behave.SkinnedJProgressBar
class implementation for the current skin, or a default
JProgressBar if no skin-specific implementation is available.Copyright © 2006–2018. All rights reserved.