|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<java.lang.Throwable>
net.sf.latexdraw.badaboom.BadaboomCollector
public final class BadaboomCollector
Defines an error collector.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
02/18/2008
Field Summary | |
---|---|
private java.util.List<BadaboomHandler> |
handlers
Contains objects that want to be aware of the manager activities. |
static BadaboomCollector |
INSTANCE
The singleton. |
private static long |
serialVersionUID
|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
private |
BadaboomCollector()
Creates an empty collector. |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Throwable ex)
|
boolean |
add(java.lang.Throwable ex)
|
void |
addHandler(BadaboomHandler handler)
Adds a handler to the manager. |
protected void |
notifyHandlers(java.lang.Throwable error)
Notifies the handlers that an event occurred. |
void |
onMalaiException(java.lang.Exception exception)
Notifies that an exception has been thrown in the Malai code. |
void |
removeHandler(BadaboomHandler handler)
Removes the given handler of the manager. |
java.lang.Throwable |
set(int pos,
java.lang.Throwable ex)
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
|
Methods inherited from class java.util.ArrayList |
---|
addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
private static final long serialVersionUID
public static final BadaboomCollector INSTANCE
private java.util.List<BadaboomHandler> handlers
Constructor Detail |
---|
private BadaboomCollector()
Method Detail |
---|
public void addHandler(BadaboomHandler handler)
handler
- The handler to add. Must not be null.public void removeHandler(BadaboomHandler handler)
handler
- The handler to remove.protected void notifyHandlers(java.lang.Throwable error)
public boolean add(java.lang.Throwable ex)
add
in interface java.util.Collection<java.lang.Throwable>
add
in interface java.util.List<java.lang.Throwable>
add
in class java.util.ArrayList<java.lang.Throwable>
public java.lang.Throwable set(int pos, java.lang.Throwable ex)
set
in interface java.util.List<java.lang.Throwable>
set
in class java.util.ArrayList<java.lang.Throwable>
public void add(int index, java.lang.Throwable ex)
add
in interface java.util.List<java.lang.Throwable>
add
in class java.util.ArrayList<java.lang.Throwable>
public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
public void onMalaiException(java.lang.Exception exception)
ErrorNotifier
onMalaiException
in interface ErrorNotifier
exception
- The thrown exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |