|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.dialogs.ControlAnimator
ControlAnimator provides a simple implementation to display or hide a control.
Other animations will be written as subclasses of this class. By setting the animator
in the method Policy.setAnimator(ControlAnimator)
a new type of animator can be plugged into JFace.
| Field Summary | |
|---|---|
static int |
CLOSED
A constant denoting the CLOSED animation state of a control (value is 0) |
static int |
CLOSING
A constant denoting the CLOSING animation state of a control (value is 3) |
static int |
OPEN
A constant denoting the OPEN animation state of a control (value is 2) |
static int |
OPENING
A constant denoting the OPENING animation state of a control (value is 1) |
| Constructor Summary | |
|---|---|
ControlAnimator()
|
|
| Method Summary | |
|---|---|
int |
getAnimationState()
Returns the current state of the control. |
void |
setAnimationState(int state)
Sets the state of the control and whether or not it should be visible. |
void |
setVisible(boolean visible,
Control control)
Displays or hides the given control. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CLOSED
public static final int OPENING
public static final int OPEN
public static final int CLOSING
| Constructor Detail |
public ControlAnimator()
| Method Detail |
public void setVisible(boolean visible,
Control control)
visible - true if the control should be shown,
and false otherwise.control - the control to be displayed or hidden.public void setAnimationState(int state)
OPENING, OPEN,
CLOSING, or CLOSED
state - the desired state of the controlpublic int getAnimationState()
OPENING,
OPEN, CLOSING, or CLOSED
|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.