Examples of TabLayout


Examples of org.gwtoolbox.widget.client.panel.layout.tab.TabLayout

        drawers.addDrawer(navigationDrawer);

        SplitLayout split = new SplitLayout();
        split.addNorth(createHTML("Top content", "#ffcccc"), 200);

        TabLayout tabs = new TabLayout();
        tabs.addTab("Tab 1", createHTML("Tab Content", "white"));
        split.add(tabs);
        LayoutUtils.fitParent(tabs);
       
        drawers.setContent(split);
        LayoutUtils.fitParent(split);
View Full Code Here

Examples of org.gwtoolbox.widget.client.panel.layout.tab.TabLayout

public class TabLayoutSample extends ResizeComposite implements SamplePanel {

    private TabLayout tabs;

    public TabLayoutSample() {
        tabs = new TabLayout();
        initWidget(tabs);
    }
View Full Code Here

Examples of org.gwtoolbox.widget.client.panel.layout.tab.TabLayout

        PanelLayout treePanel = new PanelLayout("Navigation Bar");
        treePanel.setContent(tree);

        split.addWest(treePanel, 200);
        tabs = new TabLayout();
        split.add(tabs);

        main.add(split);

        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
View Full Code Here

Examples of org.gwtoolbox.widget.client.panel.layout.tab.TabLayout

        PanelLayout cp = new PanelLayout("Test");
        LayoutUtils.fitParent(cp);
        cp.setContent(new Label("Content"));
        cp.setCollapsable(true);

        TabLayout tabs = new TabLayout();
        tabs.setHideTabBarWithSingleTab(false);
        tabs.addTab("Buttons", panel);
        tabs.addTab("Tab1", new HTML("Tab1 Content"));
//        tabs.addTab("Tab2", new CenterLayout(new HTML("Tab2 Content")));
        tabs.addTab(new TabSpec("contentPanel", "Content Panel", null, cp, true));
//        tabs.add(new HTML("Tab2 Content"), "Tab2");
//        tabs.add(new HTML("Tab3 Content"), "Tab3");
//        tabs.add(new HTML("Tab4 Content"), "Tab4");
//        tabs.add(new HTML("Tab5 Content"), "Tab5");
//        tabs.add(new HTML("Tab6 Content"), "Tab6");
View Full Code Here

Examples of util.ui.TabLayout

    ScrollableJPanel rootPn = new ScrollableJPanel();
    rootPn.setLayout(new BorderLayout());
    rootPn.setBorder(Borders.DLU4_BORDER);

    JPanel content = new JPanel(new TabLayout(1));
    content.setBorder(new EmptyBorder(10, 10, 10, 10));

    content.add(DefaultComponentFactory.getInstance().createSeparator(mLocalizer.msg("section.head", "Favorite")));

    content.add(createTitleChangePanel());
View Full Code Here

Examples of util.ui.TabLayout

  public boolean hasContent() {
    return true;
  }

  public JPanel createSettingsContent() {
    mContent = new JPanel(new TabLayout(3));

    mContent.add(new JLabel(mLocalizer.msg("timeOfDay.edge", "Edge")));
    mTimeOfDayEdgeTF = new JTextField(Settings.propTimeOfDayBackgroundEdge.getString(), 25);
    mContent.add(mTimeOfDayEdgeTF);
    mContent.add(ProgramTableSettingsTab.createBrowseButton(mContent, mTimeOfDayEdgeTF));
View Full Code Here

Examples of util.ui.TabLayout

  public boolean hasContent() {
    return true;
  }

  public JPanel createSettingsContent() {
    mContent = new JPanel(new TabLayout(3));

    mContent.add(new JLabel(mLocalizer.msg("oneImage.image", "Image")));
    mOneImageBackgroundTF = new JTextField(Settings.propOneImageBackground.getString(), 25);
    mContent.add(mOneImageBackgroundTF);
    mContent.add(ProgramTableSettingsTab.createBrowseButton(mContent, mOneImageBackgroundTF));
View Full Code Here

Examples of util.ui.TabLayout

    return true;
  }

  public JPanel createSettingsContent() {

    mContent = new JPanel(new TabLayout(1));

    JPanel p1 = new JPanel(new FlowLayout(FlowLayout.LEADING));
    mContent.add(p1);
    p1.add(new JLabel(mLocalizer.msg("timeBlock.blockSize", "Block size")));
    mTimeBlockSizeSp = new JSpinner(new SpinnerNumberModel(Settings.propTimeBlockSize.getInt(), 1, 23, 1));

    p1.add(mTimeBlockSizeSp);
    p1.add(new JLabel(mLocalizer.msg("timeBlock.hours", "hours")));

    p1 = new JPanel(new TabLayout(3));
    mContent.add(p1);

    p1.add(new JLabel(mLocalizer.msg("timeBlock.background1", "Image 1")));
    mTimeBlockBackground1TF = new JTextField(Settings.propTimeBlockBackground1.getString(), 25);
    p1.add(mTimeBlockBackground1TF);
    p1.add(ProgramTableSettingsTab.createBrowseButton(mContent, mTimeBlockBackground1TF));

    p1.add(new JLabel(mLocalizer.msg("timeBlock.background2", "Image 2")));
    mTimeBlockBackground2TF = new JTextField(Settings.propTimeBlockBackground2.getString(), 25);
    p1.add(mTimeBlockBackground2TF);
    p1.add(ProgramTableSettingsTab.createBrowseButton(mContent, mTimeBlockBackground2TF));

    mTimeBlockShowWestChB = new JCheckBox(mLocalizer.msg("timeBlock.showWest", "Show left border"), Settings.propTimeBlockShowWest.getBoolean());
    mTimeBlockShowWestChB.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        handleTimeBlockShowWest();
      }
    });
    mContent.add(mTimeBlockShowWestChB);

    mTimeBlockShowWestChB.setSelected(Settings.propTimeBlockShowWest.getBoolean());

    p1 = new JPanel(new TabLayout(3));
    mContent.add(p1);

    mTimeBlockWestImage1Lb = new JLabel(mLocalizer.msg("timeBlock.west1", "Border image 1"));
    p1.add(mTimeBlockWestImage1Lb);
    mTimeBlockWestImage1TF = new JTextField(Settings.propTimeBlockWestImage1.getString(), 25);
View Full Code Here

Examples of util.ui.TabLayout

        JPanel cpanel = (JPanel) getContentPane();
        cpanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
       
        cpanel.setLayout(new BorderLayout());
       
        JPanel panel = new JPanel(new TabLayout(2));
        panel.setBorder(BorderFactory.createTitledBorder(mLocalizer.msg("details", "Details")));
       
        panel.add(new JLabel(mLocalizer.msg("name", "Name") + ":"));
        panel.add(new JLabel(mGroup.getName()));
       
View Full Code Here

Examples of util.ui.TabLayout

   
    mTitleLb=new JLabel(title);
   
    mBtnPanel=new JPanel();
    mBtnPanel.setBorder(BorderFactory.createEmptyBorder(0, Sizes.dialogUnitXAsPixel(3, mBtnPanel),0,0));
    mBtnPanel.setLayout(new TabLayout(1));
    mBtnPanel.add(mTopBtn);
    mBtnPanel.add(mUpBt);
    mBtnPanel.add(mDownBt);
    mBtnPanel.add(mBottomBtn);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.