All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.as.console.client.widgets.tabs.DefaultTabLayoutPanel Maven / Gradle / Ivy

Go to download

Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.

There is a newer version: 0.7.0.Final
Show newest version
package org.jboss.as.console.client.widgets.tabs;

import com.google.gwt.core.client.Scheduler;
import com.google.gwt.dom.client.Style;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.TabLayoutPanel;

/**
 * @author Heiko Braun
 * @date 1/31/12
 */
public class DefaultTabLayoutPanel extends TabLayoutPanel {

    private final static boolean isIE = Window.Navigator.getUserAgent().contains("MSIE");

    public DefaultTabLayoutPanel(double barHeight, Style.Unit barUnit) {
        super(barHeight, barUnit);
        addStyleName("default-tabpanel");
    }


    @Override
    protected void onAttach() {
        super.onAttach();

        if(isIE)
        {
            Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
                @Override
                public void execute() {
                    forceLayout();
                }
            });
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy