Example usage for org.springframework.ide.eclipse.boot.wizard NewSpringBootWizardModel getRadioGroups

List of usage examples for org.springframework.ide.eclipse.boot.wizard NewSpringBootWizardModel getRadioGroups

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.wizard NewSpringBootWizardModel getRadioGroups.

Prototype

public RadioGroups getRadioGroups() 

Source Link

Usage

From source file:org.springframework.ide.eclipse.boot.wizard.PreferredSelections.java

public void save(NewSpringBootWizardModel wizard) {
    for (FieldModel<String> input : wizard.stringInputs) {
        if (isInteresting(input)) {
            put(input.getName(), input.getValue());
        }/*  w  w  w .  java  2s  .  co  m*/
    }

    for (RadioGroup input : wizard.getRadioGroups().getGroups()) {
        if (isInteresting(input)) {
            put(input.getName(), input.getValue().getValue());
        }
    }
}

From source file:org.springframework.ide.eclipse.boot.wizard.PreferredSelections.java

public void restore(NewSpringBootWizardModel wizard) {
    for (FieldModel<String> input : wizard.stringInputs) {
        if (isInteresting(input)) {
            String v = get(input.getName(), input.getValue());
            input.setValue(v);/*from w  w w . ja v a 2 s .c  o m*/
        }
    }
    for (RadioGroup input : wizard.getRadioGroups().getGroups()) {
        if (isInteresting(input)) {
            String choiceId = get(input.getName(), null);
            RadioInfo info = input.getRadio(choiceId);
            if (info != null) {
                input.getVariable().setValue(info);
            }
        }
    }
}