Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_h_hold = in.readShort();
field_2_v_hold = in.readShort();
field_3_width = in.readShort();
field_4_height = in.readShort();
field_5_options = in.readShort();
field_6_selected_tab = in.readShort();
field_7_displayed_tab = in.readShort();
field_8_num_selected_tabs = in.readShort();
field_9_tab_width_ratio = in.readShort();
|
public boolean | getDisplayHorizontalScrollbar()get whether to display the horizontal scrollbar or not
return hscroll.isSet(field_5_options);
|
public boolean | getDisplayTabs()get whether to display the tabs or not
return tabs.isSet(field_5_options);
|
public boolean | getDisplayVerticalScrollbar()get whether to display the vertical scrollbar or not
return vscroll.isSet(field_5_options);
|
public short | getDisplayedTab()get the displayed tab number
return field_7_displayed_tab;
|
public short | getHeight()get the height of the window
return field_4_height;
|
public boolean | getHidden()get whether the window is hidden or not
return hidden.isSet(field_5_options);
|
public short | getHorizontalHold()get the horizontal position of the window (in 1/20ths of a point)
return field_1_h_hold;
|
public boolean | getIconic()get whether the window has been iconized or not
return iconic.isSet(field_5_options);
|
public short | getNumSelectedTabs()get the number of selected tabs
return field_8_num_selected_tabs;
|
public short | getOptions()get the options bitmask (see bit setters)
return field_5_options;
|
public int | getRecordSize()
return 22;
|
public short | getSelectedTab()get the selected tab number
return field_6_selected_tab;
|
public short | getSid()
return sid;
|
public short | getTabWidthRatio()ratio of the width of the tabs to the horizontal scrollbar
return field_9_tab_width_ratio;
|
public short | getVerticalHold()get the vertical position of the window (in 1/20ths of a point)
return field_2_v_hold;
|
public short | getWidth()get the width of the window
return field_3_width;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset,
(( short ) 0x12)); // 18 bytes (22 total)
LittleEndian.putShort(data, 4 + offset, getHorizontalHold());
LittleEndian.putShort(data, 6 + offset, getVerticalHold());
LittleEndian.putShort(data, 8 + offset, getWidth());
LittleEndian.putShort(data, 10 + offset, getHeight());
LittleEndian.putShort(data, 12 + offset, getOptions());
LittleEndian.putShort(data, 14 + offset, getSelectedTab());
LittleEndian.putShort(data, 16 + offset, getDisplayedTab());
LittleEndian.putShort(data, 18 + offset, getNumSelectedTabs());
LittleEndian.putShort(data, 20 + offset, getTabWidthRatio());
return getRecordSize();
|
public void | setDisplayHorizonalScrollbar(boolean scroll)set whether to display the horizontal scrollbar or not
field_5_options = hscroll.setShortBoolean(field_5_options, scroll);
|
public void | setDisplayTabs(boolean disptabs)set whether to display the tabs or not
field_5_options = tabs.setShortBoolean(field_5_options, disptabs);
|
public void | setDisplayVerticalScrollbar(boolean scroll)set whether to display the vertical scrollbar or not
field_5_options = vscroll.setShortBoolean(field_5_options, scroll);
|
public void | setDisplayedTab(short t)set the displayed tab number
field_7_displayed_tab = t;
|
public void | setHeight(short h)set teh height of the window
field_4_height = h;
|
public void | setHidden(boolean ishidden)set whether the window is hidden or not
field_5_options = hidden.setShortBoolean(field_5_options, ishidden);
|
public void | setHorizontalHold(short h)set the horizontal position of the window (in 1/20ths of a point)
field_1_h_hold = h;
|
public void | setIconic(boolean isiconic)set whether the window has been iconized or not
field_5_options = iconic.setShortBoolean(field_5_options, isiconic);
|
public void | setNumSelectedTabs(short n)set the number of selected tabs
field_8_num_selected_tabs = n;
|
public void | setOptions(short o)set the options bitmask (see bit setters)
field_5_options = o;
|
public void | setSelectedTab(short s)set the selected tab number
field_6_selected_tab = s;
|
public void | setTabWidthRatio(short r)ratio of the width of the tabs to the horizontal scrollbar
field_9_tab_width_ratio = r;
|
public void | setVerticalHold(short v)set the vertical position of the window (in 1/20ths of a point)
field_2_v_hold = v;
|
public void | setWidth(short w)set the width of the window
field_3_width = w;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[WINDOW1]\n");
buffer.append(" .h_hold = ")
.append(Integer.toHexString(getHorizontalHold())).append("\n");
buffer.append(" .v_hold = ")
.append(Integer.toHexString(getVerticalHold())).append("\n");
buffer.append(" .width = ")
.append(Integer.toHexString(getWidth())).append("\n");
buffer.append(" .height = ")
.append(Integer.toHexString(getHeight())).append("\n");
buffer.append(" .options = ")
.append(Integer.toHexString(getOptions())).append("\n");
buffer.append(" .hidden = ").append(getHidden())
.append("\n");
buffer.append(" .iconic = ").append(getIconic())
.append("\n");
buffer.append(" .hscroll = ")
.append(getDisplayHorizontalScrollbar()).append("\n");
buffer.append(" .vscroll = ")
.append(getDisplayVerticalScrollbar()).append("\n");
buffer.append(" .tabs = ").append(getDisplayTabs())
.append("\n");
buffer.append(" .selectedtab = ")
.append(Integer.toHexString(getSelectedTab())).append("\n");
buffer.append(" .displayedtab = ")
.append(Integer.toHexString(getDisplayedTab())).append("\n");
buffer.append(" .numselectedtabs = ")
.append(Integer.toHexString(getNumSelectedTabs())).append("\n");
buffer.append(" .tabwidthratio = ")
.append(Integer.toHexString(getTabWidthRatio())).append("\n");
buffer.append("[/WINDOW1]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A WINDOW1 RECORD");
}
|