Class PropertiesDemoPanel

java.lang.Object
ca.corbett.extras.demo.panels.PanelBuilder
ca.corbett.extras.demo.panels.PropertiesDemoPanel

public class PropertiesDemoPanel extends PanelBuilder
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
  • Constructor Details

    • PropertiesDemoPanel

      public PropertiesDemoPanel()
  • Method Details

    • getTitle

      public String getTitle()
      Description copied from class: PanelBuilder
      Returns a name for this PanelBuilder.
      Specified by:
      getTitle in class PanelBuilder
      Returns:
      A hopefully descriptive name.
    • build

      public JPanel build()
      Description copied from class: PanelBuilder
      Builds and returns the FormPanel (or technically any JPanel) for this builder.
      Specified by:
      build in class PanelBuilder
      Returns:
      A populated JPanel (or FormPanel).