Search in sources :

Example 11 with VButton

use of com.vaadin.client.ui.VButton in project cuba by cuba-platform.

the class CubaCopyButtonExtensionConnector method extend.

@Override
protected void extend(ServerConnector target) {
    VButton button = (VButton) ((ComponentConnector) target).getWidget();
    button.addClickHandler(event -> {
        if (getState().copyTargetSelector != null) {
            boolean success = copyToClipboard(getState().copyTargetSelector.startsWith(".") ? getState().copyTargetSelector : "." + getState().copyTargetSelector);
            getRpcProxy(CubaCopyButtonExtensionServerRpc.class).copied(success);
        }
    });
}
Also used : VButton(com.vaadin.client.ui.VButton)

Aggregations

VButton (com.vaadin.client.ui.VButton)11 Widget (com.google.gwt.user.client.ui.Widget)7 VUpload (com.vaadin.client.ui.VUpload)6 CubaFileUploadWidget (com.haulmont.cuba.web.toolkit.ui.client.jqueryfileupload.CubaFileUploadWidget)4 VAbstractOrderedLayout (com.vaadin.client.ui.orderedlayout.VAbstractOrderedLayout)4 CubaFileUploadWidget (com.haulmont.cuba.web.widgets.client.jqueryfileupload.CubaFileUploadWidget)3 Element (com.google.gwt.dom.client.Element)2 NativeEvent (com.google.gwt.dom.client.NativeEvent)2 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)2 HTML (com.google.gwt.user.client.ui.HTML)2 Slot (com.vaadin.client.ui.orderedlayout.Slot)2 Scheduler (com.google.gwt.core.client.Scheduler)1 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)1 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)1 FocusEvent (com.google.gwt.event.dom.client.FocusEvent)1 FocusHandler (com.google.gwt.event.dom.client.FocusHandler)1 FocusWidget (com.google.gwt.user.client.ui.FocusWidget)1 CubaButtonWidget (com.haulmont.cuba.web.toolkit.ui.client.button.CubaButtonWidget)1