Examples of BoxLayoutData


Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

                )
        );

       

        toolBox.add(toolBar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

        layout.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
       
        Label header = new Label("Known active nodes to signal: ");
        header.setStyleName("bpm-label-header");
        layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

        listBoxTokens = new ListBox<TokenReference>(new String[] { "Node name", "Signal ref" });

        listBoxTokens.setCellRenderer(new ListBox.CellRenderer<TokenReference>() {

            public void renderCell(ListBox<TokenReference> listBox, int row, int column, TokenReference item) {
                switch (column) {
                    case 0:
                        listBox.setText(row, column, item.getCurrentNodeName());
                        break;
                    case 1:
                        listBox.setText(row, column, item.getName());
                        break;
                    default:
                        throw new RuntimeException("Unexpected column size");
                }
            }
        });


        renderSignalListBox(-1);
        layout.add(listBoxTokens, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
       
        Label headerSignalRef = new Label("Signal ref");
        headerSignalRef.setStyleName("bpm-label-header");
        layout.add(headerSignalRef, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

        signalRef = new TextBox();
        signalRef.addFocusHandler(new FocusHandler() {
     
      @Override
      public void onFocus(FocusEvent event) {
        if (listBox.getSelectedIndex() != -1) {
          listBoxTokens.setItemSelected(listBox.getSelectedIndex(), false);
        }
      }
    });

        layout.add(signalRef, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

        Label headerSignals = new Label("Event data");
        headerSignals.setStyleName("bpm-label-header");
        layout.add(headerSignals, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

        eventData = new TextBox();

        layout.add(eventData, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

        signalWindowPanel = new WidgetWindowPanel(
                "Signal process",
                layout, false
        );
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

    final LayoutPanel panel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    panel.setPadding(0);
    panel.setWidgetSpacing(5);

    final ToolBar toolbar = new ToolBar();
    panel.add(toolbar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
   
    toolbar.add(new Button("Search", new ClickHandler() {

      @Override
      public void onClick(ClickEvent clickEvent) {

                if (definitionList.getItemCount() < 1) {
                    return;
                }

        String proDef = definitionList.getValue(definitionList.getSelectedIndex());

                String definitionId = null;

                for (ProcessDefinitionRef ref : processDefinitions) {
                    if (proDef.equals(ref.getName())) {
                        definitionId = ref.getId();
                    }
                }

        String theStatus = processStatusList.getValue(processStatusList.getSelectedIndex());
        Date theDate = startTime.getValue();
        if (theDate == null) {
          theDate = new Date(103,1,1);
        }
        Date edate = endTime.getValue();
        if (edate == null) {
          edate = new Date();
        }
        String ckey = correlationKey.getValue();
       
        ProcessSearchEvent event = new ProcessSearchEvent();
        event.setDefinitionKey(definitionId);
        event.setStatus(theStatus);
        event.setStartTime(theDate.getTime());
        event.setEndTime(edate.getTime());
        event.setKey(ckey);
       
        controller.handleEvent(new Event(LoadProcessHistoryAction.ID, event));
      }
     
    }) );
   
    final MosaicPanel formPanel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    panel.add(formPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

    BoxLayoutData bld1 = new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL);
        bld1.setPreferredWidth("130px");
       
        final MosaicPanel processDefBox = new MosaicPanel(new BoxLayout());
    processDefBox.add(new Label("Process Definition: "), bld1);
   
    definitionList = new ListBox();
    for (ProcessDefinitionRef ref : processDefinitions) {
      definitionList.addItem(ref.getName());
    }
    processDefBox.add(definitionList);
       
        formPanel.add(processDefBox);      
        formPanel.add(createProcessStatusListBox(bld1));   
        formPanel.add(createCorrelationKeyTextBox(bld1));   
        formPanel.add(createStartTimeDateBox(bld1));       
        formPanel.add(createEndTimeDateBox(bld1));

   
    ProcessHistoryInstanceListView listview = new ProcessHistoryInstanceListView();
    final DecoratedTabLayoutPanel tabPanel = new DecoratedTabLayoutPanel(false);
    listview.provideWidget(new ProvisioningCallback(){

      @Override
      public void onSuccess(Widget instance) {
        tabPanel.add(instance, "History Instances");     
      }

      @Override
      public void onUnavailable() {
       
      }
     
    });
   
    panel.add(tabPanel, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

        callback.onSuccess(panel);
  }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

        LayoutPanel toolbar = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
        final ListBox listBox = new ListBox();
        for (String s : sourceNames)
            listBox.addItem(s);
        toolbar.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
        toolbar.add(new Button("View", new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                requestSource(listBox.getItemText(listBox.getSelectedIndex()));
            }
        }));
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

        });
    }

    private void createSourcePanel(LayoutPanel panel) {
        formatted = new SourcePanel();
        panel.add(formatted, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
    }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

    this.name = name;

    sinkEvents(Event.MOUSEEVENTS);

    HTML html = new HTML( "&nbsp;&nbsp;" +AbstractImagePrototype.create(resource).getHTML() + "&nbsp;" + createButtonMarkup());   
    this.add(html, new BoxLayoutData(BoxLayoutData.FillStyle.VERTICAL));
    this.setStylePrimaryName(CSS_NAME);

  }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

    final LayoutPanel layoutPanel = new LayoutPanel(new BoxLayout(
        Orientation.VERTICAL));
    layoutPanel.setWidgetSpacing(0);
    initWidget(layoutPanel);

    layoutPanel.add(this.getMonthSelector(), new BoxLayoutData(
        FillStyle.HORIZONTAL));
    showDate(new Date());
    layoutPanel.add(this.getCalendarView(), new BoxLayoutData(FillStyle.BOTH));

    setStyleName(DEFAULT_STYLENAME);
  }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

    layoutPanel.setWidgetSpacing(1);
   
    this.datePicker = datePicker;
    this.timePicker = timePicker;
   
    layoutPanel.add(datePicker, new BoxLayoutData(FillStyle.BOTH));
    layoutPanel.add(new WidgetWrapper(timePicker), new BoxLayoutData(FillStyle.HORIZONTAL));
   
    timePicker.addChangeHandler(timePickerChangeHandler);
    datePicker.addChangeHandler(datePickerChangeHandler);
   
    setStyleName(DEFAULT_STYLENAME);
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.setLayout(new BoxLayout(Orientation.VERTICAL));
    layoutPanel.setWidgetSpacing(0);

    caption = new Caption(text, asHTML);
    layoutPanel.add(caption, new BoxLayoutData(FillStyle.HORIZONTAL));

    body = new LayoutPanel();
    body.addStyleName("Body");
    layoutPanel.add(body, new BoxLayoutData(FillStyle.BOTH));

    setStyleName(DEFAULT_STYLENAME);
  }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

    if (this.footer != null) {
      getLayoutPanel().remove(this.footer);
    }
    this.footer = footer;
    if (this.footer != null) {
      getLayoutPanel().add(this.footer, new BoxLayoutData(FillStyle.HORIZONTAL));
    }
  }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BoxLayoutData

    final LayoutPanel layoutPanel = getLayoutPanel();
    layoutPanel.setLayout(new BoxLayout());
    layoutPanel.setPadding(0);
    layoutPanel.setWidgetSpacing(0);

    layoutPanel.add(caption, new BoxLayoutData(FillStyle.BOTH));

    caption.setStyleName(DEFAULT_STYLENAME + "-text");

    if (asHTML) {
      setHTML(text);
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.