/** * Notifies all listeners that the focus of the vertices has changed. * @param newVertexRefs */ private synchronized void fireVertexRefsUpdated(Collection<VertexRef> newVertexRefs, TopologyServiceClient source) { if (!hasChanged(newVertexRefs, m_verticesInFocus)) { return; } m_verticesInFocus.clear(); m_verticesInFocus.addAll(newVertexRefs); final boolean displayedSelected = m_displayableVertexRefs.size() == m_verticesInFocus.size(); final VerticesUpdateEvent updateEvent = new VerticesUpdateEvent(Collections.unmodifiableSet(m_verticesInFocus), source, displayedSelected); m_applicationContext.getEventProxy(m_serviceManager).fireEvent(updateEvent); } }
/** * Notifies all listeners that the focus of the vertices has changed. * @param newVertexRefs */ private synchronized void fireVertexRefsUpdated(Collection<VertexRef> newVertexRefs, TopologyServiceClient source) { if (!hasChanged(newVertexRefs, m_verticesInFocus)) { return; } m_verticesInFocus.clear(); m_verticesInFocus.addAll(newVertexRefs); final boolean displayedSelected = m_displayableVertexRefs.size() == m_verticesInFocus.size(); final VerticesUpdateEvent updateEvent = new VerticesUpdateEvent(Collections.unmodifiableSet(m_verticesInFocus), source, displayedSelected); m_applicationContext.getEventProxy(m_serviceManager).fireEvent(updateEvent); } }
@Override public Component getView(final VaadinApplicationContext vaadinApplicationContext, final WidgetContext widgetContext) { // Get the component by asking the blueprint container to instantiate a prototype bean final Component component = (Component)m_container.getComponentInstance(m_beanId); final BundleContext bundleContext = (BundleContext) m_container.getComponentInstance("blueprintBundleContext"); final EventProxy eventProxy = vaadinApplicationContext.getEventProxy(bundleContext); eventProxy.addPossibleEventConsumer(component); injectEventProxy(component, eventProxy); injectVaadinApplicationContext(component, vaadinApplicationContext); return component; }
@Override public Component getView(final VaadinApplicationContext vaadinApplicationContext, final WidgetContext widgetContext) { // Get the component by asking the blueprint container to instantiate a prototype bean final Component component = (Component)m_container.getComponentInstance(m_beanId); final BundleContext bundleContext = (BundleContext) m_container.getComponentInstance("blueprintBundleContext"); final EventProxy eventProxy = vaadinApplicationContext.getEventProxy(bundleContext); eventProxy.addPossibleEventConsumer(component); injectEventProxy(component, eventProxy); injectVaadinApplicationContext(component, vaadinApplicationContext); return component; }
@Override public Component getView(final VaadinApplicationContext vaadinApplicationContext, final WidgetContext widgetContext) { // Get the component by asking the blueprint container to instantiate a prototype bean final Component component = (Component)m_container.getComponentInstance(m_beanId); final BundleContext bundleContext = (BundleContext) m_container.getComponentInstance("blueprintBundleContext"); final EventProxy eventProxy = vaadinApplicationContext.getEventProxy(bundleContext); eventProxy.addPossibleEventConsumer(component); injectEventProxy(component, eventProxy); injectVaadinApplicationContext(component, vaadinApplicationContext); return component; }