Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2011 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.
 */
package org.drools.guvnor.client.widgets.tables;
Widget with a table of Dependencies entries.
    // UI
        extends
    }
    public DependenciesPagedTableReadOnly(String theUuid,
                                          OpenItemCommand openSelectedCommand) {
        supertheUuid,
               openSelectedCommand );
    }
    @Override
    protected void doCellTable() {
        ProvidesKey<DependenciesPageRowprovidesKey = new ProvidesKey<DependenciesPageRow>() {
            public Object getKey(DependenciesPageRow row) {
                return row.getDependencyPath();
            }
        };
         = new CellTable<DependenciesPageRow>( providesKey );
         = new SingleSelectionModel<DependenciesPageRow>( providesKey );
        SelectionColumn.createAndAddSelectionColumn );
        ColumnPicker<DependenciesPageRowcolumnPicker = new ColumnPicker<DependenciesPageRow>(  );
        SortableHeaderGroup<DependenciesPageRowsortableHeaderGroup = new SortableHeaderGroup<DependenciesPageRow>(  );
        // Add any additional columns
        addAncillaryColumnscolumnPicker,
                             sortableHeaderGroup );
        .setWidth"100%" );
         = columnPicker.createToggleButton();
    }
New to GrepCode? Check out our FAQ X