Codota Logo
ValueInputField
Code IndexAdd Codota to your IDE (free)

How to use
ValueInputField
in
de.iwes.widgets.html.form.textfield

Best Java code snippets using de.iwes.widgets.html.form.textfield.ValueInputField (Showing top 17 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.ogema.widgets/widget-collection

public ValueInputField(WidgetPage<?> page, String id, Class<N> type, N defaultValue) {
  super(page, id);
  this.defaultValue = defaultValue;
  this.type = type;
  this.numberType = convertToEnum(type);
}
origin: org.ogema.widgets/widget-collection

/**
 * Set the number of decimal digits. Pass a negative value to show all digits.
 * @param nrDecimals
 * @param req
 */
public void setNrDecimals(short nrDecimals, OgemaHttpRequest req) {
  getData(req).setNrDecimals(nrDecimals);
}
origin: org.smartrplace.sim/resource-simulation

scheduleHorizonMinutes.setDefaultNumericalValue(1440L);
scheduleHorizonMinutes.setDefaultLowerBound(1);
this.newConfigSubmit = new Button(page, "newConfigSubmit", "Create new configuration") {
origin: org.ogema.widgets/widget-collection

private void updateWidgets(OgemaHttpRequest req) {
  @SuppressWarnings("unchecked")
  final ArrayManipulator<N> widget = (ArrayManipulator<N>) this.widget;
  final N[] array = this.array;
  final int length = array == null ?0 : array.length;
  if (this.inputs.size() == length)
    return;
  final int diff = length - this.inputs.size();
  if (diff > 0) {
    IntStream.range(this.inputs.size(), length)
      .forEach(i -> inputs.add(new InputWidget<N>(widget, req, ArrayManipulatorData.this, i)));
  } else {
    final List<ValueInputField<?>> subList = this.inputs.subList(length, this.inputs.size());
    final List<ValueInputField<?>> toBeCleared = new ArrayList<>(subList);
    subList.clear();
    toBeCleared.forEach(w -> {
      try {
        ArrayManipulatorData.this.removeItem(w);
        w.destroyWidget();
      } catch (Exception e) {
        LoggerFactory.getLogger(ArrayManipulator.class).warn("Subwidget clearing failed",e);
      }
    });
  }
  
}
origin: org.ogema.widgets/widget-extended

protected void setResource(A resource, OgemaHttpRequest req) {
  if (Objects.equals(this.resource, resource))
    return;
  this.resource = resource;
  clear();
  if (resource == null)
    return;
  final int length = getLength(resource);
  for (int i=0; i< length; i++) {
    final OgemaWidget in = createWidget(resource, i, widget, req);
    if (in instanceof ValueInputField)
      ((ValueInputField<?>) in).setDefaultNrDecimals(config.getNrDecimals());
    in.setMargin("0.5em", false, false, true, false, req);
    // TODO if delete is allowed, add a delete button
    in.triggerAction(in, TriggeringAction.POST_REQUEST, TriggeredAction.GET_REQUEST, req);
    addItem(in);
  }
}

origin: org.smartrplace.sim/resource-simulation

final boolean createForecast = resSelectorCheckbox.getCheckboxList(req).get(1).isChecked();
final String forecast = createForecast ? schedulePathField.getValue(req) : null;
final Long horizon = scheduleHorizonMinutes.getNumericalValue(req);
if (forecast != null && !ResourceUtils.isValidResourcePath(forecast)) {
  alert.showAlert("Invalid schedule name: " + forecast, false, req);
origin: org.ogema.widgets/widget-collection

public void setLowerBound(double lowerBound, OgemaHttpRequest req) {
  getData(req).setLowerBound(lowerBound);
}
origin: org.ogema.widgets/widget-collection

public ValueInputField(OgemaWidget parent, String id, Class<N> type, OgemaHttpRequest req) {
  super(parent, id, req);
  this.type = type;
  this.numberType = convertToEnum(type);
}
 
origin: org.ogema.widgets/widget-collection

public String getUnit(OgemaHttpRequest req) {
  return getData(req).getUnit();
}
origin: org.ogema.widgets/widget-collection

public ValueInputField(WidgetPage<?> page, String id, boolean globalWidget, Class<N> type, N defaultValue) {
  super(page, id, globalWidget);
  this.defaultValue = defaultValue;
  this.type = type;
  this.numberType = convertToEnum(type);
}
 
origin: org.ogema.widgets/widget-collection

public void setUnit(String unit, OgemaHttpRequest req) {
  getData(req).setUnit(unit);
}
origin: org.ogema.widgets/widget-collection

public double getUpperBound(OgemaHttpRequest req) {
  return getData(req).getUpperBound();
}
origin: org.ogema.widgets/widget-collection

public short getNrDecimals(OgemaHttpRequest req) {
  return getData(req).getNrDecimals();
}
origin: org.ogema.widgets/widget-collection

public N getNumericalValue(OgemaHttpRequest req) {
  return getData(req).getNumericalValue();
}
origin: org.ogema.widgets/widget-collection

public double getLowerBound(OgemaHttpRequest req) {
  return getData(req).getLowerBound();
}
origin: org.ogema.widgets/widget-collection

public void setUpperBound(double upperBound, OgemaHttpRequest req) {
  getData(req).setUpperBound(upperBound);
}
 
origin: org.ogema.widgets/widget-collection

public void setNumericalValue(N value,OgemaHttpRequest req) {
  getData(req).setNumericalValue(value);
}
   
de.iwes.widgets.html.form.textfieldValueInputField

Most used methods

  • convertToEnum
  • destroyWidget
  • getData
  • getNumericalValue
  • setDefaultLowerBound
    Inclusive
  • setDefaultNrDecimals
  • setDefaultNumericalValue

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now