org.pushingpixels.flamingo.api.common
public static class AbstractFileViewPanel.Leaf extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
leafName
Leaf name.
|
protected Map<String,Object> |
leafProps
Leaf property map.
|
protected InputStream |
leafStream
Stream with the contents of the leaf file.
|
Constructor and Description |
---|
AbstractFileViewPanel.Leaf(String leafName,
InputStream leafStream)
Creates a new leaf.
|
Modifier and Type | Method and Description |
---|---|
String |
getLeafName()
Returns the leaf name.
|
Object |
getLeafProp(String propName)
Returns the leaf property with the specified name.
|
Map<String,Object> |
getLeafProps()
Returns the map of all the properties of this leaf.
|
InputStream |
getLeafStream()
Returns the stream with the contents of the leaf file.
|
void |
setLeafProp(String propName,
Object propValue)
Sets the leaf property with the specified name.
|
protected String leafName
protected InputStream leafStream
public AbstractFileViewPanel.Leaf(String leafName, InputStream leafStream)
leafName
- Leaf name.leafStream
- Stream with the contents of the leaf file.public String getLeafName()
public InputStream getLeafStream()
public Object getLeafProp(String propName)
propName
- Property name.public void setLeafProp(String propName, Object propValue)
propName
- Property name.propValue
- Property value.