Package pl.net.bluesoft.rnd.processtool.ui.widgets

Examples of pl.net.bluesoft.rnd.processtool.ui.widgets.ProcessToolActionButton


    AligningHorizontalLayout buttonLayout = new AligningHorizontalLayout(Alignment.MIDDLE_RIGHT);
    buttonLayout.setMargin(new MarginInfo(false, true, false, true));
    buttonLayout.setWidth(100, Sizeable.UNITS_PERCENTAGE);

    for (final ProcessStateAction a : actionList) {
      final ProcessToolActionButton actionButton = makeButton(a);
      actionButton.setEnabled(isOwner);
      actionButton.loadData(task);
      actionButton.setActionCallback(actionCallback);
      if (actionButton instanceof ProcessToolVaadinRenderable) {
        buttonLayout.addComponent(((ProcessToolVaadinRenderable) actionButton).render());
      }
    }
View Full Code Here


  }

  private ProcessToolActionButton makeButton(ProcessStateAction a) {
    try {
      ProcessToolContext ctx = getCurrentContext();
      ProcessToolActionButton actionButton = ctx.getRegistry().makeButton(a.getButtonName());
      actionButton.setContext(a, bpmSession, application, i18NSource);
      return actionButton;
    }
    catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.ui.widgets.ProcessToolActionButton

Copyright © 2018 www.massapicom. 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.