0

How to get Book name from ZK 3.0

asked 2013-11-19 12:53:31 +0800

sivaprasadjvs gravatar image sivaprasadjvs
1 2

updated 2013-11-19 13:04:34 +0800

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

delete flag offensive retag edit

Comments

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: getBookName()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/

hawk ( 2013-11-20 01:07:51 +0800 )edit

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 )edit

You 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
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-11-19 12:53:31 +0800

Seen: 8 times

Last updated: Nov 19 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More