Class ThemesComposite

All Implemented Interfaces:
Drawable

public class ThemesComposite extends Composite
Composite used to define the panel type (desktop/mobile) and the themes supported by the panel, group of panels or module.
Author:
Christopher Mindus
  • Constructor Details

    • ThemesComposite

      public ThemesComposite(Composite parent, int marginLeft, int marginRight, int marginTop, int marginBottom, GThemes edit, GThemes editMobile, GThemes mask, boolean isMaskEditing, boolean isNewPanelWizard, Runnable validateRunner)
      Constructor.

      The composite used a GridLayout of 1 column.

      Parameters:
      parent - The parent composite.
      marginLeft - Left margin.
      marginRight - Right margin.
      marginTop - Top margin.
      marginBottom - Bottom margin.
      edit - Edited themes instance.
      editMobile - Edited themes instance for mobile, often same as "edit".
      mask - Masked themes instance, i.e. restrictions from parents.
      isNewPanelWizard - Flag indicating this is a new panel wizard composite that should create the mobile themes table, even if masked off because panel may change location.
      validateRunner - Callback to a Runnable that performs validation, called when something changes, null for none.
  • Method Details

    • validate

      public String validate()
      Validates the composite.
      Returns:
      null for OK, otherwise an error message.
    • getSelection

      public GThemes getSelection()
      Gets the selected themes.
      Returns:
      The selection from the composite, null for error.