/** * Creates an EventListenerSupport object which supports the specified * listener type. * * @param <T> the type of the listener interface * @param listenerInterface the type of listener interface that will receive * events posted using this class. * * @return an EventListenerSupport object which supports the specified * listener type. * * @throws NullPointerException if <code>listenerInterface</code> is * <code>null</code>. * @throws IllegalArgumentException if <code>listenerInterface</code> is * not an interface. */ public static <T> EventListenerSupport<T> create(final Class<T> listenerInterface) { return new EventListenerSupport<>(listenerInterface); }
/** * Creates an EventListenerSupport object which supports the specified * listener type. * * @param <T> the type of the listener interface * @param listenerInterface the type of listener interface that will receive * events posted using this class. * * @return an EventListenerSupport object which supports the specified * listener type. * * @throws NullPointerException if <code>listenerInterface</code> is * <code>null</code>. * @throws IllegalArgumentException if <code>listenerInterface</code> is * not an interface. */ public static <T> EventListenerSupport<T> create(final Class<T> listenerInterface) { return new EventListenerSupport<>(listenerInterface); }
/** * Creates an EventListenerSupport object which supports the specified * listener type. * * @param <T> the type of the listener interface * @param listenerInterface the type of listener interface that will receive * events posted using this class. * * @return an EventListenerSupport object which supports the specified * listener type. * * @throws NullPointerException if <code>listenerInterface</code> is * <code>null</code>. * @throws IllegalArgumentException if <code>listenerInterface</code> is * not an interface. */ public static <T> EventListenerSupport<T> create(final Class<T> listenerInterface) { return new EventListenerSupport<>(listenerInterface); }
/** * Creates an EventListenerSupport object which supports the specified * listener type. * * @param <T> the type of the listener interface * @param listenerInterface the type of listener interface that will receive * events posted using this class. * * @return an EventListenerSupport object which supports the specified * listener type. * * @throws NullPointerException if <code>listenerInterface</code> is * <code>null</code>. * @throws IllegalArgumentException if <code>listenerInterface</code> is * not an interface. */ public static <T> EventListenerSupport<T> create(final Class<T> listenerInterface) { return new EventListenerSupport<>(listenerInterface); }
public final Object readResolve() { this.changeSupport = new EventListenerSupport<ChangeListener>( ChangeListener.class); this.stateListener = new CDockableStateListener() { @Override public void visibilityChanged(CDockable d) { updateVisible(dockable.isVisible()); } @Override public void extendedModeChanged(CDockable d, ExtendedMode mode) { } }; this.focusListener = new CFocusListener() { @Override public void focusLost(CDockable dockable) { updateFocus(false); } @Override public void focusGained(CDockable dockable) { updateFocus(true); } }; return this; }
private Object readResolve() { this.s = new EventListenerSupport<ChartModelListener>( ChartModelListener.class); this.p = new PropertyChangeSupport(this); return this; }
private Object readResolve() { this.changeSupport = new EventListenerSupport<ChangeListener>( ChangeListener.class); this.stateListener = new CDockableStateListener() { @Override public void visibilityChanged(CDockable d) { updateVisible(dockable.isVisible()); } @Override public void extendedModeChanged(CDockable d, ExtendedMode mode) { } }; this.focusListener = new CFocusListener() { @Override public void focusLost(CDockable dockable) { updateFocus(false); } @Override public void focusGained(CDockable dockable) { updateFocus(true); } }; return this; }
/** * Constructs the list item from the specified value. * * @param value * the item value. */ @SuppressWarnings("unchecked") @Inject public CheckListItem(@Assisted Object value) { this.changeSupport = new EventListenerSupport<ChangeListener>( ChangeListener.class); this.value = (E) value; this.selected = false; }
private ChangedList() { fileList = new LinkedHashMap<String, ChangedFile>(); reservedFiles = new LinkedHashMap<String, ChangedFile>(); this.fileExclusionManager = new FileExclusionManager(); listVersion = 0; listeners = new EventListenerSupport<ChangedListListener>(ChangedListListener.class); this.executorService = Executors.newSingleThreadExecutor(); }
/** * @see #decorate(JList) */ ActionList(JList<E> list) { this.actionListeners = new EventListenerSupport<ActionListener>( ActionListener.class); this.list = list; setupList(); }
this.layoutListeners = new EventListenerSupport<LayoutListener>( LayoutListener.class); this.viewDocks = new ConcurrentHashMap<SingleCDockable, ViewDockWindow>(); this.editorDocks = new ConcurrentHashMap<MultipleCDockable, EditorDockWindow>(); this.changeListeners = new EventListenerSupport<ChangeListener>( ChangeListener.class); this.editorsFocusListener = new CFocusListener() {
public DuraStoreSyncEndpoint(ContentStore contentStore, String username, String spaceId, boolean syncDeletes, boolean syncUpdates, boolean renameUpdates, boolean jumpStart, String updateSuffix, String prefix) { this.contentStore = contentStore; this.username = username; this.storeId = this.contentStore.getStoreId(); this.spaceId = spaceId; this.syncDeletes = syncDeletes; this.syncUpdates = syncUpdates; this.renameUpdates = renameUpdates; this.jumpStart = jumpStart; this.updateSuffix = updateSuffix; this.prefix = prefix; this.listenerList = new EventListenerSupport<>(EndPointListener.class); logger.info("Sync endpoint ready to transfer to space:" + spaceId + " in store: " + storeId + " with config: " + " syncDeletes:" + syncDeletes + ", syncUpdates:" + syncUpdates + ", renameUpdates:" + renameUpdates + ", jumpStart:" + jumpStart + ", updateSuffix:" + updateSuffix + ", prefix:" + prefix); ensureSpaceExists(); }
.getProperty(ACTION_ACCELERATORS_PROPERTY)); this.localeListeners = new EventListenerSupport<LocaleListener>( LocaleListener.class); this.locale = Locale.getDefault();