code: void onPatternChange() {
  
          PatternType patternType = m_model.getPatternType();
          boolean isSeries = !patternType.equals(PatternType.NONE);
          setSerialOptionsVisible(isSeries);
          m_seriesCheckBox.setChecked(isSeries);
          if (isSeries) {
              m_groupPattern.selectButton(m_patternButtons.get(patternType));
              m_controller.getPatternView().onValueChange();
              m_patternOptions.setWidget(m_controller.getPatternView());
              onEndTypeChange();
          }
          m_controller.sizeChanged();
      }
docs: Called when the pattern has changed.