Package org.gwt.mosaic.ui.client

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


   * Constructs a <code>DefaultFormBuilder</code> for the given layout.
   *
   * @param layout the <code>FormLayout</code> to be used
   */
  public DefaultFormBuilder(FormLayout layout) {
    this(layout, new ScrollLayoutPanel());
  }
View Full Code Here


   * as layout manager.
   *
   * @param layout the FormLayout to use
   */
  public PanelBuilder(FormLayout layout) {
    this(layout, new ScrollLayoutPanel());
  }
View Full Code Here

  private void createWindow()
  {
    windowPanel = new WindowPanel();
    windowPanel.setAnimationEnabled(true);   

    ScrollLayoutPanel layout = new ScrollLayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    layout.setStyleName("bpm-window-layout");
    layout.setPadding(5);
    // info
    HeaderLabel header = new HeaderLabel(title, true);

    layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
 
    windowPanel.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        if(getCallback()!=null)
          getCallback().onWindowClosed();

        windowPanel = null;
        frame = null;
      }

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

    // iframe
    frame = new Frame()
    {
      /*public void onBrowserEvent(com.google.gwt.user.client.Event event)
      {
        ConsoleLog.debug("Browser Event: "+ DOM.eventGetTypeString(event));

        final Element iframe = getFrame().getElement();
        String size = getContents(IFrameElement.as(iframe));
        if(size!=null && size.indexOf(",")!=-1)
        {
          ConsoleLog.debug("Frame content size: "+ size);
          String[] wh = size.split(",");
          getWindowPanel().setContentSize(
              new Dimension(
                  Integer.valueOf(wh[0]),
                  Integer.valueOf(wh[1])+100
              )
          );

        }
        else
        {
          ConsoleLog.debug("Unable to retrieve frame content size: "+size);

          final int width = Window.getClientWidth()-200;
          final int height = Window.getClientHeight()-100;

          getWindowPanel().setContentSize(
              new Dimension(width,height)
          );

        }

        windowPanel.layout();
        windowPanel.center();
        windowPanel.setVisible(true);
      }  */
    };

    //frame.sinkEvents(com.google.gwt.user.client.Event.ONLOAD);

    DOM.setStyleAttribute(frame.getElement(), "border", "none");

    // https://jira.jboss.org/jira/browse/JBPM-2244
    frame.getElement().setId(
        String.valueOf( new Date().getTime())
    );

    frame.setUrl(this.url);

    layout.add(frame, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
    windowPanel.setWidget(layout);

    WindowUtil.addMaximizeButton(windowPanel, Caption.CaptionRegion.RIGHT);
    WindowUtil.addMinimizeButton(windowPanel, Caption.CaptionRegion.RIGHT);

View Full Code Here

  }
 
 
  public void createHistoryInstanceDetailWindow() {
   
    org.gwt.mosaic.ui.client.layout.LayoutPanel layout = new ScrollLayoutPanel();
        layout.setStyleName("bpm-window-layout");
        layout.setPadding(5);

        Label header = new Label("Instance: "+ selectedProcessInstanceId);
        header.setStyleName("bpm-label-header");
        layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
       
        final DecoratedTabLayoutPanel tabPanel = new DecoratedTabLayoutPanel(false);
        tabPanel.setPadding(5);
       
        processEvents = new ListBox<String>(new String[]{"Process Events"});
        processEvents.setCellRenderer(new CellRenderer<String>(){

      @Override
      public void renderCell(ListBox<String> listBox, int row, int column, String item) {
        switch(column) {
        case 0:
          listBox.setWidget(row, column, new HTML(item));
          break;
        default:
          throw new RuntimeException("Should not happen!");
        }       
      }
        });

        MosaicPanel sourcePanel = new MosaicPanel();
        sourcePanel.add(processEvents, new BoxLayoutData(BoxLayoutData.FillStyle.VERTICAL));       
        tabPanel.add(sourcePanel, "Activity Events");
       
        tabPanel.selectTab(0);
       
        layout.add(tabPanel, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
       
        processEventsWindow = new WidgetWindowPanel("History Instance Activity", layout, true);

        controller.handleEvent(new Event(LoadProcessInstanceEventsAction.ID, selectedProcessInstanceId));
View Full Code Here

  {
    super(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    setPadding(5);

    // particpants
    ScrollLayoutPanel treePanel = new ScrollLayoutPanel();

    treePanel.setStyleName("bpm-property-box");

    tree = new Tree();
    treePanel.add(tree);
    this.add(treePanel, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

    tree.addTreeListener(
        new TreeListener()
        {
View Full Code Here

    {

      tabPanel = new DecoratedTabLayoutPanel();
      tabPanel.setPadding(5);

      final ScrollLayoutPanel layoutPanel = new ScrollLayoutPanel(
        new BoxLayout(BoxLayout.Orientation.VERTICAL)
      );
      layoutPanel.setPadding(5);

      // console info
      Label console = new Label("Console Info");
      console.setStyleName("bpm-label-header");
      layoutPanel.add(console, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      Grid g1 = new Grid(1,2);
      g1.setWidget(0,0, new Label("Version:"));
      g1.setWidget(0,1, new Label(Version.VERSION));
      g1.getColumnFormatter().setWidth(0, "20%");

      layoutPanel.add(g1, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      // server info
      Label server = new Label("Server Info");
      server.setStyleName("bpm-label-header");
      layoutPanel.add(server, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      ServerStatusView serverStatus = new ServerStatusView(appContext);
      serverStatus.initialize();
     
      Grid g2 = new Grid(1,2);
      g2.setWidget(0,0, new Label("Host:"));
      g2.setWidget(0,1, new Label(appContext.getConfig().getConsoleServerUrl()));

      g2.getColumnFormatter().setWidth(0, "20%");

      layoutPanel.add(g2, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));      

      LayoutPanel pluginPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
      Label label = new Label("Plugins:");
      label.setStyleName("bpm-label-header");

      pluginPanel.add(label);
      pluginPanel.add(serverStatus);

      layoutPanel.add(pluginPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

      tabPanel.add(layoutPanel, "System Overview");

      this.add(tabPanel, new BorderLayoutData(BorderLayout.Region.CENTER));
View Full Code Here

  {
    super(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    setPadding(5);

    // particpants
    ScrollLayoutPanel treePanel = new ScrollLayoutPanel();
    tree = new Tree();
    treePanel.add(tree);
    this.add(treePanel, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));

    tree.addTreeListener(
        new TreeListener()
        {
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.ScrollLayoutPanel

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.