Example usage for com.vaadin.client.ui.ui UIConnector getActiveTheme

List of usage examples for com.vaadin.client.ui.ui UIConnector getActiveTheme

Introduction

In this page you can find the example usage for com.vaadin.client.ui.ui UIConnector getActiveTheme.

Prototype

public String getActiveTheme() 

Source Link

Document

Returns the name of the theme currently in used by the UI.

Usage

From source file:org.eclipse.hawkbit.ui.dd.client.criteria.CriterionTestHelper.java

License:Open Source License

static VDragEvent createMockedVDragEvent(String dragSourceId, Widget widget, String theme) {
    VDragEvent dragEvent = createMockedVDragEvent(dragSourceId, widget);
    ApplicationConnection connection = Mockito.mock(ApplicationConnection.class);
    when(dragEvent.getTransferable().getDragSource().getConnection()).thenReturn(connection);
    UIConnector uiConnector = Mockito.mock(UIConnector.class);
    when(connection.getUIConnector()).thenReturn(uiConnector);
    when(uiConnector.getActiveTheme()).thenReturn(theme);

    return dragEvent;
}