format and sort members

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147379 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-16 08:17:34 +00:00
parent f3c63c65c1
commit a54fbd1ada

View File

@ -20,10 +20,8 @@ package org.apache.poi.hwpf.usermodel;
import org.apache.poi.hwpf.HWPFOldDocument; import org.apache.poi.hwpf.HWPFOldDocument;
import org.apache.poi.hwpf.model.SEPX; import org.apache.poi.hwpf.model.SEPX;
public final class Section public final class Section extends Range
extends Range
{ {
private SectionProperties _props; private SectionProperties _props;
public Section( SEPX sepx, Range parent ) public Section( SEPX sepx, Range parent )
@ -38,9 +36,11 @@ public final class Section
_props = sepx.getSectionProperties(); _props = sepx.getSectionProperties();
} }
public int type() public Object clone() throws CloneNotSupportedException
{ {
return TYPE_SECTION; Section s = (Section) super.clone();
s._props = (SectionProperties) _props.clone();
return s;
} }
public int getNumColumns() public int getNumColumns()
@ -48,18 +48,14 @@ public final class Section
return _props.getCcolM1() + 1; return _props.getCcolM1() + 1;
} }
public Object clone()
throws CloneNotSupportedException
{
Section s = (Section)super.clone();
s._props = (SectionProperties)_props.clone();
return s;
}
@Override @Override
public String toString() public String toString()
{ {
return "Section [" + getStartOffset() + "; " + getEndOffset() + ")"; return "Section [" + getStartOffset() + "; " + getEndOffset() + ")";
} }
public int type()
{
return TYPE_SECTION;
}
} }