|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jenkins.ui.icon.Icon
public class Icon
Simple icon metadata class.
| Field Summary | |
|---|---|
static String |
ICON_LARGE_STYLE
|
static String |
ICON_MEDIUM_STYLE
|
static String |
ICON_SMALL_STYLE
|
static String |
ICON_XLARGE_STYLE
|
| Constructor Summary | |
|---|---|
Icon(String classSpec,
String style)
Icon instance. |
|
Icon(String classSpec,
String url,
String style)
Icon instance. |
|
Icon(String classSpec,
String url,
String style,
IconType iconType)
Icon instance. |
|
| Method Summary | |
|---|---|
String |
getClassSpec()
Get the class specification for this Icon. |
String |
getNormalizedSelector()
Get the icon's normalized CSS selector. |
String |
getQualifiedUrl(org.apache.commons.jelly.JellyContext context)
Get the qualified icon url. |
String |
getStyle()
Get the icon style. |
String |
getUrl()
Get the icon url. |
static String |
toNormalizedCSSSelector(String classNames)
Generate a normalized CSS selector from the space separated list of icon class names. |
static String |
toNormalizedIconName(String string)
Normalize the supplied string to an Icon name e.g. |
static String |
toNormalizedIconNameClass(String string)
Normalize the supplied string to an Icon name class e.g. |
static String |
toNormalizedIconSizeClass(String string)
Normalize the supplied string to an Icon size class e.g. |
static String |
toNormalizedIconUrl(String url)
Normalize the supplied url. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ICON_SMALL_STYLE
public static final String ICON_MEDIUM_STYLE
public static final String ICON_LARGE_STYLE
public static final String ICON_XLARGE_STYLE
| Constructor Detail |
|---|
public Icon(String classSpec,
String style)
core icon.
classSpec - The icon class names.style - The icon style.
public Icon(String classSpec,
String url,
String style)
core icon.
classSpec - The icon class names.url - The icon image url.style - The icon style.
public Icon(String classSpec,
String url,
String style,
IconType iconType)
classSpec - The icon class specification.url - The icon image url.style - The icon style.iconType - The icon type.| Method Detail |
|---|
public String getClassSpec()
public String getNormalizedSelector()
toNormalizedCSSSelector(String)public String getUrl()
public String getQualifiedUrl(org.apache.commons.jelly.JellyContext context)
context - The JellyContext.
public String getStyle()
public static String toNormalizedIconNameClass(String string)
string - The string to be normalized.
public static String toNormalizedIconName(String string)
string - The string to be normalized.
public static String toNormalizedIconSizeClass(String string)
string - The string to be normalized.
string arg
if it was an unrecognised icon size.public static String toNormalizedCSSSelector(String classNames)
classNames - The space separated list of icon class names.
public static String toNormalizedIconUrl(String url)
url - The url to be normalized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||