| java.lang.Object com.izforge.izpack.gui.LabelFactory
LabelFactory | public class LabelFactory implements SwingConstants(Code) | |
A label factory which can handle modified look like to present icons or present it not.
author: Klaus Bartz |
Inner Class :public static class FullLineLabel extends JLabel | |
Method Summary | |
public static JLabel | create(Icon image) Returns a new JLabel with the horizontal alignment CENTER. | public static JLabel | create(Icon image, int horizontalAlignment) Returns a new JLabel with the given horizontal alignment. | public static JLabel | create(String text) Returns a new JLabel with the horizontal alignment CENTER. | public static JLabel | create(String text, boolean isFullLine) Returns a new JLabel or FullLineLabel with the horizontal alignment CENTER. | public static JLabel | create(String text, int horizontalAlignment) Returns a new JLabel with the given horizontal alignment. | public static JLabel | create(String text, int horizontalAlignment, boolean isFullLine) Returns a new JLabel or FullLineLabel with the given horizontal alignment. | public static JLabel | create(String text, Icon image, int horizontalAlignment) Returns a new JLabel with the given horizontal alignment. | public static JLabel | create(String text, Icon image, int horizontalAlignment, boolean isFullLine) Returns a new JLabel or FullLineLabel with the given horizontal alignment. | public static boolean | isUseLabelIcons() Returns whether the factory creates labels with icons or without icons. | public static void | setUseLabelIcons(boolean b) Sets the use icon state. |
create | public static JLabel create(Icon image)(Code) | | Returns a new JLabel with the horizontal alignment CENTER. If isUseLabelIcons is true, the
given image will be set to the label, else an empty label returns.
Parameters: image - the image to be used as label icon new JLabel with the given parameters |
create | public static JLabel create(Icon image, int horizontalAlignment)(Code) | | Returns a new JLabel with the given horizontal alignment. If isUseLabelIcons is true, the
given image will be set to the label, else an empty label returns.
Parameters: image - the image to be used as label icon Parameters: horizontalAlignment - horizontal alignment of the label new JLabel with the given parameters |
create | public static JLabel create(String text)(Code) | | Returns a new JLabel with the horizontal alignment CENTER.
Parameters: text - the text to be set new JLabel with the given parameters |
create | public static JLabel create(String text, boolean isFullLine)(Code) | | Returns a new JLabel or FullLineLabel with the horizontal alignment CENTER.
Parameters: text - the text to be set Parameters: isFullLine - determines whether a FullLineLabel or a JLabel should be created new JLabel or FullLineLabel with the given parameters |
create | public static JLabel create(String text, int horizontalAlignment)(Code) | | Returns a new JLabel with the given horizontal alignment.
Parameters: text - the text to be set Parameters: horizontalAlignment - horizontal alignment of the label new JLabel with the given parameters |
create | public static JLabel create(String text, int horizontalAlignment, boolean isFullLine)(Code) | | Returns a new JLabel or FullLineLabel with the given horizontal alignment.
Parameters: text - the text to be set Parameters: horizontalAlignment - horizontal alignment of the label Parameters: isFullLine - determines whether a FullLineLabel or a JLabel should be created new JLabel or FullLineLabel with the given parameters |
create | public static JLabel create(String text, Icon image, int horizontalAlignment)(Code) | | Returns a new JLabel with the given horizontal alignment. If isUseLabelIcons is true, the
given image will be set to the label. The given text will be set allways to the label. It is
allowed, that image and/or text are null.
Parameters: text - the text to be set Parameters: image - the image to be used as label icon Parameters: horizontalAlignment - horizontal alignment of the label new JLabel with the given parameters |
create | public static JLabel create(String text, Icon image, int horizontalAlignment, boolean isFullLine)(Code) | | Returns a new JLabel or FullLineLabel with the given horizontal alignment. If isUseLabelIcons
is true, the given image will be set to the label. The given text will be set allways to the
label. It is allowed, that image and/or text are null.
Parameters: text - the text to be set Parameters: image - the image to be used as label icon Parameters: horizontalAlignment - horizontal alignment of the label Parameters: isFullLine - determines whether a FullLineLabel or a JLabel should be created new JLabel or FullLineLabel with the given parameters |
isUseLabelIcons | public static boolean isUseLabelIcons()(Code) | | Returns whether the factory creates labels with icons or without icons.
whether the factory creates labels with icons or without icons |
setUseLabelIcons | public static void setUseLabelIcons(boolean b)(Code) | | Sets the use icon state.
Parameters: b - flag for the icon state |
|
|