-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I have opened a file in the browser, how to get Opened Book name from zk 3.0. Earlier using ZK 2.5 i used this code " DesktopWorkbenchContext workbench = getDesktopWorkbenchContext(); String myfile_name = workbench.getWorkbookCtrl().getBookName(); " Here in ZK 3.0 i can see BookInfo as interface where a method getName() is there but unable to get the instance.
Please help me . Thanks , Sivaprasad
Asked: 2013-11-19 12:53:31 +0800
Seen: 8 times
Last updated: Nov 19 '13
hi, do you mean ZSS 3.0, right? (because there is no Book class in zk 3.0). If so, you can refer to following link:
hawk ( 2013-11-20 01:07:51 +0800 )editgetBookName()
http://www.zkoss.org/javadoc/latest/zss/org/zkoss/zss/api/model/Book.html The basic concept of book model: http://books.zkoss.org/wiki/ZKSpreadsheetEssentials/I tried to implement interface. but unable to understand how to get book name out of it. I did this way- I took a class called BookImpl and implemented Book interface. But it returns me null. How to implement Book(I) for getting book name reply me as soon as possible
sivaprasadjvs ( 2013-11-20 07:56:01 +0800 )editYou don't have to implement Book interface. You can get its object from Spreadsheet component. How to get Spreadsheet component? you can it from SelectorComposer. please refer to http://books.zkoss.org/wiki/ZKSpreadsheetEssentials/WorkingwithSpreadsheet/SpreadsheetDataModel
hawk ( 2013-11-21 03:10:15 +0800 )edit