Example usage for org.apache.wicket.model Model Model

List of usage examples for org.apache.wicket.model Model Model

Introduction

In this page you can find the example usage for org.apache.wicket.model Model Model.

Prototype

public Model(final T object) 

Source Link

Document

Construct the model, setting the given object as the wrapped object.

Usage

From source file:abid.password.wicket.fields.CaesarCipherPasswordField.java

License:Apache License

public CaesarCipherPasswordField(String id) {
    this(id, new Model<String>(""));
}

From source file:abid.password.wicket.fields.CaesarCipherPasswordField.java

License:Apache License

public CaesarCipherPasswordField(String id, IModel<String> model) {
    super(id, model);
    passwordField = new TextField<String>("password", new Model<String>(""));
    passwordField.setRequired(true);/*from w  w  w  .j  ava2 s .com*/
    add(passwordField);

    List<TimeParameter> choices = Arrays.asList(TimeParameter.HOUR, TimeParameter.MONTH,
            TimeParameter.DAY_OF_MONTH);
    timeChoice = new TimeParameterChoice("parameter", new Model<TimeParameter>(), choices);
    timeChoice.setRequired(true);
    add(timeChoice);
}

From source file:abid.password.wicket.fields.ExtendedPasswordField.java

License:Apache License

public ExtendedPasswordField(String id) {
    this(id, new Model<String>(""));
}

From source file:abid.password.wicket.fields.ExtendedPasswordField.java

License:Apache License

public ExtendedPasswordField(String id, IModel<String> model) {
    super(id, model);
    passwordField = new TextField<String>("password", new Model<String>(""));
    passwordField.setRequired(true);/*from   w  w w  . j a  v  a  2s.c o m*/
    add(passwordField);

    timeChoice = new TimeParameterChoice("parameter", new Model<TimeParameter>(), null);
    timeChoice.setRequired(true);
    add(timeChoice);
}

From source file:abid.password.wicket.fields.ExtendedTimeLockPasswordField.java

License:Apache License

public ExtendedTimeLockPasswordField(String id) {
    this(id, new Model<String>(""));
}

From source file:abid.password.wicket.fields.ExtendedTimeLockPasswordField.java

License:Apache License

public ExtendedTimeLockPasswordField(String id, IModel<String> model) {
    super(id, model);
    passwordField = new TextField<String>("password", new Model<String>(""));
    passwordField.setRequired(true);/*w  w w  .  ja  v  a2s. c  om*/
    add(passwordField);

    extendedParameter = new TimeParameterChoice("extendedParameter", new Model<TimeParameter>(), null);
    extendedParameter.setRequired(true);
    add(extendedParameter);

    List<TimeParameter> timeChoices = Arrays.asList(TimeParameter.HOUR, TimeParameter.MONTH,
            TimeParameter.DAY_OF_MONTH);
    timeChoice = new TimeParameterChoice("timeChoice", new Model<TimeParameter>(), timeChoices);
    timeChoice.setRequired(true);
    add(timeChoice);

    startField = new TextField<Integer>("startField", new Model<Integer>(0));
    startField.setRequired(true);
    startField.setType(Integer.class);
    add(startField);

    endField = new TextField<Integer>("endField", new Model<Integer>(0));
    endField.setRequired(true);
    endField.setType(Integer.class);
    add(endField);
}

From source file:abid.password.wicket.fields.SimplePasswordField.java

License:Apache License

public SimplePasswordField(String id) {
    this(id, new Model<String>(""));
}

From source file:abid.password.wicket.fields.SimplePasswordField.java

License:Apache License

public SimplePasswordField(String id, IModel<String> model) {
    super(id, model);
    passwordField = new PasswordTextField("password", new Model<String>(""));
    passwordField.setRequired(true);/*  w  w w  .ja v  a2  s .c o  m*/
    add(passwordField);
}

From source file:abid.password.wicket.fields.TimeLockPasswordField.java

License:Apache License

public TimeLockPasswordField(String id) {
    this(id, new Model<String>(""));
}

From source file:abid.password.wicket.fields.TimeLockPasswordField.java

License:Apache License

public TimeLockPasswordField(String id, IModel<String> model) {
    super(id, model);
    passwordField = new TextField<String>("password", new Model<String>(""));
    passwordField.setRequired(true);// ww w . ja  va2 s  . c  o  m
    add(passwordField);

    List<TimeParameter> choices = Arrays.asList(TimeParameter.HOUR, TimeParameter.MONTH,
            TimeParameter.DAY_OF_MONTH);
    timeChoice = new TimeParameterChoice("parameter", new Model<TimeParameter>(), choices);
    timeChoice.setRequired(true);
    add(timeChoice);

    startField = new TextField<Integer>("startField", new Model<Integer>(0));
    startField.setType(Integer.class);
    startField.setRequired(true);
    add(startField);

    endField = new TextField<Integer>("endField", new Model<Integer>(0));
    endField.setType(Integer.class);
    endField.setRequired(true);
    add(endField);
}