Examples of ToolBar


Examples of org.geomajas.gwt.client.widget.Toolbar

        map.registerMapAddon(new GoogleAddon("google", map, GoogleAddon.MapType.SATELLITE, false));
      }
    });

    // Create a toolbar for this map:
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

    // Add an explanation to the page that explains how editing is done:
View Full Code Here

Examples of org.geomajas.gwt.client.widget.Toolbar

        map.getMapModel().selectLayer(map.getMapModel().getLayer("clientLayerEditableMultiPolygon"));
      }
    });

    // Create a tool-bar for this map:
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

    // Add an explanation to the page that explains how editing is done:
View Full Code Here

Examples of org.geomajas.gwt.client.widget.Toolbar

    mapLayout.setShowEdges(true);
    mapLayout.setHeight("60%");

    // Map with ID wmsMap is defined in the XML configuration. (mapWms.xml)
    final MapWidget map = new MapWidget("mapToolbarSecurity", "gwt-samples");
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    // Set a different fall-back controller:
    map.setFallbackController(new MeasureDistanceController(map));

    mapLayout.addMember(toolbar);
View Full Code Here

Examples of org.geomajas.gwt.client.widget.Toolbar

        map.registerMapAddon(new GoogleAddon("google", map, GoogleAddon.MapType.SATELLITE, false));
      }
    });

    // Create a tool-bar for this map:
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

    // Add an explanation to the page that explains how editing is done:
View Full Code Here

Examples of org.geomajas.gwt.client.widget.Toolbar

        map.getMapModel().selectLayer(map.getMapModel().getLayer("clientLayerEditableMultiCities"));
      }
    });

    // Create a toolbar for this map:
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

    // Add an explanation to the page that explains how editing is done:
View Full Code Here

Examples of org.gwt.mosaic.ui.client.ToolBar

            final MosaicPanel toolBox = new MosaicPanel();

            toolBox.setPadding(0);
            toolBox.setWidgetSpacing(5);

            final ToolBar toolBar = new ToolBar();
            refreshBtn = new Button("Refresh", new ClickHandler() {

                public void onClick(ClickEvent clickEvent) {
                    controller.handleEvent(
                            new Event(
                                    UpdateInstancesAction.ID,
                                    getCurrentDefinition()
                            )
                    );
                }
            }
            );
            toolBar.add(refreshBtn);
            refreshBtn.setEnabled(false);
            toolBar.addSeparator();

            startBtn = new Button("Start", new ClickHandler()
            {
                public void onClick(ClickEvent clickEvent)
                {
                    MessageBox.confirm("Start new execution",
                            "Do you want to start a new execution of this process?",
                            new MessageBox.ConfirmationCallback()
                            {
                                public void onResult(boolean doIt)
                                {
                                    if (doIt)
                                    {
                                        String url = getCurrentDefinition().getFormUrl();
                                        boolean hasForm = (url != null && !url.equals(""));
                                        if (hasForm)
                                        {
                                            ProcessDefinitionRef definition = getCurrentDefinition();
                                            iframeWindow = new IFrameWindowPanel(
                                                    definition.getFormUrl(), "New Process Instance: " + definition.getId()
                                            );

                                            iframeWindow.setCallback(
                                                    new IFrameWindowCallback()
                                                    {
                                                        public void onWindowClosed()
                                                        {
                                                            controller.handleEvent(
                                                                    new Event(UpdateInstancesAction.ID, getCurrentDefinition())
                                                            );
                                                        }
                                                    }
                                            );

                                            iframeWindow.show();
                                        }
                                        else
                                        {
                                            controller.handleEvent(
                                                    new Event(
                                                            StartNewInstanceAction.ID,
                                                            getCurrentDefinition()
                                                    )
                                            );
                                        }
                                    }

                                }
                            });

                }
            }
            );


            terminateBtn = new Button("Terminate", new ClickHandler()
            {
                public void onClick(ClickEvent clickEvent)
                {
                    if (getSelection() != null)
                    {

                        MessageBox.confirm("Terminate instance",
                                "Terminating this instance will stop further execution.",
                                new MessageBox.ConfirmationCallback()
                                {
                                    public void onResult(boolean doIt)
                                    {
                                        if (doIt)
                                        {
                                          ProcessInstanceRef selection = getSelection();
                                          if (selection.getState().equals(ProcessInstanceRef.STATE.ENDED)) {
                                              MessageBox.alert("Info", "Process is already completed");
                                            } else {
                                             
                                              selection.setState(ProcessInstanceRef.STATE.ENDED);
                                              selection.setEndResult(ProcessInstanceRef.RESULT.OBSOLETE);
                                              controller.handleEvent(
                                                      new Event(
                                                              StateChangeAction.ID,
                                                              selection
                                                      )
                                              );
                                            }
                                        }
                                    }
                                });
                    }
                    else
                    {
                        MessageBox.alert("Missing selection", "Please select an instance");
                    }
                }
            }
            );           


            deleteBtn = new Button("Delete", new ClickHandler()
            {
                public void onClick(ClickEvent clickEvent)
                {
                    if (getSelection() != null)
                    {
                        MessageBox.confirm("Delete instance",
                                "Deleting this instance will remove any history information and associated tasks as well.",
                                new MessageBox.ConfirmationCallback()
                                {
                                    public void onResult(boolean doIt)
                                    {

                                        if (doIt)
                                        {
                                          try {
                                              ProcessInstanceRef selection = getSelection();
                                              if (selection.getState().equals(ProcessInstanceRef.STATE.ENDED)) {
                                                MessageBox.alert("Info", "Process is already completed");
                                              } else {
                                                selection.setState(ProcessInstanceRef.STATE.ENDED);
   
                                                controller.handleEvent(
                                                        new Event(
                                                                DeleteInstanceAction.ID,
                                                                selection
                                                        )
                                                );
                                              }
                                          } catch (Exception e) {
                        MessageBox.alert("Warning", e.getMessage());
                      }
                                        }
                                    }
                                });

                    }
                    else
                    {
                        MessageBox.alert("Missing selection", "Please select an instance");
                    }
                }
            }
            );

            signalBtn = new Button("Signal", new ClickHandler()
            {
                public void onClick(ClickEvent clickEvent)
                {
                 
                  if (getSelection() != null)
                    {
                    createSignalWindow();
                  }
                  else
                  {
                      MessageBox.alert("Missing selection", "Please select an instance");
                  }
                }
            }
            );

            if(!isRiftsawInstance// riftsaw doesn't support instance operations
            {
                toolBar.add(startBtn);
                toolBar.add(signalBtn);
                toolBar.add(deleteBtn);

                startBtn.setEnabled(false);
                deleteBtn.setEnabled(false);
                signalBtn.setEnabled(false);
            }

            // terminate works on any BPM Engine
            toolBar.add(terminateBtn);
            terminateBtn.setEnabled(false);

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

View Full Code Here

Examples of org.jitterbit.application.ui.window.toolbar.ToolBar

            }
        }
    }

    public void setLoginAction(ApplicationAction action) {
        ToolBar actionsTb = toolBarManager.getToolBar(ApplicationWindowToolBars.ACTIONS);
        ActionsToolBarExtension actionExt = new ActionsToolBarExtension(action);
        ToolBarExtensionPoint extPt = ToolBarExtensionPoint.EXTENSION_POINT_2;
        actionsTb.addExtension(extPt, actionExt.getButtons(extPt));
    }
View Full Code Here

Examples of org.onemind.swingweb.client.gwt.widget.ToolBar

    /**
     * {@inheritDoc}
     */
    protected Object createComponentInstance(Object parent, DomNode element)
    {
        ToolBar tb = new ToolBar();
        return tb;
    }
View Full Code Here

Examples of org.openbravo.erpCommon.utility.ToolBar

      data = IncomeReportData.set();
      if (vars.commandIn("FIND")) {
        strMessage = Utility.messageBD(this, "BothDatesCannotBeBlank", vars.getLanguage());
        log4j.warn("Both dates are blank");
      }
      ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "IncomeReport", false, "", "", "",false, "ad_reports", strReplaceWith, false, true);
      toolbar.prepareSimpleToolBarTemplate();
      xmlDocument.setParameter("toolbar", toolbar.toString());

      xmlDocument.setParameter("calendar", vars.getLanguage().substring(0, 2));
      xmlDocument.setParameter("directory", "var baseDirectory = \"" + strReplaceWith + "/\";\n");
      xmlDocument.setParameter("paramLanguage", "defaultLang=\"" + vars.getLanguage() + "\";");
      //xmlDocument.setParameter("cBankAccount", strcbankaccount);
View Full Code Here

Examples of org.openide.awt.Toolbar

        initComponents();

        ActionMap actionMap = getActionMap();

        ToolbarPool.getDefault().setPreferredIconSize(16);
        Toolbar toolBar = new Toolbar();
        Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N
        toolBar.setBorder(b);
        JPanel container = new JPanel();
        this.add(container, BorderLayout.NORTH);
        container.setLayout(new BorderLayout());
        container.add(BorderLayout.NORTH, toolBar);

        rangeSliderModel = new DiagramViewModel(diagram.getGraph().getGroup(), filterChain, sequence);
        rangeSliderModel.selectGraph(diagram.getGraph());
        rangeSlider = new RangeSlider();
        rangeSlider.setModel(rangeSliderModel);
        rangeSliderModel.getChangedEvent().addListener(this);
        container.add(BorderLayout.CENTER, rangeSlider);

        scene = new DiagramScene(actions, rangeSliderModel);
        content = new InstanceContent();
        this.associateLookup(new ProxyLookup(new Lookup[]{scene.getLookup(), new AbstractLookup(content)}));
        content.add(exportCookie);
        content.add(rangeSliderModel);


        findPanel = new FindPanel(diagram.getFigures());
        findPanel.setMaximumSize(new Dimension(200, 50));
        toolBar.add(findPanel);
        toolBar.add(NodeFindAction.get(NodeFindAction.class));
        toolBar.addSeparator();
        toolBar.add(NextDiagramAction.get(NextDiagramAction.class));
        toolBar.add(PrevDiagramAction.get(PrevDiagramAction.class));
        toolBar.addSeparator();
        toolBar.add(ExtractAction.get(ExtractAction.class));
        toolBar.add(ShowAllAction.get(HideAction.class));
        toolBar.add(ShowAllAction.get(ShowAllAction.class));
        toolBar.addSeparator();
        toolBar.add(ShowAllAction.get(ZoomInAction.class));
        toolBar.add(ShowAllAction.get(ZoomOutAction.class));

        blockLayoutAction = new EnableBlockLayoutAction();
        JToggleButton button = new JToggleButton(blockLayoutAction);
        button.setSelected(true);
        toolBar.add(button);
        blockLayoutAction.addPropertyChangeListener(this);

        overviewAction = new OverviewAction();
        overviewButton = new JToggleButton(overviewAction);
        overviewButton.setSelected(false);
        toolBar.add(overviewButton);
        overviewAction.addPropertyChangeListener(this);

        predSuccAction = new PredSuccAction();
        button = new JToggleButton(predSuccAction);
        button.setSelected(true);
        toolBar.add(button);
        predSuccAction.addPropertyChangeListener(this);

        toolBar.addSeparator();
        toolBar.add(UndoAction.get(UndoAction.class));
        toolBar.add(RedoAction.get(RedoAction.class));

        centerPanel = new JPanel();
        this.add(centerPanel, BorderLayout.CENTER);
        cardLayout = new CardLayout();
        centerPanel.setLayout(cardLayout);
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.