Give to DockLayoutPanel CENTER region a style name property?

145 views Asked by At

I created a new DockLayoutPanel in GWT and I want to give a style name on the CENTER section on the panel. Any suggestions?

This is the docklayoutpanel:

private DockLayoutPanel doc;

public void onModuleLoad(){


        headerWidget = new HeaderWidget();

        searchWidget = new SearchWidget();

        storeWidget = new StoreWidget();

        doc = new DockLayoutPanel(Unit.EM);

        doc.addNorth(headerWidget, 10);
        doc.addSouth(new HTML("Footer"), 5);
        doc.addWest(WidgetWest(), 20);
        doc.add(searchWidget);

        RootLayoutPanel root = RootLayoutPanel.get();
        root.add(doc);

    }
1

There are 1 answers

1
Andrei Volgin On
searchWidget.addStyleName("myStyle");