public final class ViewEvent
extends java.util.EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
VIEW_ACTIVATED
Constant indicating the view was just activated.
|
static int |
VIEW_CLOSED
Constant indicating the view was just closed.
|
static int |
VIEW_DEACTIVATED
Constant indicating the view was just deactivated.
|
| Constructor and Description |
|---|
ViewEvent(View view,
int id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getID()
Determine what type of change occurred.
|
View |
getView()
Get the View whose state has changed.
|
public static final int VIEW_ACTIVATED
public static final int VIEW_DEACTIVATED
public static final int VIEW_CLOSED
public ViewEvent(View view, int id)
view - the View whose state has been altered.id - the ID number of the event type. The value can be any of
the following constants: VIEW_ACTIVATED, VIEW_DEACTIVATED,
or VIEW_CLOSED.java.lang.IllegalArgumentException - if the id parameter is
not one of the predefined constants.public int getID()
public View getView()