Package org.aperteworkflow.util.vaadin.ui

Examples of org.aperteworkflow.util.vaadin.ui.AligningHorizontalLayout.addComponent()


      final ProcessToolActionButton actionButton = makeButton(a);
      actionButton.setEnabled(isOwner);
      actionButton.loadData(task);
      actionButton.setActionCallback(actionCallback);
      if (actionButton instanceof ProcessToolVaadinRenderable) {
        buttonLayout.addComponent(((ProcessToolVaadinRenderable) actionButton).render());
      }
    }

    buttonLayout.addComponentAsFirst(new Label() {{
      setWidth(100, Sizeable.UNITS_PERCENTAGE);
View Full Code Here


        AligningHorizontalLayout toolbar = new AligningHorizontalLayout(Alignment.MIDDLE_RIGHT);
        toolbar.setWidth(100, UNITS_PERCENTAGE);
        toolbar.setMargin(false);
        toolbar.setSpacing(false);

        toolbar.addComponent(titleLabel);
        for (Component comp : otherButtons) {
            if (comp instanceof Button) {
                Button button = (Button) comp;
                if (button.getIcon() != null && button.getWidth() > 0 && button.getWidthUnits() == UNITS_PIXELS) {
                    button.setWidth(button.getWidth() + 20, UNITS_PIXELS);
View Full Code Here

                Button button = (Button) comp;
                if (button.getIcon() != null && button.getWidth() > 0 && button.getWidthUnits() == UNITS_PIXELS) {
                    button.setWidth(button.getWidth() + 20, UNITS_PIXELS);
                }
            }
            toolbar.addComponent(comp);
        }
        toolbar.addComponent(backButton);

        toolbar.setComponentAlignment(titleLabel, Alignment.MIDDLE_LEFT);
        toolbar.recalculateExpandRatios();
View Full Code Here

                    button.setWidth(button.getWidth() + 20, UNITS_PIXELS);
                }
            }
            toolbar.addComponent(comp);
        }
        toolbar.addComponent(backButton);

        toolbar.setComponentAlignment(titleLabel, Alignment.MIDDLE_LEFT);
        toolbar.recalculateExpandRatios();

        return toolbar;
View Full Code Here

                                                  Transformer<Mode, String> itemCaptionResolver) {
                            AligningHorizontalLayout ahl = new AligningHorizontalLayout(Alignment.MIDDLE_LEFT);
                            ahl.setSpacing(true);
                            ahl.setMargin(false, true, false, false);
                            ahl.setData(itemCaptionResolver);
                            ahl.addComponent(itemComponent);
                            ahl.addComponent(createControlsForMode(itemId));
                            ahl.setData(itemComponent);
                            return ahl;
                        }
                    })
View Full Code Here

                            AligningHorizontalLayout ahl = new AligningHorizontalLayout(Alignment.MIDDLE_LEFT);
                            ahl.setSpacing(true);
                            ahl.setMargin(false, true, false, false);
                            ahl.setData(itemCaptionResolver);
                            ahl.addComponent(itemComponent);
                            ahl.addComponent(createControlsForMode(itemId));
                            ahl.setData(itemComponent);
                            return ahl;
                        }
                    })
                    .init();
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.