Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8b5d238e29c274867b816b6aa689a1c926010b29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.eclipse.net4j.internal.ui.wizards.steps.sample;

import org.eclipse.net4j.ui.wizards.ParallelStep;
import org.eclipse.net4j.ui.wizards.StaticSelectionStep;
import org.eclipse.net4j.ui.wizards.StringStep;

/**
 * @author Eike Stepper
 */
public class AddressStep extends ParallelStep
{
  private static final String[] PETS = { "Elvis", "Tim", "Teufel", "Robbie", "Else", "Nino" };

  public AddressStep()
  {
    add(new StaticSelectionStep("Sex", Sex.class, 1, 1));
    add(new StringStep("Name"));
    add(new StringStep("Street"));
    add(new StringStep("Zip-Code"));
    add(new StringStep("City"));
    add(new StaticSelectionStep("Pets", PETS, 0, 1));
  }

  public static enum Sex
  {
    MALE, FEMALE
  }
}

Back to the top