Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.DecoratedTabPanel


   * http://gwt.google.com/samples/Showcase/Showcase.html#!CwTabPanel
   */
  @SuppressWarnings("deprecation")
  private DecoratedTabPanel createTabPanel() {
    // Create a tab panel
    DecoratedTabPanel tabPanel = new DecoratedTabPanel();
    tabPanel.setWidth("400px");
    tabPanel.setAnimationEnabled(true);

    // Add a home tab
    String[] tabTitles = {"Home", "GWT Logo", "More info"};
    HTML homeText = new HTML(
        "Click one of the tabs to see more content. <br/> You can drag me now !");
    tabPanel.add(homeText, tabTitles[0]);

    // Add a tab with an image
    /*
     * VerticalPanel vPanel = new VerticalPanel(); vPanel.add(new
     * Image(Showcase.images.gwtLogo()));
     */
    // TODO add gwt logo
    VerticalPanel vPanel = new VerticalPanel();
    vPanel.add(new com.google.gwt.user.client.ui.Image(Image.INSTANCE.gwtLogo()));
    tabPanel.add(new com.google.gwt.user.client.ui.Image(Image.INSTANCE.gwtLogo()), tabTitles[1]);

    // Add a tab
    HTML moreInfo = new HTML("Tabs are highly customizable using CSS.");
    tabPanel.add(moreInfo, tabTitles[2]);

    // Return the content
    tabPanel.selectTab(0);
    tabPanel.ensureDebugId("cwTabPanel");
    return tabPanel;

  }
View Full Code Here


        html_4.setStylePrimaryName("h1");
        html_2.addStyleDependentName("orange");
        html_4.addStyleDependentName("red");

        verticalPanel.add(fp);
        DecoratedTabPanel tabPanel = new DecoratedTabPanel();
        // tabPanel.setWidth(iCing.widthMenu+"px"); // free is more elegant.
        tabPanel.setAnimationEnabled(true);
        verticalPanel.add(tabPanel);

        final FlexTable cingTable = new FlexTable();
        cingTable.setTitle(c.CING());
        tabPanel.add(cingTable, c.CING(), true);
        final FlexTable wiTable = new FlexTable();
        wiTable.setTitle("What If");
        tabPanel.add(wiTable, "What If", true);

        noneWiCheckBox = new CheckBox();
        wiTable.setWidget(rowIdxWiNone, 0, noneWiCheckBox);
        wiTable.getCellFormatter().setHorizontalAlignment(rowIdxWiNone, 0, HasHorizontalAlignment.ALIGN_CENTER);
        wiTable.getFlexCellFormatter().setColSpan(rowIdxWiNone, 0, 5);
        noneWiCheckBox.setText(c.none());
        ramaTextBoxBad = new TextBox();
        wiTable.setWidget(rowIdxWiRama, 2, ramaTextBoxBad);
        wiTable.getCellFormatter().setHorizontalAlignment(rowIdxWiRama, 2, HasHorizontalAlignment.ALIGN_CENTER);
        ramaTextBoxBad.setStyleName("red");
        ramaTextBoxBad.setText(CRV_WI_BAD_RAMCHK);
        ramaTextBoxBad.setWidth("3em");
        ramaTextBoxPoor = new TextBox();
        wiTable.setWidget(rowIdxWiRama, 3, ramaTextBoxPoor);
        wiTable.getCellFormatter().setHorizontalAlignment(rowIdxWiRama, 3, HasHorizontalAlignment.ALIGN_CENTER);
        ramaTextBoxPoor.setStyleName("orange");
        ramaTextBoxPoor.setText(CRV_WI_POOR_RAMCHK);
        ramaTextBoxPoor.setWidth("3em");

        bbTextBoxBad = new TextBox();
        wiTable.setWidget(rowIdxWiBb, 2, bbTextBoxBad);
        wiTable.getCellFormatter().setHorizontalAlignment(rowIdxWiBb, 2, HasHorizontalAlignment.ALIGN_RIGHT);
        bbTextBoxBad.setText(CRV_WI_BAD_BBCCHK);
        bbTextBoxBad.setStyleName("red");
        bbTextBoxBad.setWidth("3em");

        bbTextBoxPoor = new TextBox();
        wiTable.setWidget(rowIdxWiBb, 3, bbTextBoxPoor);
        wiTable.getCellFormatter().setHorizontalAlignment(rowIdxWiBb, 3, HasHorizontalAlignment.ALIGN_CENTER);
        bbTextBoxPoor.setText(CRV_WI_POOR_BBCCHK);
        bbTextBoxPoor.setStyleName("orange");
        bbTextBoxPoor.setWidth("3em");

        ramachandranPlotCheckBox = new CheckBox();
        wiTable.setWidget(rowIdxWiRama, 0, ramachandranPlotCheckBox);
        ramachandranPlotCheckBox.setChecked(true);
        ramachandranPlotCheckBox.setText("Ramachandran " + c.plot());
        ramachandranPlotCheckBox.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInColumnsButFirst(wiTable, rowIdxWiRama, ramachandranPlotCheckBox.isChecked());
            }
        });

        janinPlotCheckBox = new CheckBox();
        wiTable.setWidget(rowIdxWiJanin, 0, janinPlotCheckBox);
        janinPlotCheckBox.setChecked(true);
        janinPlotCheckBox.setText("Janin " + c.plot());
        janinPlotCheckBox.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInColumnsButFirst(wiTable, rowIdxWiJanin, janinPlotCheckBox.isChecked());
            }
        });

        janinTextBoxBad = new TextBox();
        wiTable.setWidget(rowIdxWiJanin, 2, janinTextBoxBad);
        wiTable.getCellFormatter().setHorizontalAlignment(rowIdxWiJanin, 2, HasHorizontalAlignment.ALIGN_CENTER);
        janinTextBoxBad.setText(CRV_WI_BAD_C12CHK);
        janinTextBoxBad.setStyleName("red");
        janinTextBoxBad.setWidth("3em");

        final Label residueSigmas22Label = new Label(c.residue_sigma() + " [-2,2]");
        wiTable.setWidget(rowIdxWiRama, 4, residueSigmas22Label);

        final Label occurancesInDbLabel = new Label(c.occurrences_in() + " [0-80]");
        wiTable.setWidget(rowIdxWiBb, 4, occurancesInDbLabel);

        backboneNormalityCheckBox = new CheckBox();
        wiTable.setWidget(rowIdxWiBb, 0, backboneNormalityCheckBox);
        backboneNormalityCheckBox.setChecked(false);
        backboneNormalityCheckBox.setText(c.Backbone_norm());
        backboneNormalityCheckBox.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInColumnsButFirst(wiTable, rowIdxWiBb, backboneNormalityCheckBox.isChecked());
            }
        });
        // Disable the boxes markup.
        Utils.setEnabledAllInColumnsButFirst(wiTable, rowIdxWiBb, backboneNormalityCheckBox.isChecked());
//        backboneNormalityCheckBox.fireEvent(event) this would enable the

        janinTextBoxPoor = new TextBox();
        wiTable.setWidget(rowIdxWiJanin, 3, janinTextBoxPoor);
        wiTable.getCellFormatter().setHorizontalAlignment(3, 3, HasHorizontalAlignment.ALIGN_CENTER);
        janinTextBoxPoor.setStyleName("orange");
        janinTextBoxPoor.setText(CRV_WI_POOR_C12CHK);
        janinTextBoxPoor.setWidth("3em");

        final Label residueSigmas22Label_1 = new Label(c.residue_sigma() + " [-2,2]");
        wiTable.setWidget(rowIdxWiJanin, 4, residueSigmas22Label_1);

        final FlexTable pcTable = new FlexTable();
        pcTable.setTitle("ProcheckNMR/Aqua");
        tabPanel.add(pcTable, "ProcheckNMR/Aqua", true);

        nonePcCheckBox = new CheckBox();
        pcTable.setWidget(rowIdxPcNone, 0, nonePcCheckBox);
        pcTable.getCellFormatter().setHorizontalAlignment(rowIdxPcNone, 0, HasHorizontalAlignment.ALIGN_CENTER);
        pcTable.getFlexCellFormatter().setColSpan(rowIdxPcNone, 0, 4);

        // PC G factor row
        textBoxGfactorPoor = new TextBox();
        pcTable.setWidget(rowIdxPcGfactor, 2, textBoxGfactorPoor);
        textBoxGfactorPoor.setStyleName("orange");
        textBoxGfactorPoor.setText(CRV_PC_POOR_GF);
        textBoxGfactorPoor.setWidth("3em");
        textBoxGfactorBad = new TextBox();
        pcTable.setWidget(rowIdxPcGfactor, 1, textBoxGfactorBad);
        pcTable.getCellFormatter().setHorizontalAlignment(rowIdxPcGfactor, 3, HasHorizontalAlignment.ALIGN_LEFT);
        textBoxGfactorBad.setStylePrimaryName("red");
        textBoxGfactorBad.setText(CRV_PC_BAD_GF);
        textBoxGfactorBad.setWidth("3em");
        @SuppressWarnings("unused")
        final Label gFactorLimitsLabel = new Label("[-99,99]");
        // pcTable.setWidget(rowIdxPcGfactor, 3, gFactorLimitsLabel);
        includeIntraresidualContactsCheckBox = new CheckBox();
        pcTable.setWidget(rowIdxPcIntra, 0, includeIntraresidualContactsCheckBox);
        includeIntraresidualContactsCheckBox.setChecked(true);
        includeIntraresidualContactsCheckBox.setText(c.Include_intra());

        noeCompletenessCheckBox = new CheckBox();
        pcTable.setWidget(rowIdxPcComple, 0, noeCompletenessCheckBox);
        noeCompletenessCheckBox.setChecked(true);
        noeCompletenessCheckBox.setText(c.NOE_completen() + " " + c.per_residue());
        noeCompletenessCheckBox.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInColumnsButFirst(pcTable, rowIdxPcComple, noeCompletenessCheckBox.isChecked());
            }
        });
        gFactorCheckBox = new CheckBox();
        pcTable.setWidget(rowIdxPcGfactor, 0, gFactorCheckBox);
        gFactorCheckBox.setChecked(true);
        gFactorCheckBox.setText(c.gFactor());
        gFactorCheckBox.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInColumnsButFirst(pcTable, rowIdxPcGfactor, gFactorCheckBox.isChecked());
            }
        });

        textBoxComplBad = new TextBox();
        pcTable.setWidget(rowIdxPcComple, 1, textBoxComplBad);
        textBoxComplBad.setVisibleLength(3);
        textBoxComplBad.setMaxLength(3);
        textBoxComplBad.setStyleName("red");
        textBoxComplBad.setText(CRV_AQUA_COMPL_BAD);
        textBoxComplBad.setWidth("3em");

        textBoxComplPoor = new TextBox();
        pcTable.setWidget(rowIdxPcComple, 2, textBoxComplPoor);
        textBoxComplPoor.setVisibleLength(3);
        textBoxComplPoor.setStyleName("orange");
        textBoxComplPoor.setText(CRV_AQUA_COMPL_POOR);
        textBoxComplPoor.setWidth("3em");
        final Label per0100Label = new Label("[0,100%]");
        pcTable.setWidget(rowIdxPcComple, 3, per0100Label);

        listBoxObs = new ListBox();
        pcTable.setWidget(rowIdxPcObserv, 1, listBoxObs);
        pcTable.getFlexCellFormatter().setColSpan(rowIdxPcObserv, 1, 2);

        listBoxObs.addItem(c.Standard());
        listBoxObs.addItem(c.Standard_no());
        listBoxObs.addItem(c.Standard_all());
        listBoxObs.addItem(c.Only_amides_a());
        listBoxObs.addItem(c.Only_amides());
        listBoxObs.addItem(c.All_theoretic());
        listBoxObs.addItem(c.All_non_hydro());
        listBoxObs.setWidth("6em");
        final Label observableAtomSetLabel = new Label(c.Observable_at());
        pcTable.setWidget(rowIdxPcObserv, 0, observableAtomSetLabel);
        nonePcCheckBox.setText(c.none());
        pcTable.removeRow(rowIdxPcComple); // deleting bottom up.
        pcTable.removeRow(rowIdxPcObserv); // TODO: enable when Wattos is run.
        pcTable.removeRow(rowIdxPcIntra);

        checkBoxOmega = new CheckBox();
        cingTable.setWidget(rowIdxCingOmega, 0, checkBoxOmega);
        checkBoxOmega.setEnabled(true);
        checkBoxOmega.setChecked(true);
        checkBoxOmega.setHTML("Omega");
        checkBoxOmega.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInColumnsButFirst(cingTable, 1, checkBoxOmega.isChecked());
            }
        });
        textBoxOmegaPoor = new TextBox();
        cingTable.setWidget(rowIdxCingOmega, 1, textBoxOmegaPoor);
        textBoxOmegaPoor.setStyleName("orange");
        textBoxOmegaPoor.setText(CRV_OMEGA_MAXALL_POOR);
        textBoxOmegaPoor.setWidth("3em");
        final Label andLabelOmega = new Label(c.and());
        cingTable.setWidget(rowIdxCingOmega, 2, andLabelOmega);
        textBoxOmegaBad = new TextBox();
        cingTable.setWidget(rowIdxCingOmega, 3, textBoxOmegaBad);
        cingTable.getCellFormatter().setHorizontalAlignment(rowIdxCingOmega, 3, HasHorizontalAlignment.ALIGN_CENTER);
        textBoxOmegaBad.setStylePrimaryName("red");
        textBoxOmegaBad.setText(CRV_OMEGA_MAXALL_BAD);
        textBoxOmegaBad.setWidth("3em");
        final Label labelDegreeOmega = new Label("\u00B0");
        cingTable.setWidget(rowIdxCingOmega, 4, labelDegreeOmega);

        textBoxDrMaxPoor = new TextBox();
        cingTable.setWidget(rowIdxCingDrMax, 1, textBoxDrMaxPoor);
        textBoxDrMaxPoor.setStyleName("orange");
        textBoxDrMaxPoor.setText(CRV_DR_MAXALL_POOR);
        textBoxDrMaxPoor.setWidth("3em");
        textBoxDrMaxBad = new TextBox();
        final Label andLabelDr = new Label(c.and());
        cingTable.setWidget(rowIdxCingDrMax, 2, andLabelDr);
        cingTable.setWidget(rowIdxCingDrMax, 3, textBoxDrMaxBad);
        cingTable.getCellFormatter().setHorizontalAlignment(rowIdxCingDrMax, 3, HasHorizontalAlignment.ALIGN_CENTER);
        textBoxDrMaxBad.setStylePrimaryName("red");
        textBoxDrMaxBad.setText(CRV_DR_MAXALL_BAD);
        textBoxDrMaxBad.setWidth("3em");
        final Label labelAng = new Label("\u00C5");
        cingTable.setWidget(rowIdxCingDrMax, 4, labelAng);
        checkBoxDrMax = new CheckBox();
        cingTable.setWidget(rowIdxCingDrMax, 0, checkBoxDrMax);
        checkBoxDrMax.setChecked(true);
        checkBoxDrMax.setHTML(c.Maximum_violatio());
        textBoxDrRmsPoor = new TextBox();
        cingTable.setWidget(rowIdxCingDrRms, 1, textBoxDrRmsPoor);
        textBoxDrRmsPoor.setStyleName("orange");
        textBoxDrRmsPoor.setText(CRV_DR_RMSALL_POOR);
        textBoxDrRmsPoor.setWidth("3em");
        textBoxDrRmsBad = new TextBox();
        final Label andLabelDrRms = new Label(c.and());
        cingTable.setWidget(rowIdxCingDrRms, 2, andLabelDrRms);
        cingTable.setWidget(rowIdxCingDrRms, 3, textBoxDrRmsBad);
        cingTable.getCellFormatter().setHorizontalAlignment(rowIdxCingDrRms, 3, HasHorizontalAlignment.ALIGN_CENTER);
        textBoxDrRmsBad.setStylePrimaryName("red");
        textBoxDrRmsBad.setText(CRV_DR_RMSALL_BAD);
        textBoxDrRmsBad.setWidth("3em");
        final Label labelAngDrRms = new Label("\u00C5");
        cingTable.setWidget(rowIdxCingDrRms, 4, labelAngDrRms);
        checkBoxDrRms = new CheckBox();
        cingTable.setWidget(rowIdxCingDrRms, 0, checkBoxDrRms);
        checkBoxDrRms.setChecked(true);
        checkBoxDrRms.setHTML(c.Rms_violatio());
        textBoxAcMaxPoor = new TextBox();
        cingTable.setWidget(rowIdxCingAcMax, 1, textBoxAcMaxPoor);
        textBoxAcMaxPoor.setStyleName("orange");
        textBoxAcMaxPoor.setText(CRV_AC_MAXALL_POOR);
        textBoxAcMaxPoor.setWidth("3em");
        textBoxAcMaxBad = new TextBox();
        final Label andLabelAc = new Label(c.and());
        cingTable.setWidget(rowIdxCingAcMax, 2, andLabelAc);
        cingTable.setWidget(rowIdxCingAcMax, 3, textBoxAcMaxBad);
        cingTable.getCellFormatter().setHorizontalAlignment(rowIdxCingAcMax, 3, HasHorizontalAlignment.ALIGN_CENTER);
        textBoxAcMaxBad.setStylePrimaryName("red");
        textBoxAcMaxBad.setText(CRV_AC_MAXALL_BAD);
        textBoxAcMaxBad.setWidth("3em");
        final Label labelDegreeAc = new Label("\u00B0");
        cingTable.setWidget(rowIdxCingAcMax, 4, labelDegreeAc);
        checkBoxAcMax = new CheckBox();
        cingTable.setWidget(rowIdxCingAcMax, 0, checkBoxAcMax);
        checkBoxAcMax.setChecked(true);
        checkBoxAcMax.setHTML(c.Maximum_violatio());
        textBoxAcRmsPoor = new TextBox();
        cingTable.setWidget(rowIdxCingAcRms, 1, textBoxAcRmsPoor);
        textBoxAcRmsPoor.setStyleName("orange");
        textBoxAcRmsPoor.setText(CRV_AC_RMSALL_POOR);
        textBoxAcRmsPoor.setWidth("3em");
        textBoxAcRmsBad = new TextBox();
        cingTable.setWidget(rowIdxCingAcRms, 2, new Label(c.and()));
        cingTable.setWidget(rowIdxCingAcRms, 3, textBoxAcRmsBad);
        cingTable.getCellFormatter().setHorizontalAlignment(rowIdxCingAcRms, 3, HasHorizontalAlignment.ALIGN_CENTER);
        textBoxAcRmsBad.setStylePrimaryName("red");
        textBoxAcRmsBad.setText(CRV_AC_RMSALL_BAD);
        textBoxAcRmsBad.setWidth("3em");
        final Label labelDegreeAcRms = new Label("\u00B0");
        cingTable.setWidget(rowIdxCingAcRms, 4, labelDegreeAcRms);
        checkBoxAcRms = new CheckBox();
        cingTable.setWidget(rowIdxCingAcRms, 0, checkBoxAcRms);
        checkBoxAcRms.setChecked(true);
        checkBoxAcRms.setHTML(c.Rms_violatio());
        // /

        checkBoxMissingCoordinates = new CheckBox();
        cingTable.setWidget(rowIdxCingMissingCoord, 0, checkBoxMissingCoordinates);
        checkBoxMissingCoordinates.setChecked(true);
        checkBoxMissingCoordinates.setHTML(c.Flag_missing());

        noneCingCheckBox = new CheckBox();
        cingTable.setWidget(rowIdxCingNone, 0, noneCingCheckBox);
        noneCingCheckBox.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInRowsButFirst(cingTable, !noneCingCheckBox.isChecked());
            }
        });
        nonePcCheckBox.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInRowsButFirst(pcTable, !nonePcCheckBox.isChecked());
            }
        });
        noneWiCheckBox.addClickListener(new ClickListener() {
            public void onClick(final Widget sender) {
                Utils.setEnabledAllInRowsButFirst(wiTable, !noneWiCheckBox.isChecked());
            }
        });
        cingTable.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);
        cingTable.getFlexCellFormatter().setColSpan(rowIdxCingNone, 0, 5);
        noneCingCheckBox.setHTML(c.none());

        // Return the content
        tabPanel.ensureDebugId("criteriaTabPanel");
        tabPanel.selectTab(0);

        final HorizontalPanel horizontalPanelBackNext = new HorizontalPanel();
        horizontalPanelBackNext.setSpacing(iCing.margin);
        verticalPanel.add(horizontalPanelBackNext);
        final Button backButton = new Button();
View Full Code Here

   
    final AbsolutePanel comunidadesPanel = new AbsolutePanel();
    absolutePanel_1.add(comunidadesPanel, 10, 50);
    comunidadesPanel.setSize("978px", "520px");
   
    DecoratedTabPanel decoratedTabPanel = new DecoratedTabPanel();
    comunidadesPanel.add(decoratedTabPanel, 10, 10);
    decoratedTabPanel.setSize("958px", "500px");
   
    AbsolutePanel absolutePanel_9 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_9, "Listado de comunidades", false);
    decoratedTabPanel.selectTab(0);
    absolutePanel_9.setSize("946px", "458px");
   
    AbsolutePanel absolutePanel_10 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_10, "Panoramas", false);
    absolutePanel_10.setSize("947px", "458px");
   
    AbsolutePanel absolutePanel_11 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_11, "Insertar ficha de comunidad", false);
    absolutePanel_11.setSize("948px", "460px");
   
    AbsolutePanel absolutePanel_12 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_12, "Mapa", false);
    absolutePanel_12.setSize("946px", "460px");
   
    AbsolutePanel absolutePanel_13 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_13, "Fotos", false);
    absolutePanel_13.setSize("947px", "462px");
   
    AbsolutePanel absolutePanel_14 = new AbsolutePanel();
    decoratedTabPanel.add(absolutePanel_14, "Bitacora", false);
    absolutePanel_14.setSize("948px", "462px");
   
    AbsolutePanel absolutePanel_2 = new AbsolutePanel();
    tabLayoutPanel.add(absolutePanel_2, "Eventos", false);
   
View Full Code Here

    public MyPage(ToCollegeApp collegeBoundApp) {

        serviceCache = collegeBoundApp.getServiceCache();

        mainPanel = new DecoratedTabPanel();
        mainPanel.setStylePrimaryName("MainTabs");
        mainPanel.getDeckPanel().setAnimationEnabled(true);

        myRankings = new MyRankings(serviceCache);
        mainPanel.add(myRankings, "My Rankings");
View Full Code Here

        // Create a panel to hold all of the form widgets.

        VerticalPanel panel = new VerticalPanel();

        DecoratedTabPanel tabs = new DecoratedTabPanel();
        tabs.add(getOpenIDTab(), "OpenID");
        tabs.add(getUPTab(), "Username/Password");
        tabs.selectTab(1);

        panel.add(tabs);

        messageLabel = new Label("");
        panel.add(messageLabel);
View Full Code Here

    private Map<String, Panel> tabMap;
    private Map<String, Image> tabIconMap;

    @Inject
    public ContentView(EveManageResources resources, EveManageConstants constants, EveManageMessages messages) {
        tabPanel = new DecoratedTabPanel();
        tabPanel.addStyleName(resources.css().contentPanel());

        dashboardTab = new VerticalPanel();

        Image blueprintsTabSpinnerImage = new Image(resources.spinnerIcon());
View Full Code Here

    private DecoratedTabPanel content;

    private Alerter alerter;

    public MainPane() {
        content = new DecoratedTabPanel();
        content.addSelectionHandler(new SelectionHandler<Integer>() {
            public void onSelection(SelectionEvent<Integer> event) {
                alerter.alert("Selected '" + content.getTabBar().getTabHTML(event.getSelectedItem()) + "'");
            }
        });
View Full Code Here

        TitleBar titleBar = new TitleBar(title, null, 1);
        add(titleBar);

        add(new HTML("<p>"));

        panel = new DecoratedTabPanel();
        add(panel);
        panel.setWidth("100%");

        setCellHorizontalAlignment(panel, HasHorizontalAlignment.ALIGN_LEFT);
        setCellVerticalAlignment(panel, HasVerticalAlignment.ALIGN_TOP);
View Full Code Here

    //由main来进行控制.
   
    layout.setWidget(0, 0, new HTML("日志"));
    //设置标题.
   
    DecoratedTabPanel tabPanel = new DecoratedTabPanel();
    //设置面板切换.
    tabPanel.setAnimationEnabled(true);

    // Add a home tab
    HTML homeText = new HTML("标签可通过 CSS 实现高度自定义化。01");
    tabPanel.add(homeText, "好友的日志");

    // Add a tab with an image
    HTML vPanel = new HTML("标签可通过 CSS 实现高度自定义化。02");
    tabPanel.add(vPanel, "我的日志");

    // Add a tab
    HTML moreInfo = new HTML("标签可通过 CSS 实现高度自定义化。03");
    tabPanel.add(moreInfo, "大家的日志");
   
    HTML moreInfo2 = new HTML("标签可通过 CSS 实现高度自定义化。03");
    tabPanel.add(moreInfo2, "发表日志");

    // Return the content
    tabPanel.selectTab(0);
   
    tabPanel.setWidth((GWT_SNS_Main.mainWidth * 0.85 - 6 * 2)+"px");
   
    layout.setWidget(1, 0, tabPanel);
   
   
    add(layout);
View Full Code Here

  private final LoadLevelServiceAsync service = LoadLevelService.Util.getInstance();
 
  public void onModuleLoad() {
    RootPanel rootPanel = RootPanel.get();
   
    DecoratedTabPanel decoratedTabPanel_1 = new DecoratedTabPanel();
    rootPanel.add(decoratedTabPanel_1, 10, 20);
    decoratedTabPanel_1.setSize("626px", "438px");
   
    FlexTable flexTable = new FlexTable();
    decoratedTabPanel_1.add(flexTable, "System status", false);
    flexTable.setSize("", "");
   
    CaptionPanel cptnpnlResponderLoadLevels = new CaptionPanel("Responder load levels");
    flexTable.setWidget(0, 0, cptnpnlResponderLoadLevels);
   
   
    LoadLevelWidget loadLevelWidget = new LoadLevelWidget();
    cptnpnlResponderLoadLevels.setContentWidget(loadLevelWidget);
    loadLevelWidget.setSize("7cm", "8cm");
   
    CaptionPanel cptnpnlNotificationTopics = new CaptionPanel("Notification topics");
    flexTable.setWidget(0, 1, cptnpnlNotificationTopics);
    cptnpnlNotificationTopics.setSize("", "");
   
    TopicListWidget topicListWidget = new TopicListWidget();
    cptnpnlNotificationTopics.setContentWidget(topicListWidget);
    topicListWidget.setSize("7cm", "8cm");
   
    MessageListWidget messageListWidget = new MessageListWidget();
    decoratedTabPanel_1.add(messageListWidget, "Messages", false);
    messageListWidget.setSize("10cm", "20cm");
   
  // Associate an async data provider to the table
    AsyncDataProvider<LoadLevel> provider = new AsyncDataProvider<LoadLevel>()
    {
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.DecoratedTabPanel

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.