Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (obj == null)
{
return false;
}
ListData lst = (ListData)obj;
return lst._info == _info && Arrays.equals(lst._levels, _levels) &&
lst._lsid == _lsid && lst._reserved == _reserved && lst._tplc == _tplc &&
Arrays.equals(lst._rgistd, _rgistd);
|
public org.apache.poi.hwpf.model.ListLevel | getLevel(int index)Gets the level associated to a particular List at a particular index.
return _levels[index - 1];
|
public int | getLevelStyle(int index)
return _rgistd[index];
|
public org.apache.poi.hwpf.model.ListLevel[] | getLevels()
return _levels;
|
public int | getLsid()
return _lsid;
|
public int | numLevels()
return _levels.length;
|
int | resetListID()
_lsid = (int)(Math.random() * (double)System.currentTimeMillis());
return _lsid;
|
public void | setLevel(int index, org.apache.poi.hwpf.model.ListLevel level)
_levels[index] = level;
|
public void | setLevelStyle(int index, int styleIndex)
_rgistd[index] = (short)styleIndex;
|
public byte[] | toByteArray()
byte[] buf = new byte[28];
int offset = 0;
LittleEndian.putInt(buf, _lsid);
offset += LittleEndian.INT_SIZE;
LittleEndian.putInt(buf, offset, _tplc);
offset += LittleEndian.INT_SIZE;
for (int x = 0; x < 9; x++)
{
LittleEndian.putShort(buf, offset, _rgistd[x]);
offset += LittleEndian.SHORT_SIZE;
}
buf[offset++] = _info;
buf[offset] = _reserved;
return buf;
|