Search in sources :

Example 1 with Label

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);
}
Also used : Label(org.gwtproject.user.client.ui.Label)

Example 2 with Label

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());
}
Also used : Label(org.gwtproject.user.client.ui.Label) TextCell(org.gwtproject.cell.client.TextCell)

Example 3 with Label

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());
}
Also used : Label(org.gwtproject.user.client.ui.Label) TextCell(org.gwtproject.cell.client.TextCell)

Example 4 with Label

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());
}
Also used : SafeHtml(org.gwtproject.safehtml.shared.SafeHtml) Label(org.gwtproject.user.client.ui.Label) TextCell(org.gwtproject.cell.client.TextCell)

Example 5 with Label

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);
}
Also used : Label(org.gwtproject.user.client.ui.Label)

Aggregations

Label (org.gwtproject.user.client.ui.Label)6 TextCell (org.gwtproject.cell.client.TextCell)4 SafeHtml (org.gwtproject.safehtml.shared.SafeHtml)1