List of usage examples for com.google.gwt.event.shared HandlerManager HandlerManager
public HandlerManager(Object source)
From source file:com.vaadin.client.renderers.ClickableRenderer.java
License:Apache License
/** * Adds a click handler to this button renderer. The handler is invoked * every time one of the widgets rendered by this renderer is clicked. * <p>/*from ww w. j a v a2 s. c o m*/ * Note that the row type of the click handler must match the row type of * the containing Grid. * * @param handler * the click handler to be added */ public HandlerRegistration addClickHandler(RendererClickHandler<?> handler) { if (handlerManager == null) { handlerManager = new HandlerManager(this); } return handlerManager.addHandler(RendererClickEvent.TYPE, handler); }
From source file:com.vaadin.client.SimpleTree.java
License:Apache License
/** * {@inheritDoc} Events are not fired when double clicking child widgets. *//*w w w. j ava2s . com*/ @Override public HandlerRegistration addDoubleClickHandler(DoubleClickHandler handler) { if (textDoubleClickHandlerManager == null) { textDoubleClickHandlerManager = new HandlerManager(this); addDomHandler(new DoubleClickHandler() { @Override public void onDoubleClick(DoubleClickEvent event) { if (event.getNativeEvent().getEventTarget().cast() == text) { textDoubleClickHandlerManager.fireEvent(event); } } }, DoubleClickEvent.getType()); } return textDoubleClickHandlerManager.addHandler(DoubleClickEvent.getType(), handler); }
From source file:com.vaadin.client.ui.AbstractConnector.java
License:Apache License
protected HandlerManager ensureHandlerManager() { if (handlerManager == null) { handlerManager = new HandlerManager(this); }/* w w w. j a v a2 s . c om*/ return handlerManager; }
From source file:com.vaadin.client.ui.AbstractConnector.java
License:Apache License
private HandlerManager ensureHandlerManager(String propertyName) { if (statePropertyHandlerManagers == null) { statePropertyHandlerManagers = FastStringMap.create(); }//from w ww.ja v a2 s . c om HandlerManager manager = statePropertyHandlerManagers.get(propertyName); if (manager == null) { manager = new HandlerManager(this); statePropertyHandlerManagers.put(propertyName, manager); } return manager; }
From source file:com.vaadin.client.widget.escalator.ScrollbarBundle.java
License:Apache License
protected HandlerManager getHandlerManager() { if (handlerManager == null) { handlerManager = new HandlerManager(this); }//from ww w .j a v a 2 s . c o m return handlerManager; }
From source file:com.vaadin.client.widgets.ChildFocusAwareFlowPanel.java
License:Apache License
/** * Creates a new panel instance./* w w w . j a v a2 s . com*/ */ public ChildFocusAwareFlowPanel() { eventBus = new HandlerManager(this); getElement().getStyle().setOutlineStyle(OutlineStyle.NONE); super.addFocusHandler(handler); super.addBlurHandler(handler); }
From source file:cz.cas.lib.proarc.webapp.client.presenter.DigitalObjectEditor.java
License:Open Source License
private HandlerManager createHandlerManager() { return new HandlerManager(this); }
From source file:cz.incad.kramerius.editor.share.GWTRelationKindModel.java
License:Open Source License
GWTRelationKindModel(GWTKrameriusObject krameriusObject, Kind relKind) { this.krameriusObject = krameriusObject; this.relKind = relKind; this.relations = Collections.unmodifiableList(krameriusObject.getRelations(relKind)); this.handlerManager = new HandlerManager(this); }
From source file:cz.incad.kramerius.editor.share.GWTRelationModel.java
License:Open Source License
public GWTRelationModel(GWTKrameriusObject krameriusObject) { this.krameriusObject = krameriusObject; this.handlerManager = new HandlerManager(this); this.relKindModelHandler = new RelKindModelChangeHandler(); Set<Kind> kinds = krameriusObject.getRelationKinds(); this.kind2ModelMap = new EnumMap(Kind.class); for (Kind kind : kinds) { GWTRelationKindModel relKindModel = new GWTRelationKindModel(krameriusObject, kind); relKindModel.addValueChangeHandler(this.relKindModelHandler); this.kind2ModelMap.put(kind, relKindModel); }/*from www.ja va 2 s . c o m*/ }
From source file:de.csenk.gwt.commons.bean.shared.observe.impl.AbstractObservableProperty.java
License:Apache License
/** * */ public AbstractObservableProperty() { handlerManager = new HandlerManager(this); }