Examples of UberTabPanel


Examples of org.uberfire.client.workbench.widgets.tab.UberTabPanel

public class MultiTabWorkbenchPanelView
        extends BaseMultiPartWorkbenchPanelView<MultiTabWorkbenchPanelPresenter> {

    @Override
    protected MultiPartWidget setupWidget() {
        final UberTabPanel tabPanel = getUberTabPanel();

//        //Selecting a tab causes the previously selected tab to receive a Lost Focus event
//        widget.addBeforeSelectionHandler( new BeforeSelectionHandler<PartDefinition>() {
//            @Override
//            public void onBeforeSelection( final BeforeSelectionEvent<PartDefinition> event ) {
//
//            }
//        } );

        //When a tab is selected ensure content is resized and set focus
        tabPanel.addSelectionHandler( new SelectionHandler<PartDefinition>() {
            @Override
            public void onSelection( SelectionEvent<PartDefinition> event ) {
                presenter.onPartLostFocus();
                presenter.onPartFocus( event.getSelectedItem() );
            }
        } );

        tabPanel.addOnFocusHandler( new Command() {
            @Override
            public void execute() {
                panelManager.onPanelFocus( presenter.getDefinition() );
            }
        } );
View Full Code Here

Examples of org.uberfire.client.workbench.widgets.tab.UberTabPanel

        } );

        return tabPanel;
    }
    UberTabPanel getUberTabPanel() {
        return new UberTabPanel();
    }
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.