All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ResourceBuilderPanel extends RoundRectPanel
See Also:
  • Constructor Details

    • ResourceBuilderPanel

      public ResourceBuilderPanel(DesignerContext context, String noun, ResourcePath rootFolder, List<ResourceBuilderDelegate> templates, Consumer<ResourcePath> onAfterCreate)
      A resource builder panel provides standard UI for the workspace welcome pane to help new users create resources, optionally providing resource templates.
      Parameters:
      templates - There must be at least one template for this panel to function. There must be at least two templates for the template options to show up visually.
    • ResourceBuilderPanel

      public ResourceBuilderPanel(DesignerContext context, String noun, ResourcePath rootFolder, List<ResourceBuilderDelegate> templates, Consumer<ResourcePath> onAfterCreate, Function<StringPath,String> namePredicate)
      A resource builder panel provides standard UI for the workspace welcome pane to help new users create resources, optionally providing resource templates.
      Parameters:
      templates - There must be at least one template for this panel to function. There must be at least two templates for the template options to show up visually.
      namePredicate - Will be provided the user's entered path, and should return a String (or null) if there is a problem with the given path; see ValidatedTextField.
  • Method Details

    • createTitleLabel

      protected JLabel createTitleLabel()