/** * Convert this text to a Double. * * @return Converted text * @throws StringValueConversionException */ public final Double toDoubleObject() throws StringValueConversionException { return toDouble(); }
/** * Convert to primitive types, returning default value if text is null. * * @param defaultValue * the default value to return of text is null * @return the converted text as a primitive or the default if text is null * @throws StringValueConversionException */ public final double toDouble(final double defaultValue) throws StringValueConversionException { return (text == null) ? defaultValue : toDouble(); }
/** * Convert to primitive types, returning default value if text is null. * * @param defaultValue * the default value to return of text is null * @return the converted text as a primitive or the default if text is null * @throws StringValueConversionException */ public final double toDouble(final double defaultValue) throws StringValueConversionException { return (text == null) ? defaultValue : toDouble(); }
/** * Convert this text to a Double. * * @return Converted text * @throws StringValueConversionException */ public final Double toDoubleObject() throws StringValueConversionException { return new Double(toDouble()); }
/** * Convert this text to a Double. * * @return Converted text * @throws StringValueConversionException */ public final Double toDoubleObject() throws StringValueConversionException { return new Double(toDouble()); }
/** * @see IValueMap#getDouble(String, double) */ public final double getDouble(final String key, final double defaultValue) throws StringValueConversionException { return getStringValue(key).toDouble(defaultValue); }
/** * @see IValueMap#getDouble(String) */ @Override public final double getDouble(final String key) throws StringValueConversionException { return getStringValue(key).toDouble(); }
/** * @see IValueMap#getDouble(String) */ public final double getDouble(final String key) throws StringValueConversionException { return getStringValue(key).toDouble(); }
/** * @see IValueMap#getDouble(String) */ public final double getDouble(final String key) throws StringValueConversionException { return getStringValue(key).toDouble(); }
/** * @see IValueMap#getDouble(String) */ public double getDouble(final String key) throws StringValueConversionException { return getStringValue(key).toDouble(); }
/** * @see IValueMap#getDouble(String, double) */ public double getDouble(String key, double defaultValue) throws StringValueConversionException { return getStringValue(key).toDouble(defaultValue); }
/** * @see IValueMap#getDouble(String, double) */ @Override public final double getDouble(final String key, final double defaultValue) { return getStringValue(key).toDouble(defaultValue); }
/** * @see IValueMap#getDouble(String) */ public double getDouble(final String key) throws StringValueConversionException { return getStringValue(key).toDouble(); }
/** * @see IValueMap#getDouble(String, double) */ public double getDouble(String key, double defaultValue) throws StringValueConversionException { return getStringValue(key).toDouble(defaultValue); }
/** * @see IValueMap#getDouble(String, double) */ public final double getDouble(final String key, final double defaultValue) throws StringValueConversionException { return getStringValue(key).toDouble(defaultValue); }
/** * Convert to double, returning default value if text is inconvertible. * * @param defaultValue * the default value * @return the converted text as a double or the default value if text is empty or inconvertible */ public final double toDouble(final double defaultValue) { if (text != null) { try { return toDouble(); } catch (Exception x) { if (LOG.isDebugEnabled()) { LOG.debug(String.format( "An error occurred while converting '%s' to a double: %s", text, x.getMessage()), x); } } } return defaultValue; }
@Override public final void call(AjaxRequestTarget target, Component source) { IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters(); double resizeHeight = req.getParameterValue("resizeHeight").toDouble(-1); double resizeWidth = req.getParameterValue("resizeWidth").toDouble(-1); resizeTop(target, source, resizeHeight, resizeWidth); }
@Override public final void call(AjaxRequestTarget target, Component source) { IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters(); double resizeHeight = req.getParameterValue("resizeHeight").toDouble(-1); double resizeWidth = req.getParameterValue("resizeWidth").toDouble(-1); resize(target, source, resizeHeight, resizeWidth); }
@Override public final void call(AjaxRequestTarget target, Component source) { IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters(); double resizeHeight = req.getParameterValue("resizeHeight").toDouble(-1); double resizeWidth = req.getParameterValue("resizeWidth").toDouble(-1); resizeTop(target, source, resizeHeight, resizeWidth); }
@Override public final void call(AjaxRequestTarget target, Component source) { IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters(); double resizeHeight = req.getParameterValue("resizeHeight").toDouble(-1); double resizeWidth = req.getParameterValue("resizeWidth").toDouble(-1); resize(target, source, resizeHeight, resizeWidth); }