Example usage for com.vaadin.client ServerConnector isEnabled

List of usage examples for com.vaadin.client ServerConnector isEnabled

Introduction

In this page you can find the example usage for com.vaadin.client ServerConnector isEnabled.

Prototype

public boolean isEnabled();

Source Link

Document

Tests whether the connector is enabled or not.

Usage

From source file:org.opencms.ui.client.CmsMaxHeightConnector.java

License:Open Source License

/**
 * @see com.vaadin.client.extensions.AbstractExtensionConnector#extend(com.vaadin.client.ServerConnector)
 */// w ww.  j a v  a  2  s .  c o  m
@Override
protected void extend(ServerConnector target) {

    target.isEnabled();

    // Get the extended widget
    m_widget = ((ComponentConnector) target).getWidget();
    addMutationObserver(m_widget.getElement());
    addStateChangeHandler(new StateChangeHandler() {

        @SuppressWarnings("synthetic-access")
        public void onStateChanged(StateChangeEvent stateChangeEvent) {

            m_currentHeight = -1;
            handleMutation();
        }
    });
}