Beispiel #1
0
  private void createViewDSInfoPanel() {
    BorderLayoutData data = new BorderLayoutData(Style.LayoutRegion.EAST, 475, 100, 750);
    data.setMargins(new Margins(1, 1, 1, 5));
    data.setCollapsible(true);

    viewDsInfoPanel = new ContentPanel();
    viewDsInfoPanel.setLayout(new CenterLayout());
    viewDsInfoPanel.setLayoutOnChange(true);
    //        filterPanel.setAnimCollapse(true);
    viewDsInfoPanel.setId("eastPanel");
    viewDsInfoPanel.setBodyBorder(false);
    viewDsInfoPanel.setIcon(HarvesterUI.ICONS.view_info_icon());
    viewDsInfoPanel.setHeading(HarvesterUI.CONSTANTS.viewDataSetInformation());
    LabelToolItem noDsSelectedLabel = new LabelToolItem(HarvesterUI.CONSTANTS.noDataSetSelected());
    noDsSelectedLabel.setStyleName("noDataSetSelected");
    viewDsInfoPanel.add(noDsSelectedLabel);

    mainBorderLayout.addListener(
        Events.Expand,
        new Listener<BorderLayoutEvent>() {
          @Override
          public void handleEvent(BorderLayoutEvent be) {
            if (be.getRegion().equals(Style.LayoutRegion.EAST)) setOnExpandDataSet();
          }
        });

    mainGridPanel.add(viewDsInfoPanel, data);
  }
Beispiel #2
0
  private void adminMenu(ContentPanel accordionPanel) {
    /* Administracion */
    ContentPanel adminCP = new ContentPanel();
    adminCP.setAnimCollapse(false);
    adminCP.setHeading("Administracion");
    adminCP.setLayout(new RowLayout(Orientation.VERTICAL));

    Button area = new Button("ABM- Area");
    area.setWidth("100%");
    area.addListener(
        Events.OnClick,
        new Listener<BaseEvent>() {
          @Override
          public void handleEvent(BaseEvent be) {
            ABMArea a = new ABMArea();
            a.show();
          }
        });
    adminCP.add(area);
    Button tiporev = new Button("ABM- TipoRelevamiento");
    tiporev.setWidth("100%");
    adminCP.add(tiporev);

    Button tema = new Button("ABM- Tema");

    tema.setWidth("100%");
    adminCP.add(tema);

    accordionPanel.add(adminCP);
  }
  @Override
  public void initialize() {

    mainPanel = Panels.content("");
    mainPanel.setHeaderVisible(false);

    Label label = new Label(I18N.CONSTANTS.projectCoreSelectVersion());

    mainPanel.add(label);

    amendmentsComboBox1 = new ComboBox<AmendmentDTO>();
    amendmentsComboBox1.setStore(new ListStore<AmendmentDTO>());
    amendmentsComboBox1.setDisplayField("name");
    amendmentsComboBox1.setTriggerAction(ComboBox.TriggerAction.ALL);

    amendmentsComboBox2 = new ComboBox<AmendmentDTO>();
    amendmentsComboBox2.setStore(new ListStore<AmendmentDTO>());
    amendmentsComboBox2.setDisplayField("name");
    amendmentsComboBox2.setTriggerAction(ComboBox.TriggerAction.ALL);

    final LayoutContainer container = Layouts.hBox(HBoxLayoutAlign.TOP);

    container.add(amendmentsComboBox1, Layouts.hBoxData(Margin.LEFT));
    container.add(amendmentsComboBox2, Layouts.hBoxData(Margin.LEFT));

    projectFields = buildGrid();

    mainPanel.setScrollMode(Scroll.AUTO);
    mainPanel.add(container);
    mainPanel.add(projectFields);

    initPopup(mainPanel);
  }
Beispiel #4
0
  public SearchFormPanel() {

    ListStore<BeanModel> comboStore = new ListStore<BeanModel>();
    combo = new ComboBox<BeanModel>();
    combo.setStore(comboStore);
    combo.setFieldLabel("Asset type");
    combo.setDisplayField("name");
    combo.setTypeAhead(true);
    combo.setForceSelection(true);
    combo.setTriggerAction(ComboBox.TriggerAction.ALL);
    // combo.setWidth(150);
    combo.addSelectionChangedListener(
        new SelectionChangedListener<BeanModel>() {
          public void selectionChanged(SelectionChangedEvent<BeanModel> se) {
            prepareForm((MetaAsset) combo.getValue().getBean());
          }
        });

    Button btnSearch = new Button("Search");
    btnSearch.addSelectionListener(
        new SelectionListener<ButtonEvent>() {
          public void componentSelected(ButtonEvent be) {
            submitSearch();
          }
        });

    form = new FormPanel();
    form.setHeaderVisible(false);
    form.setBodyBorder(false);
    form.setScrollMode(Style.Scroll.AUTOY);
    // form.setWidth(300);

    HBoxLayout layout = new HBoxLayout();
    layout.setHBoxLayoutAlign(HBoxLayout.HBoxLayoutAlign.MIDDLE);
    ContentPanel topPanel = new ContentPanel(layout);
    topPanel.setHeaderVisible(false);
    topPanel.setFrame(true);
    topPanel.setHeight(40);
    topPanel.add(new Text("Asset type: "));
    HBoxLayoutData layoutData = new HBoxLayoutData(0, 2, 0, 2);
    topPanel.add(combo, layoutData);
    topPanel.add(btnSearch);

    setHeading("Advanced search");
    setLayout(new FitLayout());
    setFrame(true);
    setTopComponent(topPanel);
    add(form);

    /*
    addListener(Events.Expand, new Listener<BaseEvent>() {
    	public void handleEvent(BaseEvent be) {
    		initComponents(false);
    	}
    });*/
    initComponents(false);
  }
  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;
  }
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);

    ContentPanel inforPanel = new ContentPanel();
    //		 inforPanel.setHeading(this.getCurState().getAuction().getString(IAuction.AUCTION_NAME));
    HorizontalPanel infoContent = new HorizontalPanel();
    infoContent.setSpacing(20);
    Label sk = new Label("拍卖活动名称:");
    Label sv = new Label(this.getCurState().getAuction().getString(IAuction.AUCTION_NAME));
    Label ek = new Label("拍卖商品名称:");
    Label ev = new Label(this.getCurState().getAuction().getString(IAuction.GOOD_NAME));
    infoContent.add(sk);
    infoContent.add(sv);
    infoContent.add(ek);
    infoContent.add(ev);
    inforPanel.add(infoContent);

    BasePagingLoader loader = new PagingListService().getLoader(ModelNames.AUCTIONLOG);
    loader.load(0, 10);
    store = new ListStore<BeanObject>(loader);
    toolBar = new PagingToolBar(10);
    toolBar.bind(loader);

    List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
    final CheckBoxSelectionModel<BeanObject> smRowSelection =
        new CheckBoxSelectionModel<BeanObject>();
    columns.add(smRowSelection.getColumn());
    columns.add(new ColumnConfig(IAuctionLog.BID_USER, "买家", 150));
    columns.add(new ColumnConfig(IAuctionLog.BID_PRICE, "出价", 150));
    columns.add(new ColumnConfig(IAuctionLog.BID_TIME, "时间", 150));
    columns.add(new ColumnConfig(IAuctionLog.LOG_ID, "状态", 150));

    ColumnModel cm = new ColumnModel(columns);
    grid = new Grid<BeanObject>(store, cm);

    //        grid.setLoadMask(true);
    //        grid.setBorders(true);
    grid.setSelectionModel(smRowSelection);
    grid.addPlugin(smRowSelection);
    grid.setHeight(250);

    ContentPanel contentPanel = new ContentPanel();
    contentPanel.setFrame(true);
    contentPanel.setCollapsible(true);
    contentPanel.setAnimCollapse(false);
    contentPanel.setButtonAlign(HorizontalAlignment.CENTER);
    contentPanel.setIconStyle("icon-table");
    contentPanel.setLayout(new FitLayout());
    contentPanel.add(grid);
    contentPanel.setBottomComponent(toolBar);

    topPanel.add(inforPanel);
    topPanel.add(contentPanel);
    add(topPanel);
  }
Beispiel #7
0
  private Window createStatisticWindow() {

    Window w = new Window();
    w.setIcon(IconHelper.createStyle("bogus"));
    w.setMinimizable(true);
    w.setMaximizable(true);
    w.setHeading("Statistics ");
    w.setSize(400, 400);

    w.setLayout(new AccordionLayout());

    ContentPanel cp = new ContentPanel();
    cp.setHeading("Most contacted friends this month");
    cp.setFrame(false);
    cp.setSize(300, 300);

    Frame frame = new Frame();
    frame.setUrl("chart.html");
    frame.setLayoutData(new FitLayout());
    cp.setLayout(new FitLayout());
    cp.add(frame);

    w.add(cp);

    cp = new ContentPanel();
    cp.setHeading("Most contacted friends in total");
    cp.setFrame(false);
    cp.setSize(300, 300);

    frame = new Frame();
    frame.setUrl(
        "https://chart.googleapis.com/chart?cht=p3&chs=350x200&chd=t:70,30,10&&chl=Hollie|Emerson|Christinal");
    frame.setLayoutData(new FitLayout());
    cp.setLayout(new FitLayout());
    cp.add(frame);

    w.add(cp);

    cp = new ContentPanel();
    cp.setHeading("Average sms per day last two weeks");
    cp.setFrame(false);
    cp.setSize(300, 300);

    frame = new Frame();
    frame.setUrl(
        "https://chart.googleapis.com/chart?cht=lc&chs=350x200&chd=t:25,50,70,90,25,44,56,34,23,56,0,0,34,5,5,103,3,2,6,13&&chl=1|2|3|4|5|6|7|8|9|10|11|12|13|14&chxt=x,y");
    frame.setLayoutData(new FitLayout());
    cp.setLayout(new FitLayout());
    cp.add(frame);

    w.add(cp);

    return w;
  }
Beispiel #8
0
  /** Creates the south. */
  private void createSouth() {
    BorderLayoutData data =
        new BorderLayoutData(LayoutRegion.SOUTH, Constants.SOUTH_PANEL_DIMENSION + 25);
    // data.setMargins(new Margins(5, 5, 5, 5));
    // data.setHideCollapseTool(false);
    data.setMargins(new Margins(5, 0, 0, 0));
    data.setCollapsible(true);
    data.setSplit(false);

    /*
     * south = new ContentPanel(); south.setBodyBorder(false); south.setAnimCollapse(true);
     * south.setCollapsible(true); south.setLayout(new FitLayout());
     * south.setLayoutOnChange(true); south.setScrollMode(Scroll.AUTOY);
     * south.setHeaderVisible(true);
     * south.setHeading(I18nProvider.getMessages().accordionLabel());
     * south.setMonitorWindowResize(true); south.setLayoutOnChange(true); south.layout();
     */
    south = new ContentPanel();
    south.setBodyBorder(false);
    south.setLayout(new FitLayout());
    south.setScrollMode(Scroll.AUTOY);
    south.setHeaderVisible(true);
    // south.setHeading(I18nProvider.getMessages().accordionLabel());
    south.setMonitorWindowResize(true);
    south.setLayoutOnChange(true);
    south.layout();

    south.addListener(
        Events.Resize,
        new Listener<BaseEvent>() {

          public void handleEvent(BaseEvent be) {
            Dispatcher.forwardEvent(GeoGWTEvents.UPDATE_MAP_SIZE);
            // Dispatcher.forwardEvent(GeofenceEvents.UPDATE_SOUTH_SIZE);
          }
        });
    south.addListener(
        Events.Move,
        new Listener<BaseEvent>() {

          public void handleEvent(BaseEvent be) {
            Dispatcher.forwardEvent(GeoGWTEvents.UPDATE_MAP_SIZE);
            // Dispatcher.forwardEvent(GeofenceEvents.UPDATE_SOUTH_SIZE);
          }
        });
    this.tabWidget = new TabWidget();

    south.add(this.tabWidget);

    Dispatcher.forwardEvent(GeofenceEvents.ATTACH_BOTTOM_TAB_WIDGETS, this.tabWidget);

    center.add(south, data);
  }
Beispiel #9
0
  private void reportesMenu(ContentPanel accordionPanel) {
    /* Reportes */

    ContentPanel reportesCP = new ContentPanel();
    reportesCP.setAnimCollapse(false);
    reportesCP.setHeading("Reportes");
    reportesCP.setLayout(new RowLayout(Orientation.VERTICAL));

    Button insp = new Button("Inspecciones");
    insp.setWidth("100%");
    reportesCP.add(insp);

    accordionPanel.add(reportesCP);
  }
Beispiel #10
0
  public ServerEditor() {
    // create content:
    content = new ContentPanel();
    content.setBodyBorder(false);
    content.setHeaderVisible(false);
    content.setScrollMode(Scroll.AUTO);
    //		content.setHeading("Properties");
    content.setButtonAlign(HorizontalAlignment.RIGHT);

    // da toolbar
    ToolBar toolbar = new ToolBar();
    TextToolItem save = new TextToolItem("Save", "icon-save");
    toolbar.add(save);
    toolbar.add(new SeparatorToolItem());
    content.setTopComponent(toolbar);

    tabFolder = new TabPanel();
    tabFolder.setTabScroll(true);

    addTabs(tabFolder);

    RowLayout layout = new RowLayout(Orientation.VERTICAL);
    content.setLayout(layout);
    content.add(tabFolder, new RowData(1, 1));
  }
Beispiel #11
0
  private void createFiltersPanel() {
    BorderLayoutData data = new BorderLayoutData(Style.LayoutRegion.WEST, 300, 300, 350);
    data.setMargins(new Margins(1, 5, 1, 1));
    data.setCollapsible(true);

    mainGridPanel.add(browseFilterPanel, data);
  }
  protected void initUI() {
    TabItem west = (TabItem) Registry.get(AppView.TAB_STORAGE);
    ContentPanel clusters = new ContentPanel();
    clusters.setAnimCollapse(false);
    clusters.setHeading("Storage Engines");
    clusters.addListener(
        Events.Expand,
        new Listener<ComponentEvent>() {
          public void handleEvent(ComponentEvent be) {
            Dispatcher.get().dispatch(AppEvents.NAV_STORAGE);
          }
        });

    storageEnginesPanel = new StorageEnginesPanel();
    storageEnginesPanel
        .getGrid()
        .getSelectionModel()
        .addSelectionChangedListener(
            new SelectionChangedListener<StorageEngine>() {
              @Override
              public void selectionChanged(SelectionChangedEvent<StorageEngine> se) {
                AppEvent evt = new AppEvent(AppEvents.VIEW_STORAGE_ENGINE, se.getSelectedItem());
                Dispatcher.forwardEvent(evt);
              }
            });
    clusters.add(storageEnginesPanel, new BorderLayoutData(LayoutRegion.CENTER));

    west.add(clusters);
  }
Beispiel #13
0
  private Window createGeolocationWindow() {

    final Window w = new Window();
    w.setMinimizable(true);
    w.setMaximizable(true);
    w.setIcon(IconHelper.createStyle("accordion"));
    w.setHeading("Contact list");
    w.setWidth(500);
    w.setHeight(500);
    w.setLayout(new FitLayout());

    ContentPanel cp = new ContentPanel();
    cp.setAnimCollapse(false);
    cp.setHeading("Localize your friends");
    cp.setScrollMode(Scroll.NONE);
    cp.setLayout(new FitLayout());

    Frame frame = new Frame();
    frame.setUrl("geolocation.html");
    frame.setLayoutData(new FitLayout());
    cp.add(frame);

    w.add(cp);
    return w;
  }
  /** {@inheritDoc} */
  @Override
  protected Component getComponent(ValueResult valueResult, boolean enabled) {
    final boolean canAdd = enabled && userCanPerformChangeType(ValueEventChangeType.ADD);

    final ContentPanel component = new ContentPanel();
    component.setHeadingText(getLabel());

    // Setting up the report store
    final List<?> reports = valueResult.getValuesObject();

    final ListStore<ReportReference> store = new ListStore<ReportReference>();
    if (reports != null) store.add((List<ReportReference>) reports);

    // Creating the toolbar
    if (canAdd) {
      component.setTopComponent(createToolbar(store));
    }

    // Creating the grid
    final FlexibleGrid<ReportReference> reportGrid =
        new FlexibleGrid<ReportReference>(store, null, createColumnModel(enabled));
    reportGrid.setAutoExpandColumn("name");
    reportGrid.setVisibleElementsCount(5);

    component.add(reportGrid);

    return component;
  }
  /**
   * DOC bessaies Comment method "build".
   *
   * @param configGroups
   */
  public void build(ConfigGroup[] configGroups) {
    for (ConfigGroup configGroup : configGroups) {
      ImageResource imageResource = IconConfigProvider.provideIcon(configGroup);
      ContentPanel cPanel = buildConfigBloc(configGroup, imageResource);
      cPanel.setVisible(false);
      FormLayout formLayout1 = new FormLayout();
      formLayout1.setLabelWidth(200);

      FormLayout formLayout2 = new FormLayout();

      final LayoutContainer fieldPart = new LayoutContainer(formLayout1);
      final LayoutContainer messagePart = new LayoutContainer(formLayout2);

      fieldPart.setStyleAttribute("padding-left", "10px");
      fieldPart.setStyleAttribute("padding-top", "10px");
      fieldPart.setStyleAttribute("padding-bottom", "10px");
      messagePart.setStyleAttribute("padding-top", "12px");
      messagePart.setStyleAttribute("padding-bottom", "12px");

      cPanel.add(fieldPart, new ColumnData(0.7));
      cPanel.add(messagePart, new ColumnData(0.25));

      for (Config config : configGroup.configs) {
        Field<?> field = null;
        switch (config.type) {
          case txt:
            field = buildTextField(fieldPart, messagePart, config);
            break;
          case password:
            field = buildPasswordField(fieldPart, messagePart, config);
            break;
          case list:
            field = buildListField(fieldPart, messagePart, config);
            break;
          default:
            break;
        }
        if (null != field) {
          mapKeyField.put(config, field);
        }
      }

      add(cPanel);
    }
  }
Beispiel #16
0
  private void onStudentsPanelReady(AppEvent event) {
    Component component = event.getData();

    if (component != null) {
      BorderLayoutData centerLayoutData = new BorderLayoutData(Style.LayoutRegion.CENTER);

      viewportPanel.add(component, centerLayoutData);
    }
  }
 private ContentPanel getApplicationPanel() {
   if (applicationPanel == null) {
     applicationPanel = new ContentPanel();
     applicationPanel.setSize("221px", "85px");
     applicationPanel.setHeading("Application");
     applicationPanel.setLayout(new FitLayout());
     applicationPanel.add(getLayoutContainer_1(), new FitData(10, 30, 10, 10));
   }
   return applicationPanel;
 }
 private ContentPanel getJobnamePanel() {
   if (jobnamePanel == null) {
     jobnamePanel = new ContentPanel();
     jobnamePanel.setWidth("314px");
     jobnamePanel.setHeading("Jobname & group");
     jobnamePanel.setLayout(new FitLayout());
     jobnamePanel.add(getFirstRowLeftSide(), new FitData(10));
   }
   return jobnamePanel;
 }
  protected void buildTable() {

    columns = new TableColumn[7];

    columns[0] = new TableColumn("Scientific Name", .27f);
    columns[0].setMinWidth(75);
    columns[0].setMaxWidth(300);

    columns[1] = new TableColumn("Common Name", .27f);
    columns[1].setMaxWidth(300);
    columns[1].setMinWidth(75);
    columns[1].setAlignment(HorizontalAlignment.LEFT);

    columns[2] = new TableColumn("Level", .1f);
    columns[2].setMaxWidth(50);
    columns[2].setMaxWidth(100);

    columns[3] = new TableColumn("Category", .1f);
    columns[3].setMaxWidth(50);
    columns[3].setMaxWidth(50);
    columns[3].setAlignment(HorizontalAlignment.RIGHT);

    columns[4] = new TableColumn("id", 0);
    columns[4].setHidden(true);

    columns[5] = new TableColumn("Family", .13f);
    columns[5].setMinWidth(75);
    columns[5].setMaxWidth(100);
    columns[5].setAlignment(HorizontalAlignment.RIGHT);

    columns[6] = new TableColumn("Genus", .13f);
    columns[6].setMinWidth(75);
    columns[6].setMaxWidth(100);
    columns[6].setAlignment(HorizontalAlignment.RIGHT);

    TableColumnModel cm = new TableColumnModel(columns);
    table.setColumnModel(cm);

    expandableResults.setLayout(new BorderLayout());
    expandableResults.add(table, new BorderLayoutData(LayoutRegion.CENTER));
    expandableResults.add(toolbar, new BorderLayoutData(LayoutRegion.SOUTH, 30));
  }
 private ContentPanel getCpusPanel() {
   if (cpusPanel == null) {
     cpusPanel = new ContentPanel();
     cpusPanel.setSize("106px", "84px");
     cpusPanel.setHideCollapseTool(true);
     cpusPanel.setHeading("CPUs");
     cpusPanel.setLayout(new FitLayout());
     cpusPanel.add(getLayoutContainer(), new FitData(10));
   }
   return cpusPanel;
 }
 private ContentPanel getEmailPanel() {
   if (emailPanel == null) {
     emailPanel = new ContentPanel();
     emailPanel.setWidth("275px");
     emailPanel.setLayout(new FitLayout());
     emailPanel.setHeading("Email");
     emailPanel.setCollapsible(false);
     emailPanel.add(getFirstRowRightSide(), new FitData(10));
   }
   return emailPanel;
 }
  private void showRepoTree(Repository repo) {
    if (repo == null) {
      return;
    }

    repoTreePanel.setHeading((String) repo.get("name") + " Repository Content");
    repoTreeBinding.selectRepository(repo);

    repoPanel.removeAll();
    repoPanel.add(repoTree);
  }
Beispiel #23
0
  public ContentPanel initWeiget() {
    ContentPanel panel = new ContentPanel();
    //		TabPanel tabpanel = new TabPanel();
    //
    //		tabpanel.setAutoWidth(true);
    //
    //		tabpanel.setAutoHeight(true);
    //		TabItem normal = new TabItem("商品分类");
    //
    //		normal.add(CreateGcode());
    //
    //
    //
    //		tabpanel.add(normal);

    TableLayout tl = new TableLayout(2);

    panel.setLayout(tl);
    TableData td = new TableData();
    td.setColspan(1);
    td.setRowspan(4);
    td.setVerticalAlign(VerticalAlignment.TOP);
    TableData td1 = new TableData();
    td1.setColspan(1);
    td1.setRowspan(1);
    td1.setVerticalAlign(VerticalAlignment.TOP);
    TableData td2 = new TableData();
    td2.setColspan(1);
    td2.setRowspan(1);
    td2.setVerticalAlign(VerticalAlignment.TOP);
    td2.setHorizontalAlign(HorizontalAlignment.LEFT);
    panel.add(CreateGcode(), td);
    panel.add(CreateGcodeAttrgroup(), td1);
    panel.add(CreateGcodeAttr(), td2);

    setMaincomponent(gcodeegrid);
    registerMainStore(gcodestore);
    this.registerStore(gcodestore);

    return panel;
  }
Beispiel #24
0
  private void onNavigationPanelReady(AppEvent event) {
    Component component = event.getData();

    if (component != null) {
      BorderLayoutData westLayoutData =
          new BorderLayoutData(Style.LayoutRegion.WEST, 200, 150, 400);
      westLayoutData.setCollapsible(true);
      westLayoutData.setSplit(true);

      viewportPanel.add(component, westLayoutData);
    }
  }
Beispiel #25
0
  private void onInformationPanelReady(AppEvent event) {
    Component component = event.getData();

    if (component != null) {
      BorderLayoutData eastLayoutData =
          new BorderLayoutData(Style.LayoutRegion.EAST, 500, 200, 500);
      eastLayoutData.setCollapsible(true);
      eastLayoutData.setSplit(true);

      viewportPanel.add(component, eastLayoutData);
    }
  }
Beispiel #26
0
 private void emptyDataSetPanel() {
   // Only do when visible to enhance performance
   if (viewDsInfoPanel.isExpanded()) {
     viewDsInfoPanel.removeAll();
     LabelToolItem noDsSelectedLabel =
         new LabelToolItem(HarvesterUI.CONSTANTS.noDataSetSelected());
     noDsSelectedLabel.setStyleName("noDataSetSelected");
     viewDsInfoPanel.setLayout(new CenterLayout());
     viewDsInfoPanel.setHeading(HarvesterUI.CONSTANTS.viewDataSetInformation());
     viewDsInfoPanel.add(noDsSelectedLabel);
   }
 }
Beispiel #27
0
  private ContentPanel getLateLoanReportSection() {
    if (lateLoanReportSectionPanel == null) {
      lateLoanReportSectionPanel = new ContentPanel();
      lateLoanReportSectionPanel.setHeaderVisible(false);
      lateLoanReportSectionPanel.setLayout(new RowLayout(Orientation.VERTICAL));
      lateLoanReportSectionPanel.setBorders(false);
      Html reportTitle = new Html(messages.lateLoans());
      reportTitle.addStyleName("pige-management-section-title");
      lateLoanReportSectionPanel.add(reportTitle, new RowData(1, 25, new Margins(3)));
      Html text = new Html(messages.lateLoansReportDescription());
      lateLoanReportSectionPanel.add(text, new RowData(1, -1, new Margins(5)));

      Set<ReportFormats> formats = new HashSet();
      formats.add(ReportFormats.PDF);
      formats.add(ReportFormats.HTML);
      ReportDownloadPanel rdp =
          new ReportDownloadPanel(PIGE.REPORT_SERVICE, ReportId.LateLoans, formats);
      lateLoanReportSectionPanel.add(rdp);
    }
    return lateLoanReportSectionPanel;
  }
 private ContentPanel getCommandLinePanel() {
   if (commandLinePanel == null) {
     commandLinePanel = new ContentPanel();
     commandLinePanel.setHideCollapseTool(true);
     commandLinePanel.setSize("413px", "196px");
     commandLinePanel.setLayout(new FitLayout());
     commandLinePanel.setHeading("Commandline");
     commandLinePanel.setCollapsible(true);
     commandLinePanel.add(getTextAreaContainer(), new FitData(10));
   }
   return commandLinePanel;
 }
Beispiel #29
0
  private void tablero(ContentPanel accordionPanel) {
    /* Reportes */
    ContentPanel tablero = new ContentPanel();
    tablero.setAnimCollapse(false);
    tablero.setHeading("Tablero Partido");
    tablero.setLayout(new RowLayout(Orientation.VERTICAL));
    Button tableroControl = new Button("Tablero Control");

    tableroControl.addListener(
        Events.OnClick,
        new Listener<BaseEvent>() {
          @Override
          public void handleEvent(BaseEvent be) {
            TableroView tableroView = new TableroView();
            tableroView.show();
          }
        });

    tableroControl.setWidth(135);
    tablero.add(tableroControl);

    accordionPanel.add(tablero);
  }
Beispiel #30
0
  private void initUI() {
    long time = new java.util.Date().getTime();
    GWT.log("Initializing the UI ", null);

    permissions = Registry.get(Constants.LOGIN_USER_PERMISSIONS);

    //		container = new LayoutContainer();
    container = new ContentPanel();
    container.setLayout(new BorderLayout());
    container.setHeading("User Profile");

    formButtonContainer = new LayoutContainer();
    formButtonContainer.setScrollMode(Scroll.AUTO);

    TableLayout identlayout = new TableLayout(2);
    identlayout.setWidth("100%");
    identlayout.setCellSpacing(5);
    identlayout.setCellVerticalAlign(VerticalAlignment.TOP);

    TableLayout formlayout = new TableLayout(2);
    formlayout.setWidth("100%");
    formlayout.setCellSpacing(5);
    formlayout.setCellVerticalAlign(VerticalAlignment.TOP);

    formContainer = new LayoutContainer();
    //			formContainer.setBorders(true);
    formContainer.setLayout(formlayout);
    leftFormPanel = setupUserLeftForm("", 1);
    rightFormPanel = setupUserRightForm("", 8);

    formContainer.add(leftFormPanel);
    formContainer.add(rightFormPanel);
    buttonPanel = setupButtonPanel(17);

    formButtonContainer.add(formContainer);
    formButtonContainer.add(buttonPanel);

    // check permissions
    checkPermissins();

    BorderLayoutData data = new BorderLayoutData(LayoutRegion.CENTER);
    data.setMargins(new Margins(4, 2, 4, 2));
    container.add(formButtonContainer, data);

    LayoutContainer wrapper = (LayoutContainer) Registry.get(Constants.CENTER_PANEL);
    wrapper.removeAll();
    wrapper.add(container);
    wrapper.layout();
    GWT.log("Done Initializing the UI in " + (new java.util.Date().getTime() - time), null);
  }