Package org.gwt.mosaic.ui.client.layout

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


  private void createInfoPanel()
  {

    // ----------- logo panel
    LayoutPanel logoPanel = new LayoutPanel(new BoxLayout());
    logoPanel.setStyleName("bpm-header-left");

    Image logo = new Image(appContext.getConfig().getLogo());
    logo.setHeight("50");   
    logoPanel.add(logo);
   
    // ----------- info panel
    HorizontalPanel infoPanel = new HorizontalPanel();
    infoPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    infoPanel.setSpacing(5);
    infoPanel.setStyleName("bpm-header-right");

    LayoutPanel loadingImageContainer = new LayoutPanel();
    loadingImageContainer.setStyleName("bpm-loading-image");

    ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
    loadingImage = new Image("images/ajax-loader.gif");
    loadingImageContainer.add(loadingImage);
   
    setLoading(false);

    // account info
    Image img = icons.userIcon().createImage();
View Full Code Here


  public void initialize()
  {
    if(!initialized)
    {
      LayoutPanel layout = new LayoutPanel();
      layout.add(new Label("Hello form SAM"));

      this.add(layout);
     
      initialized = true;
    }
View Full Code Here

    viewport = new Viewport();

    // manually, otherwise it will appear on the login screen
    Log.addLogger(new DivLogger());

    LayoutPanel layout = createLayout();
    viewport.add(layout);

    // bootstrap
    controller.handleEvent(
        new com.mvc4g.client.Event(BootstrapAction.ID, null)
View Full Code Here

  }

  private LayoutPanel createLayout()
  {
    final LayoutPanel layoutPanel = new LayoutPanel(new BorderLayout());

    // header
    header = new Header(this, auth.getUsername(), auth.getRolesAssigned());
    layoutPanel.add(header, new BorderLayoutData(Region.NORTH, 50));

    // menu
    menu = new Menu();
    layoutPanel.add(menu, new BorderLayoutData(Region.WEST, 200));

    // workspace
    workspace = createWorkspace();
    layoutPanel.add(workspace, new BorderLayoutData(Region.CENTER, false));
    registerGlobalViewsAndActions();

    // message Panel
    final CaptionLayoutPanel messagePanel = createMessagePanel(layoutPanel);
    messagePanel.add(Log.getDivLogger().getWidget());
    messagePanel.setCollapsed(true);
    layoutPanel.add(messagePanel, new BorderLayoutData(Region.SOUTH, true));

    // Turn on DivLogger
    Log.getDivLogger().getWidget().setVisible(true);

    return layoutPanel;
View Full Code Here

  {
    if(!isInitialized)
    {

      // layout
      layout = new LayoutPanel( new BoxLayout(BoxLayout.Orientation.VERTICAL));
      layout.setPadding(0);
      layout.setWidgetSpacing(0);

      // search capabilities
      search = new SearchDefinitionView(
          appContext,
          new SearchDelegate()
          {
            public void handleResult(String procDefId)
            {
              String reportUrl = URLBuilder.getInstance().getProcessSummaryReportUrl(procDefId);

              // load report
              controller.handleEvent(
                  new Event(RenderReportAction.ID,
                      new RenderDispatchEvent(
                          ReportView.ID, reportUrl
                      )
                  )
              );
            }

            public String getActionName()
            {
              return "Open report";
            }
          }
      );


      // report frame
      frame = new Frame();
      DOM.setStyleAttribute(frame.getElement(), "border", "none");

      // toolbar
      final LayoutPanel toolBox = new LayoutPanel();
      toolBox.setPadding(0);
      toolBox.setWidgetSpacing(5);
      //toolBox.setLayout(new BoxLayout(BoxLayout.Orientation.VERTICAL));

      final ToolBar toolBar = new ToolBar();
      toolBar.add(createMenuBtn());
      toolBox.add(toolBar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      // loading panel
      loadingPanel = new LayoutPanel();
      loadingPanel.add(new Label("Loading, please wait..."));
      loadingPanel.setVisible(false);

      // assembly
      layout.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
View Full Code Here

        new String[] {"ID:", "Key:", "State", "Start Date:", "Activity:"}
    );

    this.add(grid, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

    LayoutPanel buttonPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL) );
    diagramBtn = new Button("Diagram",
        new ClickListener()
        {
          public void onClick(Widget widget)
          {
            String diagramUrl = getCurrentDefintion().getDiagramUrl();
            if(diagramUrl !=null && !diagramUrl.equals(""))
            {
              ProcessInstanceRef selection = getCurrentInstance();
              if(selection!=null)
              {
                createDiagramWindow(selection);
                controller.handleEvent(
                    new Event(LoadActivityDiagramAction.ID, selection)
                );
              }
            }
            else
            {
              MessageBox.alert("Incomplete deployment", "No diagram associated with process");             
            }

          }
        }
    );

    diagramBtn.setEnabled(false);
    buttonPanel.add(diagramBtn);

    instanceDataBtn = new Button("Instance Data",
        new ClickListener()
        {
          public void onClick(Widget widget)
          {
            if(currentInstance!=null)
            {
              createDataWindow(currentInstance);
              controller.handleEvent(
                  new Event(UpdateInstanceDataAction.ID, currentInstance.getId())
              );
            }
          }
        }
    );
    instanceDataBtn.setEnabled(false);
    buttonPanel.add(instanceDataBtn);
    this.add(buttonPanel);

    // plugin availability
    this.hasDiagramPlugin =
        ServerPlugins.has("org.jboss.bpm.console.server.plugin.GraphViewerPlugin");
View Full Code Here

  {
    diagramWindowPanel = new WindowPanel("Process Instance Activity");
    diagramWindowPanel.setAnimationEnabled(true);
    diagramWindowPanel.setSize("320px", "240px");

    LayoutPanel layout = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    layout.setStyleName("bpm-window-layout");
    layout.setPadding(5);

    Label header = new Label("Instance: "+inst.getId());
    header.setStyleName("bpm-label-header");
    layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

    diagramWindowPanel.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        diagramWindowPanel = null;

      }

      public String onWindowClosing() {
        return null;
      }
    });


    layout.add(diagramView, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
    diagramWindowPanel.setWidget(layout);

    WindowUtil.addMaximizeButton(diagramWindowPanel, Caption.CaptionRegion.RIGHT);
    WindowUtil.addMinimizeButton(diagramWindowPanel, Caption.CaptionRegion.RIGHT);
View Full Code Here

  {
    super("Deployment details");
    super.setStyleName("bpm-detail-panel");

    grid = new PropertyGrid(new String[] {"ID:", "Name:", "Processes:"});
    LayoutPanel propLayout = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    propLayout.add(grid, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));


    suspendBtn =  new ToolButton("Suspend", new ClickListener() {
      public void onClick(Widget sender) {

        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Suspend deployment",
              "Do you want to suspend this deployment? Any associated process will be suspended aswell.",
              new MessageBox.ConfirmationCallback() {
                public void onResult(boolean doIt)
                {
                  if(doIt)
                  {
                    controller.handleEvent(
                        new Event(
                            SuspendDeploymentAction.ID,
                            getSelection().getId()
                        )
                    );
                  }
                }
              });
        }
        else
        {
          MessageBox.alert("Missing selection", "Please select a deployment");
        }
      }
    }
    );
    resumeBtn =  new ToolButton("Resume", new ClickListener() {
      public void onClick(Widget sender) {

        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Resume deployment",
              "Do you want to resume this deployment?",
              new MessageBox.ConfirmationCallback() {
                public void onResult(boolean doIt)
                {
                  if(doIt)
                  {
                    controller.handleEvent(
                        new Event(
                            ResumeDeploymentAction.ID,
                            getSelection().getId()
                        )
                    );
                  }
                }
              });
        }
        else
        {
          MessageBox.alert("Missing selection", "Please select a deployment");
        }
      }
    }
    );

    propLayout.add(suspendBtn);
    propLayout.add(resumeBtn);
   
    // properties
    final DeckLayoutPanel deck = new DeckLayoutPanel();
    deck.add(propLayout);
View Full Code Here

        deck.showWidget(dropBox.getSelectedIndex());
      }
      else
      {
        LayoutPanel p = new LayoutPanel();
        p.add(grid);
        this.add(p);
      }

      this.initialzed = true;
    }
View Full Code Here

   *          target the PopupPanel or its children should be ignored
   */
  public LayoutPopupPanel(boolean autoHide, boolean modal) {
    super(autoHide, modal);

    final LayoutPanel layoutPanel = new LayoutPanel();
    layoutPanel.setPadding(0);
    super.setWidget(layoutPanel);
  }
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.layout.LayoutPanel

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.