public final class UIFactory extends Object
When we want to change a color, a background or a font this is the class that should be modified.
Modifier and Type | Class and Description |
---|---|
static class |
UIFactory.IconType
The following enumeration contains the different icons that we can have.
|
static class |
UIFactory.TextStyle
The following enumeration contains the different text styles that we can have.
|
Modifier and Type | Method and Description |
---|---|
static String |
applyErrorBackgroundToHtml(String html)
Returns the html text passed as parameter with the error background applied to it.
|
static String |
getIconHtml(UIFactory.IconType iconType)
Returns the HTML string representing the provided IconType.
|
static ImageIcon |
getImageIcon(UIFactory.IconType iconType)
Returns an ImageIcon object for the provided IconType.
|
static void |
initializeLookAndFeel()
This method initialize the look and feel.
|
static JEditorPane |
makeHtmlPane(LocalizableMessage text,
Font font)
Returns a read only JEditorPane containing the provided text with the provided font.
|
static void |
setScrollIncrementUnit(JScrollPane scroll)
Sets the scroll increment unit for the scroll.
|
public static void initializeLookAndFeel() throws Throwable
Throwable
- if there is a problem initializing the look and feel.public static String getIconHtml(UIFactory.IconType iconType)
iconType
- the IconType for which we want the HTML representation.public static ImageIcon getImageIcon(UIFactory.IconType iconType)
iconType
- the IconType for which we want to obtain the ImageIcon.public static JEditorPane makeHtmlPane(LocalizableMessage text, Font font)
text
- the text to be used to initialize the JEditorPane contents.font
- the font to be used.public static void setScrollIncrementUnit(JScrollPane scroll)
scroll
- the scroll to be updated.Copyright © 2010–2017 ForgeRock AS. All rights reserved.