|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.builder.event.filter.AbstractEventFilter
net.sf.jguiraffe.gui.builder.event.filter.ClassEventFilter
public class ClassEventFilter
A specialized EventFilter implementation that filters by an
event class.
This event filter class can be used if only certain event classes are to be
selected and the concrete event type does not matter. For instance, this
class allows you to select all types of WindowEvents.
| Constructor Summary | |
|---|---|
ClassEventFilter()
Creates a new instance of ClassEventFilter. |
|
ClassEventFilter(java.lang.Class<?> baseClass)
Creates a new instance of ClassEventFilter and initializes
it with the class to filter. |
|
ClassEventFilter(java.lang.Class<?> baseClass,
boolean acceptNull)
Creates a new instance of ClassEventFilter and initializes
it. |
|
| Method Summary | |
|---|---|
protected boolean |
acceptEvent(BuilderEvent event)
Tests the specified event object. |
| Methods inherited from class net.sf.jguiraffe.gui.builder.event.filter.AbstractEventFilter |
|---|
accept, getBaseClass, isAcceptNull, setAcceptNull, setBaseClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassEventFilter()
ClassEventFilter. The class to
filter is set to BuilderEvent, null values wont't
be accepted.
public ClassEventFilter(java.lang.Class<?> baseClass)
ClassEventFilter and initializes
it with the class to filter. null values wont't be accepted.
baseClass - the class to filter
public ClassEventFilter(java.lang.Class<?> baseClass,
boolean acceptNull)
ClassEventFilter and initializes
it.
baseClass - the class to filteracceptNull - the acceptNull flag| Method Detail |
|---|
protected boolean acceptEvent(BuilderEvent event)
acceptEvent in class AbstractEventFilterevent - the event to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||