Catalog Editor Sample
Catalog editor is a two page editor that primarily demonstrates grouping of flat data.
Key Concepts
Using a custom list binding to group items based on an item property value
Simultaneous presentation of the same items grouped in different ways.
Model
Value property
Derived value property using EL
List property (homogeneous and heterogeneous)
@ReadOnly list property
@Required
@LongString
@PossibleValues using values from model
XML
Basic root binding using @XmlBinding
Basic value property binding using @XmlBinding
Basic list property binding using @XmlListBinding
Custom list property binding using @CustomXmlListBinding
Two page editor with an XML source editor page
Forms
Master-details editor page
Extending persistent state
Custom persistent state element type for the "Show Manufacturer" and "Show Price" features
Generic persistent attributes used for the "Color Code Manufacturers" feature
Custom page-level toggle action
Content node
Content node factory
EL used for node label to base label of item nodes on item name and manufacturer
EL used for node image to implement the "Color Code Manufacturers" feature
Content node include
Reuse the same node factory definition in several places
Section
EL used for section description to customize description to context
Section Reference
Reuse the same section definition in several places
Property editor
Text field
Table
Page book
Using list selection for master-details effect
Label
Actuator
Line separator with label
Expression Language
Ternary operator (conditional expression)
Concat() function
Min() function
Max() function
Scale() function
State() function
Custom function (CatalogItemImage)
Copyright (c) 2014 Oracle
Content made available under the terms of
Eclipse Public License
.