DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28328>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28328 ------- Additional Comments From [EMAIL PROTECTED] 2005-08-01 16:38 ------- Created an attachment (id=15841) --> (http://issues.apache.org/bugzilla/attachment.cgi?id=15841&action=view) WindowOneRecord's selectedTab and displayedTab are made accessible via usermodel api HSSFSheet#setSelected(boolean) cause the "tab selection" in excel to be set - which simply means that the tab is seen as selected but the actual data could be from a different tab (sheet). BiffViewer indicated that "Sheet selection" is actually controlled by WindowOneRecord.selectedTab. This patch adds setter/getters for the WindowOneRecord in Workbook which is then used by newly added usermodel method HSSFWorkbook#setSelectedTab(short) to set the selected sheet. (Similarly, although not directly related to this bug, setDisplayedTab was added to HSSFWorkbook to allow setting the default displayed "first" tab in excel) It must be noted that to get the exact effect of selecting a sheet you would (after this patch) need to use: for (...) { // cycle over all sheets in workbook // causes previous selection to be deselected sheet.setSelected(false); } sheet = workbook.getSheetAt(mySheetIndex); // show the tab as selected sheet.setSelected(true); // show the data frm selected sheet workbook.setSelectedTab((short) mySheetIndex); -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/
