public QuickFixManagerImpl(final GuiEditor editor, final GlassLayer component, final JViewport viewPort) { super(editor, component, viewPort); editor.addComponentSelectionListener(new ComponentSelectionListener() { @Override public void selectedComponentChanged(GuiEditor source) { hideIntentionHint(); updateIntentionHintVisibility(); } }); }
/** * Fires event that selection changes */ public void fireSelectedComponentChanged() { final ComponentSelectionListener[] listeners = myListenerList.getListeners(ComponentSelectionListener.class); for (ComponentSelectionListener listener : listeners) { listener.selectedComponentChanged(this); } }
/** * Fires event that selection changes */ public void fireSelectedComponentChanged() { final ComponentSelectionListener[] listeners = myListenerList.getListeners(ComponentSelectionListener.class); for(ComponentSelectionListener listener : listeners) { listener.selectedComponentChanged(this); } }
/** * Removes specified selection listener */ public void removeComponentSelectionListener(final ComponentSelectionListener l) { myListenerList.remove(ComponentSelectionListener.class, l); }
/** * Adds specified selection listener. This listener gets notification each time * the selection in the component the changes. */ public void addComponentSelectionListener(final ComponentSelectionListener l) { myListenerList.add(ComponentSelectionListener.class, l); }