Fix the name of the RootProperty, as it never changes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
01626c6626
commit
30a23fc7b4
@ -26,10 +26,11 @@ import org.apache.poi.poifs.storage.SmallDocumentBlock;
|
|||||||
* @author Marc Johnson (mjohnson at apache dot org)
|
* @author Marc Johnson (mjohnson at apache dot org)
|
||||||
*/
|
*/
|
||||||
public final class RootProperty extends DirectoryProperty {
|
public final class RootProperty extends DirectoryProperty {
|
||||||
|
private static final String NAME = "Root Entry";
|
||||||
|
|
||||||
RootProperty()
|
RootProperty()
|
||||||
{
|
{
|
||||||
super("Root Entry");
|
super(NAME);
|
||||||
|
|
||||||
// overrides
|
// overrides
|
||||||
setNodeColor(_NODE_BLACK);
|
setNodeColor(_NODE_BLACK);
|
||||||
@ -59,4 +60,13 @@ public final class RootProperty extends DirectoryProperty {
|
|||||||
{
|
{
|
||||||
super.setSize(SmallDocumentBlock.calcSize(size));
|
super.setSize(SmallDocumentBlock.calcSize(size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the fixed name "Root Entry", as the
|
||||||
|
* raw property doesn't have a real name set
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return NAME;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user