Search
PaletteModel Interface
Remarks See Also
 

Defines the data model for a Palette control.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public interface PaletteModel

 Remarks

The PaletteModel interface defines the data contract for a Palette control. It provides a structured way to manage a collection of PaletteCategory objects, which in turn contain the DiagramItem instances displayed in the UI.

By implementing this interface, developers can create custom data sources for the palette, such as models that load categories dynamically from XML, database, or remote services. The Palette control uses this model to automatically generate its accordion panes and child list views.

For standard use cases, the library provides DefaultPaletteModel, a ready-to-use implementation that stores categories in an internal list.

 Inheritors

 See Also