use of org.gwtproject.user.client.ui.Label in project gwtproject by treblereel.
the class TouchScrollTest method gwtSetUp.
protected void gwtSetUp() throws Exception {
// Create and attach a widget that has scrolling.
scrollPanel = new CustomScrollPanel();
scrollPanel.setPixelSize(500, 500);
Label content = new Label("Content");
content.setPixelSize(10000, 10000);
RootPanel.get().add(scrollPanel);
// Disabled touch scrolling because we will add our own scroller.
scrollPanel.setTouchScrollingDisabled(true);
// Add scrolling support.
scroller = new CustomTouchScroller(scrollPanel);
}
use of org.gwtproject.user.client.ui.Label in project gwtproject by treblereel.
the class CellListTest method testSetLoadingIndicator.
public void testSetLoadingIndicator() {
CellList<String> cellList = createAbstractHasData(new TextCell());
// Set a widget.
Label l = new Label("Loading");
cellList.setLoadingIndicator(l);
assertEquals(l, cellList.getLoadingIndicator());
// Null widget.
cellList.setLoadingIndicator(null);
assertNull(cellList.getLoadingIndicator());
}
use of org.gwtproject.user.client.ui.Label in project gwtproject by treblereel.
the class AbstractCellTableTestBase method testSetLoadingIndicator.
public void testSetLoadingIndicator() {
AbstractCellTable<String> table = createAbstractHasData(new TextCell());
// Set a widget.
Label l = new Label("Loading");
table.setLoadingIndicator(l);
assertEquals(l, table.getLoadingIndicator());
// Null widget.
table.setLoadingIndicator(null);
assertNull(table.getLoadingIndicator());
}
use of org.gwtproject.user.client.ui.Label in project gwtproject by treblereel.
the class CellListTest method testSetEmptyListWidget.
public void testSetEmptyListWidget() {
CellList<String> cellList = createAbstractHasData(new TextCell());
// Set a widget.
Label l = new Label("Empty");
cellList.setEmptyListWidget(l);
assertEquals(l, cellList.getEmptyListWidget());
// Set a message.
SafeHtml message = SafeHtmlUtils.fromString("empty");
cellList.setEmptyListMessage(message);
assertEquals(message, cellList.getEmptyListMessage());
assertNotSame(l, cellList.getEmptyListWidget());
// Null widget.
cellList.setEmptyListWidget(null);
assertNull(cellList.getEmptyListWidget());
}
use of org.gwtproject.user.client.ui.Label in project gwtproject by treblereel.
the class GestureEventSinkTest method testLabelGestureEventSinkByAddingHandler.
public void testLabelGestureEventSinkByAddingHandler() {
verifyGestureStartEventSinkOnAddHandler(new Label(), false);
verifyGestureEndEventSinkOnAddHandler(new Label(), false);
verifyGestureChangeEventSinkOnAddHandler(new Label(), false);
}