Examples of PeriodPropertyElement


Examples of org.activiti.designer.property.custom.PeriodPropertyElement

      for (final Control childControl : periodControl.getChildren()) {
        if (childControl instanceof Spinner) {
          Spinner actualControl = (Spinner) childControl;
          String periodKey = (String) childControl.getData("PERIOD_KEY");
          PeriodPropertyElement element = PeriodPropertyElement.byShortFormat(periodKey);
          if (element != null) {
            actualControl.setSelection(ExtensionPropertyUtil.getPeriodPropertyElementFromValue(value, element));
          }
        }
      }
View Full Code Here

Examples of org.activiti.designer.property.custom.PeriodPropertyElement

    String[] values = new String[PeriodPropertyElement.values().length];

    for (final Control control : parent.getChildren()) {
      if (control instanceof Spinner) {
        final String periodKey = (String) control.getData("PERIOD_KEY");
        final PeriodPropertyElement element = PeriodPropertyElement.byShortFormat(periodKey);

        if (element != null) {
          final int elementValue = ((Spinner) control).getSelection();
          final String elementStringValue = elementValue + element.getShortFormat();
          values[element.getOrder()] = elementStringValue;
        }
      }
    }

    final StringBuilder builder = new StringBuilder();
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.