Package ca.corbett.extras.demo.panels
Class PropertiesDemoPanel
java.lang.Object
ca.corbett.extras.demo.panels.PanelBuilder
ca.corbett.extras.demo.panels.PropertiesDemoPanel
Demo panel to show off PropertiesManager and PropertiesDialog capabilities.
This is very hard to demo, because it's HIGHLY configurable and will vary greatly
from application to application. Your application can define a list of AbstractProperty
instances and hand them to a PropertiesDialog to automatically create a UI for
those properties. You don't have to write any UI code at all to support this!
To get an idea of the kinds of things you can do with PropertiesManager and PropertiesDialog, read through the buildProps() method in this class. It shows off some advanced capabilities for specifying dynamic properties for your application!
- Since:
- 2025-03-15
- Author:
- scorbo2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn example enum to show off EnumProperty. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ca.corbett.extras.demo.panels.PanelBuilder
buildFormPanel, buildFormPanel, buildHighlightedHeaderLabel, createSnippetLabel, createSnippetLabel
-
Constructor Details
-
PropertiesDemoPanel
public PropertiesDemoPanel()
-
-
Method Details
-
getTitle
Description copied from class:PanelBuilderReturns a name for this PanelBuilder.- Specified by:
getTitlein classPanelBuilder- Returns:
- A hopefully descriptive name.
-
build
Description copied from class:PanelBuilderBuilds and returns the FormPanel (or technically any JPanel) for this builder.- Specified by:
buildin classPanelBuilder- Returns:
- A populated JPanel (or FormPanel).
-