|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An object representing a view state for a workbook. "View state" refers to settings such as active sheet, selected cells, etc.
Each user interface component such as a JBook contains a
BookView object. When multiple components have views into the same
workbook, each one has a unique BookView object; so each has its own view
state maintained independently of the others, even though the underlying
workbook is the same.
In the present version, the API for setting or retrieving view
information is the BookModel interface.
BookModel.getBookView(),
BookModel.Factory.fromBookView(BookView),
ViewContainer| Method Summary | |
Sheet |
getActiveSheet()
|
SheetView |
getActiveSheetView()
|
Book |
getBook()
|
int |
getSelectedSheetCount()
|
SheetView |
getSheetView(int sheetIndex)
Returns the SheetView associated with the sheet at the specified index. |
SheetView |
getSheetView(Sheet sheet)
Returns the SheetView associated with the specified sheet. |
| Methods inherited from interface com.f1j.util.Lockable |
getLock,
releaseLock |
| Method Detail |
public int getSelectedSheetCount()
SheetView.isSheetSelected()public Sheet getActiveSheet()
getActiveSheetView()public SheetView getActiveSheetView()
getActiveSheet()public Book getBook()
public SheetView getSheetView(Sheet sheet)
throws InvalidArgumentException
sheet - The sheet for which to return a SheetView.sheet.sheet is not part of this view's workbook.getSheetView(int)
public SheetView getSheetView(int sheetIndex)
throws com.f1j.util.InvalidIndexException
sheetIndex - The index of the sheet for which to return a SheetView.sheetIndex is not valid.getSheetView(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||