Class TraitConfigPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
ComponentConfigPanel

public class TraitConfigPanel extends JPanel
A standardised Panel for use by Trait configurers
See Also:
  • Constructor Details

    • TraitConfigPanel

      public TraitConfigPanel()
      Create a new default Trait Config Panel
    • TraitConfigPanel

      public TraitConfigPanel(boolean debug)
      Create a new default Trait Config Panel and specify debug option
      Parameters:
      debug - Turn debug on?
    • TraitConfigPanel

      public TraitConfigPanel(TraitLayout layout)
      Create a new Trait Config Panel with a non-standard layout
      Parameters:
      layout - Non-standard layout
  • Method Details

    • addLabel

      public void addLabel(String text)
      Add a label as a JLabel.
      Parameters:
      text - text to wrap in the JLabel
    • addControls

      public void addControls(Configurer c)
      Add the Controls from a Configurer
      Parameters:
      c - Configurer
    • addControls

      public void addControls(Configurer c, String configurerConstraints)
    • add

      public void add(JLabel label, Component c, String constraints)
      Add a component and its label with additional MigLayout constraints to this panel. NOTE: This is the base level add() method. All other add() overrides should eventually call this method.
      Parameters:
      label - Label
      c - Configurer components
      constraints - MigLayout constraints
    • add

      public void add(JLabel label, Configurer c, String configureConstraints)
      Add a Configurer and its label with additional MigLayout constraints to this panel.
      Parameters:
      label - Label
      c - Configurer
      configureConstraints - Miglayout Constraints
    • add

      public void add(JLabel label, Configurer c)
      Add a Configurer and its label to this panel
      Parameters:
      label - JLabel
      c - Configurer
    • add

      public void add(String i18nKey, Configurer c)
      Generate and add a label for an i18nKey and add Configurer controls
      Parameters:
      i18nKey - i18n Key
      c - Configurer
    • add

      public void add(String i18nKey, Configurer c, String configureConstraints)
      Generate and add a label for an i18nKey and add Configurer controls with MigLayout constraints
      Parameters:
      i18nKey - I18n key
      c - Configurer
      configureConstraints - MigLayout constraints
    • add

      public void add(JLabel label, JPanel panel)
      Add an existing JLabel and existing JPanel containing controls.
      Parameters:
      label - JLabel
      panel - JPanel
    • add

      public void add(String i18nKey, JPanel p)
      Add a label based on an i18Key and an existing JPanel containing controls
      Parameters:
      i18nKey - i18n Key
      p - JPanel containing controls
    • add

      public void add(String i18nKey, JPanel p, String constraints)