Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2014 JBoss Inc
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~      http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
             xmlns:g="urn:import:com.google.gwt.user.client.ui"
             xmlns:b="urn:import:com.github.gwtbootstrap.client.ui"
             xmlns:uf="urn:import:org.uberfire.ext.widgets.common.client.tables">

  <ui:style>
    .dataGridContainer {
    margin: 10px;
    }

    .horizontalContainer {
    height: 32px;
    }
    .leftToolBar {
      float: left;
      text-align: left
    }
    .rightToolBar {
      float: right;
      text-align: right;
    }
    .centerToolBar {
      
      text-align: center
    }
  </ui:style>

  <g:FlowPanel addStyleNames="{style.dataGridContainer}">
     <g:HorizontalPanel ui:field="toolbarContainer" width="100%" addStyleNames="{style.horizontalContainer}">
      <g:cell width="33%">
        <g:FlowPanel width="100%"  ui:field="leftToolbar" addStyleNames="{style.leftToolBar}"></g:FlowPanel> 
      </g:cell>
      <g:cell width="33%">
        <g:FlowPanel width="100%"  ui:field="centerToolbar" addStyleNames="{style.centerToolBar}"></g:FlowPanel> 
      </g:cell>
      <g:cell width="33%">
        <g:FlowPanel width="100%"  ui:field="rightToolbar" addStyleNames="{style.rightToolBar}">
          <b:Button ui:field="columnPickerButton" toggle="true" icon="LIST_UL"/>
          <b:Button ui:field="pageSizesSelector" toggle="true" icon="LIST_ALT" />
        </g:FlowPanel>
      </g:cell>
    </g:HorizontalPanel>
    <g:SimplePanel>
      <b:DataGrid ui:field="dataGrid" addStyleNames="table table-bordered table-striped table-hover"/>
    </g:SimplePanel>
    <uf:UberfireSimplePager ui:field="pager" addStyleNames="pagination pagination-right pull-right {style.horizontalContainer}"/>
  </g:FlowPanel>

</ui:UiBinder>
New to GrepCode? Check out our FAQ X