|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jenkins.ui.icon.IconSet
public class IconSet
An icon set.
| Field Summary | |
|---|---|
static IconSet |
icons
|
| Constructor Summary | |
|---|---|
IconSet()
|
|
| Method Summary | |
|---|---|
IconSet |
addIcon(Icon icon)
|
Map<String,Icon> |
getCoreIcons()
|
Icon |
getIconByClassSpec(Object iconClassSpec)
Get an icon instance from a class specification. |
Icon |
getIconByNormalizedCSSSelector(Object cssSelector)
Get an icon instance from it's normalized CSS selector. |
Icon |
getIconByUrl(Object url)
Get an icon instance from it's url. |
static void |
initPageVariables(org.apache.commons.jelly.JellyContext context)
|
static String |
toNormalizedIconNameClass(Object string)
Normalize the supplied string to an Icon name class e.g. |
static String |
toNormalizedIconSizeClass(Object string)
Normalize the supplied string to an Icon size class e.g. |
static String |
toNormalizedIconUrl(Object 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 IconSet icons
| Constructor Detail |
|---|
public IconSet()
| Method Detail |
|---|
public Map<String,Icon> getCoreIcons()
public static void initPageVariables(org.apache.commons.jelly.JellyContext context)
public IconSet addIcon(Icon icon)
public Icon getIconByNormalizedCSSSelector(Object cssSelector)
normalized CSS selector.
This Object based version allows the function to be resolvable e.g. from JEXL expressions that
are trying to perform reflective lookup using a GString (instead of a String).
cssSelector - The icon's normalized CSS selector.
null if no such icon.public Icon getIconByClassSpec(Object iconClassSpec)
Object based version allows the function to be resolvable e.g. from JEXL expressions that
are trying to perform reflective lookup using a GString (instead of a String).
iconClassSpec - The icon's class spec as defined on the <l:icon class> attribute.
null if no such icon.public Icon getIconByUrl(Object url)
Object based version allows the function to be resolvable e.g. from JEXL expressions that
are trying to perform reflective lookup using a GString (instead of a String).
url - The icon url.
null if no such icon.public static String toNormalizedIconNameClass(Object string)
Object based version allows the function to be resolvable e.g. from JEXL expressions that
are trying to perform reflective lookup using a GString (instead of a String).
string - The string to be normalized.
public static String toNormalizedIconSizeClass(Object string)
Object based version allows the function to be resolvable e.g. from JEXL expressions that
are trying to perform reflective lookup using a GString (instead of a String).
string - The string to be normalized.
string arg
if it was an unrecognised icon size.public static String toNormalizedIconUrl(Object url)
Object based version allows the function to be resolvable e.g. from JEXL expressions that
are trying to perform reflective lookup using a GString (instead of a String).
url - The url to be normalized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||