Example usage for com.google.gwt.user.client.ui DockPanel setCellHorizontalAlignment

List of usage examples for com.google.gwt.user.client.ui DockPanel setCellHorizontalAlignment

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui DockPanel setCellHorizontalAlignment.

Prototype

@Override
    public void setCellHorizontalAlignment(Widget w, HorizontalAlignmentConstant align) 

Source Link

Usage

From source file:org.thechiselgroup.biomixer.client.core.visualization.CenterRightViewTopBarExtension.java

License:Apache License

@Override
protected void addWidgetToTopBar(Widget realWidget, DockPanel topBar) {
    topBar.add(realWidget, DockPanel.CENTER);
    topBar.setCellHorizontalAlignment(realWidget, HasAlignment.ALIGN_RIGHT);
    topBar.setCellWidth(realWidget, "100%"); // eats up all
}

From source file:org.thechiselgroup.biomixer.client.core.visualization.LeftViewTopBarExtension.java

License:Apache License

@Override
protected void addWidgetToTopBar(Widget realWidget, DockPanel topBar) {
    topBar.add(realWidget, DockPanel.WEST);
    topBar.setCellHorizontalAlignment(realWidget, HasAlignment.ALIGN_LEFT);
}