| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | items
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(EventHandlerPriority
the priority priority, EventHandler<?> the handler to add handler)Adds the specified priority (always), and the specified handler if not null. |
| private int | Returns: the insertion index (positive), or -(insertionIndex + 1) (negative)the priority priority)Returns the index into |
| public < the event type T extends Event> void | |
| private void | |
| private boolean | |
| public < the event type T extends Event> boolean | Returns: true when the list becomes empty as a resultthe handler to remove handler)Removes all the instances of the specified handler. |
| public boolean | Returns: true if list is empty as a resultRemoves all the entries with the specified priorities. |
| public String | |
| public void |
| items | back to summary |
|---|---|
| private final ArrayList<Object> items
Example: [ USER_HIGH, handler1, handler2, SKIN_KB, SKIN_LOW, handler3 ] | |
| PHList | back to summary |
|---|---|
| public PHList() | |
| add | back to summary |
|---|---|
| public void add(EventHandlerPriority priority, EventHandler<?> handler) Adds the specified priority (always), and the specified handler if not null. A newly added handler will be inserted after previously added handlers with the same priority.
| |
| findInsertionIndex | back to summary |
|---|---|
| private int findInsertionIndex(EventHandlerPriority priority) Returns the index into
| |
| forEach | back to summary |
|---|---|
| public <T extends Event> void forEach(PHList. Invokes the | |
| insert | back to summary |
|---|---|
| private void insert(int ix, Object item) | |
| isNullOrPriority | back to summary |
|---|---|
| private boolean isNullOrPriority(int ix) | |
| remove | back to summary |
|---|---|
| public <T extends Event> boolean remove(EventHandler<T> handler) Removes all the instances of the specified handler. Returns true if the list becomes empty as a result. Returns true if the list becomes empty as a result of the removal.
| |
| removeHandlers | back to summary |
|---|---|
| public boolean removeHandlers(Set<EventHandlerPriority> priorities) Removes all the entries with the specified priorities.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| validateInternalState | back to summary |
|---|---|
| public void validateInternalState(Object... expected) An internal testing method.
| |
forEach(Client) method.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true to continue the process, false to stopthe priority pri, EventHandler<T> the handler (can be null) h)This method gets called for each handler in the order of priority. |
| accept | back to summary |
|---|---|
| public boolean accept(EventHandlerPriority pri, EventHandler<T> h) This method gets called for each handler in the order of priority. The client may signal to stop iterating by returning false from this method.
| |