public class DefaultIconCollection extends IconCollection
Modifier and Type | Field and Description |
---|---|
protected Properties |
format2Icon
The format2 icon.
|
protected static int |
priority
priority for this icon collection
|
Constructor and Description |
---|
DefaultIconCollection()
Instantiates a new default icon mapper.
|
Modifier and Type | Method and Description |
---|---|
String |
formatToIconName(URI format)
Get an icon file name given a format, as it can be found in our jar
archive.
|
InputStream |
formatToIconStream(URI format)
Get an icon stream given a format.
|
URL |
formatToIconUrl(URI format)
Get a URL pointing to an icon in the archive.
|
Set<Object> |
getAvailableFormatIcons()
Get a list of formats for that we have an icon.
|
int |
getPriority()
Defines the priority of this collection.
|
boolean |
hasIcon(URI format)
Returns true, if the given format is available in this collection.
|
static void |
setPriority(int newPriority)
Sets the priority of this icon collection and triggers a resort of all
icon collection.
|
protected static int priority
protected Properties format2Icon
public DefaultIconCollection()
public static void setPriority(int newPriority)
newPriority
- public int getPriority()
IconCollection
getPriority
in class IconCollection
public boolean hasIcon(URI format)
IconCollection
hasIcon
in class IconCollection
public URL formatToIconUrl(URI format)
IconCollection
null
is supposed to be returned.formatToIconUrl
in class IconCollection
public InputStream formatToIconStream(URI format)
IconCollection
null
is supposed to be returned.formatToIconStream
in class IconCollection
public String formatToIconName(URI format)
IconCollection
null
is supposed to be returned.formatToIconName
in class IconCollection
Copyright © 2015 SEMS. All rights reserved.