open source java office, day 15: files handling in the netbeans application framework
DESCRIPTION
Day 15 of writing an open source office suite in Java. Today the files handling in the NetBeans Application Framework (new, open, save, save as, close)TRANSCRIPT
http://www.joeffice.org © Copyright 2013 - Japplis
Joeffice
Files(New, Open, Save,
Save As, Close)
Day 1
5
http://www.joeffice.org © Copyright 2013 - Japplis
New File
➢ Templates works only if a project is created– Thanks to Sam Harwell to fit it in http://netbeans.org/bugzilla/show_bug.cgi?id=186943
➢ findDataObject("Templates/Other");
http://www.joeffice.org © Copyright 2013 - Japplis
New File
http://www.joeffice.org © Copyright 2013 - Japplis
New File
http://www.joeffice.org © Copyright 2013 - Japplis
Open
➢ OpenCookie➢ OpenSupport➢ DataObject : getCookieSet().add(OfficeOpenSupport.class, this);
http://www.joeffice.org © Copyright 2013 - Japplis
Open
● CookieSet.Factory
http://www.joeffice.org © Copyright 2013 - Japplis
Close
● CloseCookie that does nothing● Implement closeLast of CloneableTopComponent
http://www.joeffice.org © Copyright 2013 - Japplis
Save
● SaveCookie
http://www.joeffice.org © Copyright 2013 - Japplis
Save As
● Implement SaveAsCapable interface
http://www.joeffice.org © Copyright 2013 - Japplis
http://www.joeffice.org © Copyright 2013 - Japplis
Joeffice
● Java Office Suite● Open Source (Apache licence 2.0)● Offline & Online● Tabs and docking editors● Works on Windows, MacOS X, Linux