congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
NumberValidator
Code IndexAdd Tabnine to your IDE (free)

How to use
NumberValidator
in
org.apache.wicket.validation.validator

Best Java code snippets using org.apache.wicket.validation.validator.NumberValidator (Showing top 17 results out of 315)

origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
@Override
protected Map<String, Object> variablesMap(IValidatable validatable)
{
  final Map<String, Object> map = super.variablesMap(validatable);
  map.put("maximum", new Long(maximum));
  return map;
}
origin: org.geoserver.web/web-wms

public KMLLayerConfigPanel(String id, IModel model){
  super(id, model);
  PropertyModel metadata = new PropertyModel(model, "resource.metadata");
  add(new DropDownChoice("kml.regionateAttribute", 
      new MapModel(metadata, "kml.regionateAttribute"), 
      new AttributeNamesModel(new PropertyModel(model, "resource"))));
  add(new DropDownChoice("kml.regionateStrategy", 
        new MapModel(metadata, "kml.regionateStrategy"), KML_STRATEGIES)
    );
  TextField maxFeatures = new TextField("kml.regionateFeatureLimit",
        new MapModel(metadata, "kml.regionateFeatureLimit"), Integer.class);
  maxFeatures.add(NumberValidator.minimum(1));
  add(maxFeatures);
}
 
origin: org.geoserver.web/web-core

  public HTTPLayerConfig(String id, IModel model){
    super(id, model);
    add(new CheckBox("cachingEnabled", new MapModel(new PropertyModel(model, "resource.metadata"), "cachingEnabled")));
    TextField maxAge = new TextField("cacheAgeMax", new MapModel(new PropertyModel(model, "resource.metadata"), "cacheAgeMax"), Long.class);
    maxAge.add(NumberValidator.range(0, Long.MAX_VALUE));
    add(maxAge);
  }
}
origin: org.geoserver.web/web-wms

  Integer.class
);
height.add(NumberValidator.minimum(0));
height.setOutputMarkupId(true);
add(height);
  Integer.class
);
width.add(NumberValidator.minimum(0));
width.setOutputMarkupId(true);
add(width);
origin: org.geoserver.web/web-core

NumberValidator percentageValidator = NumberValidator.range(0, 1);
TextField memoryCapacity = new TextField("memoryCapacity");
memoryCapacity.add(percentageValidator);
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
protected Map variablesMap(IValidatable validatable)
{
  final Map map = super.variablesMap(validatable);
  map.put("minimum", new Long(minimum));
  return map;
}
origin: org.geoserver.web/web-wms

renderingBuffer.add(NumberValidator.minimum(0));
styleContainer.add(renderingBuffer);
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
@Override
protected Map<String, Object> variablesMap(IValidatable validatable)
{
  final Map<String, Object> map = super.variablesMap(validatable);
  map.put("minimum", new Long(minimum));
  return map;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
protected Map variablesMap(IValidatable validatable)
{
  final Map map = super.variablesMap(validatable);
  map.put("maximum", new Long(maximum));
  return map;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
@Override
protected Map<String, Object> variablesMap(IValidatable validatable)
{
  final Map<String, Object> map = super.variablesMap(validatable);
  map.put("minimum", new Double(minimum));
  map.put("maximum", new Double(maximum));
  return map;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
@Override
protected Map<String, Object> variablesMap(IValidatable validatable)
{
  final Map<String, Object> map = super.variablesMap(validatable);
  map.put("minimum", new Long(minimum));
  map.put("maximum", new Long(maximum));
  return map;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
protected Map variablesMap(IValidatable validatable)
{
  final Map map = super.variablesMap(validatable);
  map.put("minimum", new Double(minimum));
  map.put("maximum", new Double(maximum));
  return map;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
protected Map variablesMap(IValidatable validatable)
{
  final Map map = super.variablesMap(validatable);
  map.put("minimum", new Long(minimum));
  map.put("maximum", new Long(maximum));
  return map;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
protected Map variablesMap(IValidatable validatable)
{
  final Map map = super.variablesMap(validatable);
  if (Math.abs(minimum) == Double.MIN_VALUE)
  {
    map.put("minimum", new Integer(0));
  }
  else
  {
    map.put("minimum", new Double(minimum));
  }
  return map;
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
protected Map variablesMap(IValidatable validatable)
{
  final Map map = super.variablesMap(validatable);
  if (Math.abs(maximum) == Double.MIN_VALUE)
  {
    map.put("maximum", new Integer(0));
  }
  else
  {
    map.put("maximum", new Double(maximum));
  }
  return map;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
@Override
protected Map<String, Object> variablesMap(IValidatable validatable)
{
  final Map<String, Object> map = super.variablesMap(validatable);
  if (Math.abs(minimum) == Double.MIN_VALUE)
  {
    map.put("minimum", new Integer(0));
  }
  else
  {
    map.put("minimum", new Double(minimum));
  }
  return map;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see AbstractValidator#variablesMap(IValidatable)
 */
@Override
protected Map<String, Object> variablesMap(IValidatable validatable)
{
  final Map<String, Object> map = super.variablesMap(validatable);
  if (Math.abs(maximum) == Double.MIN_VALUE)
  {
    map.put("maximum", new Integer(0));
  }
  else
  {
    map.put("maximum", new Double(maximum));
  }
  return map;
}
org.apache.wicket.validation.validatorNumberValidator

Javadoc

Validator for checking numbers. Use the static factory methods to make range/minimum or maximum validators for doubles or longs.

Most used methods

  • variablesMap
  • minimum
    Gets an Integer minimum validator for checking if a number is greater than or equal to the given min
  • range
    Gets an Integer range validator for checking if a number falls between the minimum and maximum value

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now