Package org.apache.wicket.util.string

Examples of org.apache.wicket.util.string.StringValue.toBoolean()


  {
    final StringValue sval = parameters.get(name);
    if (sval == null || sval.isNull() == true) {
      return false;
    } else {
      return sval.toBoolean();
    }
  }

  public static Object getAsObject(final PageParameters parameters, final String name, final Class< ? > type)
  {
View Full Code Here


        }

        public Iterator<? extends Number> iterator(long first, long count)
        {
          StringValue emptyValue = getPageParameters().get("empty");
          return emptyValue.toBoolean() ? Collections.<Integer> emptyList().iterator()
            : items.iterator();
        }

        public long size()
        {
View Full Code Here

        }

        public long size()
        {
          StringValue emptyValue = getPageParameters().get("empty");
          return emptyValue.toBoolean() ? 0 : items.size();
        }

        public IModel<Number> model(Number object)
        {
          return Model.of(object);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.