List of usage examples for org.apache.commons.collections.list CursorableLinkedList CursorableLinkedList
public CursorableLinkedList()
From source file:ListExampleV1.java
private void createLists() { uniqueList = SetUniqueList.decorate(new TreeList()); cursorList = new CursorableLinkedList(); }
From source file:org.apache.cocoon.forms.formmodel.Form.java
/** * Events produced by child widgets should not be fired immediately, but queued in order to ensure * an overall consistency of the widget tree before being handled. * * @param event the event to queue/*from ww w . j a v a2 s. com*/ */ public void addWidgetEvent(WidgetEvent event) { if (this.bufferEvents) { if (this.events == null) { this.events = new CursorableLinkedList(); } // FIXME: limit the number of events to detect recursive event loops ? this.events.add(event); } else { // Send it right now event.getSourceWidget().broadcastEvent(event); } }
From source file:org.apache.cocoon.woody.formmodel.Form.java
/** * Events produced by child widgets should not be fired immediately, but queued in order to ensure * an overall consistency of the widget tree before being handled. * /*from w w w . jav a 2s. co m*/ * @param event the event to queue */ public void addWidgetEvent(WidgetEvent event) { if (this.events == null) { this.events = new CursorableLinkedList(); } // FIXME: limit the number of events to detect recursive event loops ? this.events.add(event); }