|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.contrib.html.AbstractContentProducer
org.jhotdraw.contrib.html.ResourceContentProducer
public class ResourceContentProducer
ResourceContentProducer produces contents from resource in the application's
CLASSPATH.
It takes a resource name and loads the resource as a String.
It can either be specific if set for a specific resource, or generic, retrieving
any resource passed to the getContents method.
| Field Summary | |
|---|---|
private java.lang.String |
fResourceName
Description of the Field |
| Fields inherited from class org.jhotdraw.contrib.html.AbstractContentProducer |
|---|
serialVersionUID |
| Fields inherited from interface org.jhotdraw.contrib.html.ContentProducer |
|---|
ENTITY_ARROW_MODE, ENTITY_FIGURE_HEIGHT, ENTITY_FIGURE_POSX, ENTITY_FIGURE_POSY, ENTITY_FIGURE_WIDTH, ENTITY_FILL_COLOR, ENTITY_FONT_NAME, ENTITY_FONT_SIZE, ENTITY_FONT_STYLE, ENTITY_FRAME_COLOR |
| Constructor Summary | |
|---|---|
ResourceContentProducer()
Constructor for the ResourceContentProducer object |
|
ResourceContentProducer(java.lang.String resourceName)
Constructor for the ResourceContentProducer object |
|
| Method Summary | |
|---|---|
java.lang.Object |
getContent(ContentProducerContext context,
java.lang.String ctxAttrName,
java.lang.Object ctxAttrValue)
Gets the content attribute of the ResourceContentProducer object |
java.lang.String |
getResourceName()
|
void |
read(StorableInput dr)
Writes the storable |
protected void |
setResourceName(java.lang.String newResourceName)
|
void |
write(StorableOutput dw)
Writes the storable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String fResourceName
| Constructor Detail |
|---|
public ResourceContentProducer()
public ResourceContentProducer(java.lang.String resourceName)
resourceName - Description of the Parameter| Method Detail |
|---|
public java.lang.Object getContent(ContentProducerContext context,
java.lang.String ctxAttrName,
java.lang.Object ctxAttrValue)
getContent in interface ContentProducercontext - Description of the ParameterctxAttrName - Description of the ParameterctxAttrValue - Description of the Parameter
public void write(StorableOutput dw)
write in interface Storablewrite in class AbstractContentProducerdw - the storable output
public void read(StorableInput dr)
throws java.io.IOException
read in interface Storableread in class AbstractContentProducerdr - the storable input
java.io.IOException - thrown by called methodspublic java.lang.String getResourceName()
protected void setResourceName(java.lang.String newResourceName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||