private TelaInicialTopicoProfessor(MainView mainView) {

    this.mainView = mainView;

    TextConstants txtConstants = GWT.create(TextConstants.class);

    adicionarTopicoProfessor = new AdicionarTopicoProfessor(this);
    editarTopicoProfessor = new EditarTopicoProfessor(this);

    TabLayoutPanel tabLayoutPanel = new TabLayoutPanel(2.5, Unit.EM);
    //		stackPanel.setPixelSize(intWidthTable + 50, intHeightTable);
    tabLayoutPanel.setHeight(Integer.toString(intHeightTable) + "px");
    tabLayoutPanel.setAnimationDuration(500);
    tabLayoutPanel.setAnimationVertical(true);

    tabLayoutPanel.add(
        adicionarTopicoProfessor,
        new MpHeaderWidget(txtConstants.topicoAdicionar(), "images/plus-circle.png"));
    tabLayoutPanel.add(
        editarTopicoProfessor,
        new MpHeaderWidget(txtConstants.topicoEditar(), "images/comment_edit.png"));

    //		VerticalPanel verticalPanelPage = new VerticalPanel();
    //		verticalPanelPage.add(stackPanel);
    //		verticalPanelPage.add(new InlineHTML(" "));

    initWidget(tabLayoutPanel);
  }
Пример #2
0
 public MainAgenteLayout() {
   setStylePrimaryName(MaliceResources.INSTANCE.main().agenteLayout());
   add(toolbarsContainerPanel);
   add(maliceDisplayContainer);
   // MALICEDISPLAYCONTAINER
   maliceDisplayContainer.setAnimationDuration(0); // in millisec
   maliceDisplayContainer.add(benvenutoScrollPanel);
   maliceDisplayContainer.add(titoliScrollPanel);
   maliceDisplayContainer.add(incassiScrollPanel);
   maliceDisplayContainer.add(chiusureScrollPanel);
   maliceDisplayContainer.add(statisticheScrollPanel);
   maliceDisplayContainer.selectTab(BENVENUTO_TAB);
   setVisible(false);
 }