The Folder and Column Facets

An object which is representable as a collection of other objects may have a Interface org.favabeans.base.FolderFolder Interface org.favabeans.base.FacetFacet (Figure 4.7) which enables it to be displayed in a generic "folder" UI element.

Figure 4.7. The Interface org.favabeans.base.FolderFolder and Interface org.favabeans.base.ColumnColumn Interface org.favabeans.base.FacetFacets.

A Interface org.favabeans.base.FolderFolder provides a list of Interface org.favabeans.base.ColumnColumn objects, each of which represents some property of all the elements of the Interface org.favabeans.base.FolderFolder. The Interface org.favabeans.base.ColumnColumns can be used by UI elements to provide a tabular view of the contents of the Interface org.favabeans.base.FolderFolder, and to sort the contents of the Interface org.favabeans.base.FolderFolder based on the property represented by the Interface org.favabeans.base.ColumnColumn.

Important

The Interface org.favabeans.base.FolderFolderInterface org.favabeans.base.FacetFacet should provide certain standard columns, exactly equivalent to the "standard properties" of Interface org.favabeans.base.PropertiesPropertiess. For example, we would have methods getDisplayName(int) and getDisplayNameColumn().