Example usage for com.vaadin.server AbstractExtension subclass-usage

List of usage examples for com.vaadin.server AbstractExtension subclass-usage

Introduction

In this page you can find the example usage for com.vaadin.server AbstractExtension subclass-usage.

Usage

From source file com.bosch.example.ui.component.TextFieldSuggestionBox.java

/**
 * Extension for the AutoCompleteTexfield.
 *
 */
public class TextFieldSuggestionBox extends AbstractExtension implements AutoCompleteTextFieldServerRpc {

From source file com.ejt.vaadin.sizereporter.SizeReporter.java

/**
 * Extension that reports the size of a particular component in the browser.
 * Each time the size of the component changes in the browser, the new component size is reported to the server and
 * can be retrieved via {@link #getHeight()} and {@link #getWidth()}.
 * <p>
 * To react to size changes, register a {@link ComponentResizeListener} with

From source file com.haulmont.cuba.web.toolkit.ui.CubaClientManager.java

public class CubaClientManager extends AbstractExtension {

    public void updateSystemMessagesLocale(SystemMessages msgs) {
        Map<String, String> localeMap = new HashMap<>();

        localeMap.put(CubaClientManagerClientRpc.COMMUNICATION_ERROR_CAPTION_KEY, msgs.communicationErrorCaption);

From source file com.haulmont.cuba.web.toolkit.ui.CubaCopyButtonExtension.java

public class CubaCopyButtonExtension extends AbstractExtension {

    protected Button component;

    protected CubaCopyButtonExtension(Button button) {
        component = button;

From source file com.haulmont.cuba.web.toolkit.ui.CubaFileDownloader.java

public class CubaFileDownloader extends AbstractExtension {

    public static final String DOWNLOAD_RESOURCE_PREFIX = "download-";
    public static final String VIEW_RESOURCE_PREFIX = "view-";

    protected boolean overrideContentType = true;

From source file com.haulmont.cuba.web.toolkit.ui.CubaHistoryControl.java

public class CubaHistoryControl extends AbstractExtension {
    protected HistoryBackHandler handler;

    public CubaHistoryControl() {
        registerRpc((CubaHistoryControlServerRpc) () -> {
            if (handler != null) {

From source file com.haulmont.cuba.web.toolkit.ui.CubaImageObjectFitPolyfillExtension.java

@WebJarResource("object-fit-images:ofi.min.js")
public class CubaImageObjectFitPolyfillExtension extends AbstractExtension {

    public void extend(CubaImage image) {
        super.extend(image);
    }

From source file com.haulmont.cuba.web.toolkit.ui.CubaTimer.java

public class CubaTimer extends AbstractExtension implements CubaTimerServerRpc {

    private static final Logger log = LoggerFactory.getLogger(CubaTimer.class);

    protected final List<ActionListener> actionListeners = new ArrayList<>();
    protected List<StopListener> stopListeners; // lazily initialized

From source file com.haulmont.cuba.web.toolkit.ui.ScreenClientProfilerAgent.java

public class ScreenClientProfilerAgent extends AbstractExtension {

    protected ScreenProfiler screenProfiler = AppBeans.get(ScreenProfiler.NAME);

    public ScreenClientProfilerAgent() {
        registerRpc((ScreenClientProfilerServerRpc) clientEvents -> screenProfiler.flush(clientEvents));

From source file com.haulmont.cuba.web.widgets.addons.aceeditor.SuggestionExtension.java

/**
 * Extends {@link AceEditor} with suggestion possibility.
 * 
 * By default Ctrl+Space and dot (".") triggers a suggester.
 * 
 * A {@link Suggester} is queried for {@link Suggestion}s.