|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.webapp.model.IconRegistry
public class IconRegistry
A registry of icons so they can be served up to the view. This registry works on the principle that an icon id identifies the same icon for all jobs.
Constructor Summary | |
---|---|
IconRegistry()
|
Method Summary | |
---|---|
void |
register(String iconId,
Iconic iconic)
Register an iconId. |
byte[] |
retrieve(String iconId)
Retrieve an IconTip for a given icon id. |
protected void |
writeIcon(ImageIcon icon,
OutputStream out)
Write the icon to an output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IconRegistry()
Method Detail |
---|
public void register(String iconId, Iconic iconic)
iconId
- The iconId.iconic
- The Iconic that can provide
the lookup.protected void writeIcon(ImageIcon icon, OutputStream out)
icon
- The icon.out
- The output stream. This method will close the output
stream.public byte[] retrieve(String iconId)
iconId
- The iconId.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |