Download presentation
Presentation is loading. Please wait.
Published byCarmella Austin Modified over 8 years ago
1
Data Objects & Editors David Šimonek Sun Microsystems
2
Certified Engineer Course Agenda NetBeans and OS/2 DataObject Factories Presentation Editors Q/A
3
Certified Engineer Course OS/2 32bit OS from IBM In '94 competition to Win95 Presentation Manager > object oriented desktop > object usage Loyal user base Dead by now
4
Certified Engineer Course DataObject Logical object around FileObject > more than a plain content > copy, move, shadow, createFromTemplate Multiple files Factories > many implementations Document vs. Tool model > templates, missing save as
5
Certified Engineer Course DataLoader Factory > by mime type > by extension Context Actions > String actionsContext(); > read from a layer > regular swing actions Can have persistent state
6
Certified Engineer Course FileSystems vs. Loaders API One type vs. multiple types One file vs. group of files Raw data vs. operations on them A.java A.class B.properties B_ja.properties
7
Certified Engineer Course Diagram of API Layers
8
Certified Engineer Course System DataObjects DataObject > base API class, default data object MultiDataObject > abstract support class DataFolder DataShadow InstanceDataObject > settings management
9
Certified Engineer Course Visual Creation /Templates && TemplateWizard
10
Certified Engineer Course Templating Languges Any scripting language > javax.script.ScriptEngine > http://scripting.dev.java.net http://scripting.dev.java.net Support for Freemarker > substitutions > variables > cycles CreateFromTemplateAttributeProvider TemplateWizard.putProperty(xxx) ->${wizard.xxx}
11
Certified Engineer Course Visual Representation Represented by Nodes > data objects are the model DataObject.getNodeDelegate() > DataNode - premade superclass > FolderNode & FolderChildren Write you own hierarchy > projects > files > favorites
12
Certified Engineer Course Context of a DataObject DataObject.getLookup() > added in 6.0 In case of MultiDataObject > getCookieSet().getLookup() Can be controlled by > getCookieSet().assign(Data.class, data)
13
Certified Engineer Course Text Editor API for accessing > EditorCookie > OpenCookie > EditCookie Supporting classes > CloneableEditorSupport > CloneableEditor > DataEditorSupport
14
Certified Engineer Course Conclusion DataObject > logical view over a file > created by factories Extensible via layers > actions > templates Visualized by Nodes Content edited by editors
15
DEMO File Type Integration
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.