/** {@inheritDoc} */ public EventList createEventList(int initalCapacity) { return new BasicEventList(initalCapacity); } }
/** * Constructs a PluggableList which uses the given <code>publisher</code> * and <code>lock</code>. The PluggableList will default to use a * {@link BasicEventList} that also uses the same <code>publisher</code> * and <code>lock</code>. * * @param publisher the {@link ListEventPublisher} to use within the {@link PluggableList} * @param lock the {@link ReadWriteLock} to use within the {@link PluggableList} */ public PluggableList(ListEventPublisher publisher, ReadWriteLock lock) { this(new BasicEventList<E>(publisher, lock)); }
/** {@inheritDoc} */ public EventList createEventList(int initalCapacity) { return new BasicEventList(initalCapacity); } }
/** {@inheritDoc} */ @Override public EventList createEventList(int initalCapacity) { return new BasicEventList(initalCapacity); } }
/** * Create a {@link CompositeMatcherEditor}. */ public CompositeMatcherEditor() { this(new BasicEventList<MatcherEditor<E>>()); }
/** {@inheritDoc} */ public EventList createEventList() { final ListInfo info = getListInfo(); return new BasicEventList(info.publisher, info.lock); }
/** * Creates a {@link DebugList} using the specified * {@link ListEventPublisher} and {@link ReadWriteLock}. This is * particularly useful when multiple {@link DebugList}s are used within a * {@link CompositeList} and must share the same lock and publisher. */ private DebugList(ListEventPublisher publisher, DebugReadWriteLock debugReadWriteLock) { this.debugReadWriteLock = debugReadWriteLock; // use a normal BasicEventList as the delegate implementation this.delegate = new BasicEventList<E>(publisher, this.debugReadWriteLock); this.delegate.addListEventListener(delegateWatcher); }
/** * Creates a {@link DebugList} using the specified * {@link ListEventPublisher} and {@link ReadWriteLock}. This is * particularly useful when multiple {@link DebugList}s are used within a * {@link CompositeList} and must share the same lock and publisher. */ private DebugList(ListEventPublisher publisher, DebugReadWriteLock debugReadWriteLock) { this.debugReadWriteLock = debugReadWriteLock; // use a normal BasicEventList as the delegate implementation this.delegate = new BasicEventList<E>(publisher, this.debugReadWriteLock); this.delegate.addListEventListener(delegateWatcher); }
/** {@inheritDoc} */ public EventList createEventList(int initalCapacity) { final ListInfo info = getListInfo(); return new BasicEventList(initalCapacity, info.publisher, info.lock); }
/** {@inheritDoc} */ @Override public EventList createEventList() { final ListInfo info = getListInfo(); return new BasicEventList(info.publisher, info.lock); }
/** {@inheritDoc} */ @Override public EventList createEventList(int initalCapacity) { final ListInfo info = getListInfo(); return new BasicEventList(initalCapacity, info.publisher, info.lock); }
/** {@inheritDoc} */ public EventList createEventList(int initalCapacity) { final ListInfo info = getListInfo(); return new BasicEventList(initalCapacity, info.publisher, info.lock); }
/** * Creates a new {@link EventList} which contains the contents of the specified * {@link Collection}. The {@link EventList}'s order will be determined by * {@link Collection#iterator() contents.iterator()}. * * @param contents the collection with list elements, if <code>null</code> the result will be * an empty list */ public static <E> EventList<E> eventList(Collection<? extends E> contents) { final EventList<E> result = new BasicEventList<E>(contents == null ? 0 : contents.size()); if(contents != null) result.addAll(contents); return result; }
public HoursByWeekReport(final PresentationModel model) { this.model = model; this.model.getEventBus().register(this); this.hoursByWeekList = new SortedList<HoursByWeek>(new BasicEventList<HoursByWeek>()); calculateHours(); }
public HoursByProjectReport(final PresentationModel model) { this.model = model; this.model.getEventBus().register(this); this.hoursByProjectList = new SortedList<HoursByProject>(new BasicEventList<HoursByProject>()); calculateHours(); }
public static void main(String[] args) { EventList<Issue> issues = new BasicEventList<Issue>(); new Thread(new IssueLoader(issues, args[0])).start(); SwingUtilities.invokeLater(new JXTableSupportTestApp(issues)); }
public static void main(String[] args) { EventList<Issue> issues = new BasicEventList<Issue>(); new Thread(new IssueLoader(issues, args[0])).start(); SwingUtilities.invokeLater(new JXTableTestApp2(issues)); }
public AutocompleteComboBox(Collection<E> items) { super(); this.items = new BasicEventList<>(); this.items.addAll(items); init(); }
@Setup(Level.Invocation) public void setUp() { matcherEditor = new AtLeastMatcherEditor(); base = new BasicEventList<>(); for (int i = 0; i < baseSize; i++) { base.add(new Integer(dice.nextInt(1000))); } filtered = new FilterList<>(base, matcherEditor); }
private static void createIssuesTable(Shell shell) { BasicEventList issuesEventList = new BasicEventList(); Composite comp1 = new Composite(shell, SWT.NONE); comp1.setLayout(new FillLayout()); final KTable table = new KTable(comp1, SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWTX.FILL_WITH_LASTCOL | SWTX.EDIT_ON_KEY); DefaultEventKTableModel tableModel = GlazedListsKTable.eventKTableModelWithThreadProxyList(table, issuesEventList, new IssuesTableFormat()); table.setModel(tableModel); // loads issues final IssueLoader issueLoader = new IssueLoader(issuesEventList, new SimpleThrobber()); issueLoader.start(); issueLoader.setProject(Project.getProjects().get(0)); }