Examples of TabLayoutPanel


Examples of com.cedarsolutions.client.gwt.custom.tab.TabLayoutPanel

    }

    /** Test setContext(). */
    public void testSetContext() {
        ConcreteModuleTabView view = new ConcreteModuleTabView();
        TabLayoutPanel parentPanel = new TabLayoutPanel(10, Unit.CM);
        view.setContext(parentPanel, 1);
        assertSame(parentPanel, view.getParentPanel());
        assertEquals(1, view.getTabIndex());
        // unfortunately, can't verify that the selection handler was set properly
    }
View Full Code Here

Examples of com.cedarsolutions.client.gwt.custom.tab.TabLayoutPanel

    public void testSelectionHandler() {
        Handler initHandler = new Handler();
        Handler selectedHandler = new Handler();

        ConcreteModuleTabView view = new ConcreteModuleTabView();
        TabLayoutPanel parentPanel = new TabLayoutPanel(10, Unit.CM);
        view.setContext(parentPanel, 1);
        view.setInitializationEventHandler(initHandler);
        view.setSelectedEventHandler(selectedHandler);

        SelectionHandler handler = new SelectionHandler(view);
View Full Code Here

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

  @Override
  protected TabLayoutPanel onInitialize() {
   
    final WikiPagePresenterCallback callback = getPresenterCallback();
   
    deckPanel = new TabLayoutPanel(2.5, Unit.EM);
    deckPanel.setStyleName(STYLE_NAME);
   
    // add panels
    deckPanel.add(decorateWidget(createReadPanel()), "Lesen");
    deckPanel.add(decorateWidget(createEditPanel()), "Bearbeiten");
View Full Code Here

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

    @Override
    public Widget createWidget() {
        loggingEditor = new LoggerEditor(presenter);
        handlerEditor = new HandlerEditor(presenter);
       
        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(25, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");
       
        tabLayoutpanel.add(loggingEditor.asWidget(), "Logger");
        tabLayoutpanel.add(handlerEditor.asWidget(), Console.CONSTANTS.subsys_logging_handlers());

        return tabLayoutpanel;
    }
View Full Code Here

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

  public XBRLContentWidget() {
    /*DecoratorPanel decorPanel = new DecoratorPanel();
    decorPanel.setWidth("100%");
    decorPanel.setHeight("100%");*/
    //
    TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);
    tabPanel.setAnimationDuration(1000);
    tabPanel.getElement().getStyle().setMarginBottom(10.0, Unit.PX);
   
    SimplePanel rawDataPanel = new SimplePanel();
    TextArea rawData = new TextArea();
    rawData.setText("The raw XML data will display here.");
    rawDataPanel.add(rawData);
    tabPanel.add(rawDataPanel, "Raw XML");
   
    tabPanel.add(new SimplePanel(), "Interactive data");
    //decorPanel.add(tabPanel);
    initWidget(tabPanel);
  }
View Full Code Here

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

    private JMSEditor jmsEditor;

    @Override
    public Widget createWidget() {

        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(25, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");

        providerEditor = new MessagingProviderEditor(presenter);
        jmsEditor = new JMSEditor(presenter);

        tabLayoutpanel.add(jmsEditor.asWidget(), "JMS");
        tabLayoutpanel.add(providerEditor.asWidget(), "Messaging Provider");

        tabLayoutpanel.selectTab(0);

        return tabLayoutpanel;
    }
View Full Code Here

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

  final TabLayoutPanel panel;
  private final ReadServiceAsync readService;
  private final LocalizedMessages constants;

  public ContentView(final ReadServiceAsync readService, final ReportServiceAsync reportService, final LocalizedMessages constants) {
    initWidget(panel = new TabLayoutPanel(25, Unit.PX));
   
    this.readService = readService;
    this.constants = constants;

    panel.addStyleName("with_margin");
View Full Code Here

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

        samples.add( example );
    }

    public void onModuleLoad()
    {
        tabPanel = new TabLayoutPanel( 30, Unit.PX );

        addExamples();

        tabPanel.addSelectionHandler( new SelectionHandler<Integer>()
        {
View Full Code Here

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

    friendsTab.addNorth(browser, FRIENDS_DOCK_HEIGHT);
    friendsTab.add(friendsMap);

    // Building top level panel

    final TabLayoutPanel tabs = new TabLayoutPanel(1.5, Unit.EM);
    tabs.add(personalMap, "My Map");
    tabs.add(friendsTab, "Friends");
    tabs.setSize("100%", "100%");
    tabs.addSelectionHandler(new SelectionHandler<Integer>() {
      public void onSelection(SelectionEvent<Integer> event) {
        Widget widget = tabs.getWidget(event.getSelectedItem());
        if (widget instanceof RequiresResize) {
          ((RequiresResize) widget).onResize();
        }
      }
    });
View Full Code Here

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

     *
     * @param tabbedPanelStyle the pre-defined height of the tabbar, can be "small" or "standard"     
     */
    public TabbedPanel(TabbedPanelStyle tabbedPanelStyle) {

        m_tabPanel = new TabLayoutPanel(tabbedPanelStyle.getBarHeight(), Unit.PX);
        m_panelStyle = tabbedPanelStyle;

        // All composites must call initWidget() in their constructors.
        initWidget(m_tabPanel);

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.