use of com.vaadin.client.ui.HasContextHelpConnector in project cuba by cuba-platform.
the class CubaFieldGroupLayoutComponentSlot method onBrowserEvent.
@Override
public void onBrowserEvent(Event event) {
if (DOM.eventGetType(event) == Event.ONCLICK) {
Element target = Element.as(event.getEventTarget());
ComponentConnector componentConnector = Util.findConnectorFor(getWidget());
if (target == contextHelpIndicatorElement && componentConnector instanceof HasContextHelpConnector) {
HasContextHelpConnector connector = (HasContextHelpConnector) componentConnector;
if (hasContextHelpIconListeners(componentConnector.getState())) {
connector.contextHelpIconClick(event);
}
}
}
}
use of com.vaadin.client.ui.HasContextHelpConnector in project cuba by cuba-platform.
the class CubaOrderedLayoutSlot method onClick.
@Override
public void onClick(ClickEvent event) {
Element target = Element.as(event.getNativeEvent().getEventTarget());
ComponentConnector componentConnector = Util.findConnectorFor(getWidget());
if (target == contextHelpIcon && componentConnector instanceof HasContextHelpConnector) {
HasContextHelpConnector connector = (HasContextHelpConnector) componentConnector;
if (hasContextHelpIconListeners(componentConnector.getState())) {
connector.contextHelpIconClick(event);
}
}
}
Aggregations