Package org.jboss.as.console.client.widgets

Source Code of org.jboss.as.console.client.widgets.RHSHeader

package org.jboss.as.console.client.widgets;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import org.jboss.as.console.client.widgets.TabHeader;

/**
* @author Heiko Braun
* @date 3/2/11
*/
public class RHSHeader extends HorizontalPanel{

    public RHSHeader(String title) {

        super();

        getElement().setAttribute("style", "width:100%");

        HTML spacerLeft = new HTML(" ");
        add(spacerLeft);
        spacerLeft.getElement().getParentElement().setAttribute("style", "border-bottom:1px solid #A7ABB4;");

        add(new TabHeader(title));

        HTML spacerRight= new HTML(" ");
        add(spacerRight);
        spacerRight.getElement().getParentElement().setAttribute("style", "width:100%;border-bottom:1px solid #A7ABB4;");

    }

}
TOP

Related Classes of org.jboss.as.console.client.widgets.RHSHeader

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.