public Widget getCenterPanel() {
    Viewport viewport = new Viewport();
    viewport.setLayout(new BorderLayout());
    ContentPanel north = new ContentPanel();
    ContentPanel west = new ContentPanel();
    ContentPanel center = new ContentPanel();
    center.setHeading("BorderLayout");
    ContentPanel east = new ContentPanel();
    ContentPanel south = new ContentPanel();
    east.setHeading("PolicyDetails");
    west.add(createClientDetails());
    west.setHeading("ClientDetails");
    north.setHeading("AccountDetails");
    BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH, 150);
    // northData.setMargins(new Margins(5));
    northData.setCollapsible(false);
    northData.setSplit(false);
    BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 680);
    westData.setCollapsible(false);
    westData.setSplit(false);
    // westData.setMargins(new Margins(0, 5, 0, 5));
    FlexTable ft = new FlexTable();
    ft.setText(0, 0, "MSISDN:");
    ft.setText(0, 1, "State:");
    ft.setText(0, 2, "PolicyID:");
    ft.setWidth("1365px");
    ft.setHeight("10px");
    // ft.setSize("500", "75");
    ft.setBorderWidth(1);
    north.add(getSearchPanel());
    north.add(ft);
    BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 680);
    // eastData.setMargins(new Margins(0, 5, 0, 5));
    FlexTable polictTable = new FlexTable();

    polictTable.setText(0, 0, "PolicyID:");
    polictTable.setText(1, 0, "Name:");
    polictTable.setText(2, 0, "Policy:");
    polictTable.setText(3, 0, "Description:");
    polictTable.setWidth("679px");
    polictTable.setHeight("360px");
    // ft.setSize("500", "75");
    polictTable.setBorderWidth(1);
    east.add(polictTable);
    eastData.setCollapsible(false);
    eastData.setSplit(false);
    BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, 10);
    // southData.setMargins(new Margins(5));
    southData.setCollapsible(false);
    viewport.add(north, northData);
    viewport.add(west, westData);
    viewport.add(east, eastData);
    viewport.add(south, southData);
    // con.setCenterWidget(center, centerData);
    return viewport;
  }
示例#2
0
 @Override
 public void setHeight(String height) {
   table.setHeight(height);
 }
  public com.google.gwt.user.client.ui.Widget createAndBindUi(
      final com.rhiscom.bpm.console.client.ui.process.ProcessManagementViewImpl owner) {

    com.rhiscom.bpm.console.client.ui.process.ProcessManagementViewImpl_BinderImpl_GenBundle
        clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay =
            (com.rhiscom.bpm.console.client.ui.process
                    .ProcessManagementViewImpl_BinderImpl_GenBundle)
                GWT.create(
                    com.rhiscom.bpm.console.client.ui.process
                        .ProcessManagementViewImpl_BinderImpl_GenBundle.class);
    com.rhiscom.bpm.console.client.ui.process.ProcessManagementViewImpl_BinderImpl_GenCss_style
        style = clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style();
    java.lang.String domId0 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.MenuItem btnRefrescar =
        new com.google.gwt.user.client.ui.MenuItem("", (com.google.gwt.user.client.Command) null);
    com.google.gwt.user.client.ui.MenuBar menuBarProcesos =
        (com.google.gwt.user.client.ui.MenuBar)
            GWT.create(com.google.gwt.user.client.ui.MenuBar.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel1 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    java.lang.String domId1 = com.google.gwt.dom.client.Document.get().createUniqueId();
    java.lang.String domId2 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.FlexTable flexProcessTable =
        (com.google.gwt.user.client.ui.FlexTable)
            GWT.create(com.google.gwt.user.client.ui.FlexTable.class);
    com.google.gwt.user.client.ui.SimplePanel f_SimplePanel3 =
        (com.google.gwt.user.client.ui.SimplePanel)
            GWT.create(com.google.gwt.user.client.ui.SimplePanel.class);
    com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel2 =
        new com.google.gwt.user.client.ui.HTMLPanel(template.html1(domId2).asString());
    com.google.gwt.user.client.ui.HTMLPanel htmlPanel =
        new com.google.gwt.user.client.ui.HTMLPanel(template.html2(domId0, domId1).asString());

    btnRefrescar.setStyleName("" + style.gwtMenuItem() + "");
    btnRefrescar.setWidth("130px");
    btnRefrescar.setText("Refrescar definiciones");
    menuBarProcesos.addItem(btnRefrescar);
    menuBarProcesos.setAutoOpen(false);
    menuBarProcesos.setTitle("Main");
    menuBarProcesos.setAnimationEnabled(true);
    f_HorizontalPanel1.add(menuBarProcesos);
    f_HorizontalPanel1.setStyleName("" + style.rightHorizontalPanel() + "");
    f_HorizontalPanel1.setWidth("100%");
    flexProcessTable.setWidth("100%");
    flexProcessTable.setHeight("100%");
    f_SimplePanel3.add(flexProcessTable);
    f_SimplePanel3.setWidth("100%");
    f_SimplePanel3.setHeight("100%");
    f_HTMLPanel2.setWidth("100%");
    f_HTMLPanel2.setHeight("100%");

    UiBinderUtil.TempAttachment attachRecord0 = UiBinderUtil.attachToDom(htmlPanel.getElement());
    com.google.gwt.user.client.Element domId0Element =
        com.google.gwt.dom.client.Document.get().getElementById(domId0).cast();
    UiBinderUtil.TempAttachment attachRecord1 = UiBinderUtil.attachToDom(f_HTMLPanel2.getElement());
    com.google.gwt.user.client.Element domId2Element =
        com.google.gwt.dom.client.Document.get().getElementById(domId2).cast();
    attachRecord1.detach();
    f_HTMLPanel2.addAndReplaceElement(f_SimplePanel3, domId2Element);
    com.google.gwt.user.client.Element domId1Element =
        com.google.gwt.dom.client.Document.get().getElementById(domId1).cast();
    attachRecord0.detach();
    htmlPanel.addAndReplaceElement(f_HorizontalPanel1, domId0Element);
    htmlPanel.addAndReplaceElement(f_HTMLPanel2, domId1Element);

    owner.btnRefrescar = btnRefrescar;
    owner.flexProcessTable = flexProcessTable;
    clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style().ensureInjected();

    return htmlPanel;
  }