Java Code Examples for com.google.gwt.cell.client.AbstractCell

The following are top voted examples for showing how to use com.google.gwt.cell.client.AbstractCell. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: sig-seguimiento-vehiculos   File: VehicleDialog.java   Source Code and License 6 votes vote down vote up
private RowExpander<VehicleJSO> createRowExpander() {
	
	return new RowExpander<VehicleJSO>(new AbstractCell<VehicleJSO>() {
		@Override
		public void render(Context context, VehicleJSO value,
				SafeHtmlBuilder sb) {
			
			String comment = value.getComments();
			if( comment == null) {
				comment = UISgfMessages.INSTANCE.noCommentLabel();
			}
			
			sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>"
					+ UISgfMessages.INSTANCE.commentColumn() + ":</b> "
					+ comment + "</p>");
			
		}
	});
}
 
Example 2
Project: sig-seguimiento-vehiculos   File: LayerCatalogDialog.java   Source Code and License 5 votes vote down vote up
private RowExpander<LayerDef> createRowExpander() {
	return new RowExpander<LayerDef>(new AbstractCell<LayerDef>() {
		@Override
		public void render(Context context, LayerDef value,
				SafeHtmlBuilder sb) {
			sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>"
					+ UICatalogMessages.INSTANCE.description() + ":</b> "
					+ value.getDescription() + "</p>");
		}
	});
}
 
Example 3
Project: geowe-core   File: LayerCatalogDialog.java   Source Code and License 5 votes vote down vote up
private RowExpander<LayerDef> createRowExpander() {
	return new RowExpander<LayerDef>(new AbstractCell<LayerDef>() {
		@Override
		public void render(Context context, LayerDef value,
				SafeHtmlBuilder sb) {
			sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>"
					+ UICatalogMessages.INSTANCE.description() + ":</b> "
					+ value.getDescription() + "</p>");
		}
	});
}
 
Example 4
Project: kie-wb-common   File: DecoratedGridCellValueAdaptor.java   Source Code and License 5 votes vote down vote up
/**
 * @param cell
 */
public DecoratedGridCellValueAdaptor( AbstractCell<T> cell,
                                      EventBus eventBus ) {
    super( cell.getConsumedEvents() );
    this.eventBus = eventBus;
    this.cell = cell;
}
 
Example 5
Project: gwtmockito   File: GwtMockitoTest.java   Source Code and License 5 votes vote down vote up
@Test
public void shouldBeAbleToInstantiateCellLists() {
  assertNotNull(new CellList<String>(new AbstractCell<String>() {
    @Override
    public void render(Context context, String value, SafeHtmlBuilder sb) {}
  }));
}