|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.5.0) E10686-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.share.services.ResourceIcon
public class ResourceIcon
ResourceIcon is an Icon that can be used both in the DT and DT@RT environments. In addition to the methods defined by the Icon interface, this class also provides a "runtime URI" that can be used to load the icon using org.apache.myfaces.trinidad.webapp.ResourceServlet
. ResourceServlet
looks for icons relative to the META-INF directory of a JAR file. Consequently it is recommended that you put your images under the META-INF directory If you want to store your images in a different location in your JAR files, you can do so, but you must also provide a suitable resource servlet that can load them.
Constructor Summary | |
---|---|
ResourceIcon(java.lang.String source) Constructor The source URI for a ResourceIcon is the absolute path from the root of the JAR file to the image. |
|
ResourceIcon(java.lang.String source, java.lang.String description) Constructor The source URI for a ResourceIcon is the absolute path from the root of the JAR file to the image. |
Method Summary | |
---|---|
java.lang.String |
getDescription() Returns the description of this icon. |
int |
getIconHeight() |
int |
getIconWidth() |
java.lang.String |
getRuntimeUri() Returns the runtime URI for the icon. |
void |
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceIcon(java.lang.String source)
source
- the absolute path from the root of your jar file to the image.public ResourceIcon(java.lang.String source, java.lang.String description)
source
- the absolute path from the root of your jar file to the image.description
- description of the iconMethod Detail |
---|
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public java.lang.String getRuntimeUri()
public java.lang.String getDescription()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.5.0) E10686-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |