use of org.apache.poi.hwpf.model.FFData in project poi by apache.
the class CharacterRun method getDropDownListDefaultItemIndex.
public Integer getDropDownListDefaultItemIndex() {
if (getDocument() instanceof HWPFDocument) {
char c = _text.charAt(_start);
if (c == 0x01) {
NilPICFAndBinData data = new NilPICFAndBinData(((HWPFDocument) getDocument()).getDataStream(), getPicOffset());
FFData ffData = new FFData(data.getBinData(), 0);
return Integer.valueOf(ffData.getDefaultDropDownItemIndex());
}
}
return null;
}
use of org.apache.poi.hwpf.model.FFData in project poi by apache.
the class CharacterRun method getDropDownListValues.
public String[] getDropDownListValues() {
if (getDocument() instanceof HWPFDocument) {
char c = _text.charAt(_start);
if (c == 0x01) {
NilPICFAndBinData data = new NilPICFAndBinData(((HWPFDocument) getDocument()).getDataStream(), getPicOffset());
FFData ffData = new FFData(data.getBinData(), 0);
String[] values = ffData.getDropList();
return values;
}
}
return null;
}
Aggregations