|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component echopoint.HourGlass
The HourGlass
class is a component that will
display a centered "wait" image whenever information is
being sent back to the server.
In the tradition of "the Highlander", there can be only one HourGlass on a AbstractPane at the one time. The first one added takes precendence over the others.
This is useful to make it absolutely clear to the user that a "server" request is in progress.
The delay in milliseconds is used to remove the "wait" image after a certain time. This is only useful if the server interaction results in NO screen updates. If it does result in screen updates then the "wait" image will be removed as soon as possible, ie as soon as the server replies.
Nested Class Summary | |
static class |
HourGlass.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static int |
CENTER
Centre aligns the HourGlass image |
static int |
DEFAULT_DELAY
the default delay milliseconds |
static nextapp.echo.ImageReference |
DEFAULT_ICON
the default hourglass image |
static java.lang.String |
DELAY_CHANGED_PROPERTY
property name fired when the delay changes |
static nextapp.echo.ImageReference |
HOURGLASS_BW_ICON
a bacl and white hourglass image |
static nextapp.echo.ImageReference |
HOURGLASS_CLR_ICON
a color hourglass image |
static nextapp.echo.ImageReference |
HOURGLASS_RUNNER_ICON
a running man image |
static java.lang.String |
ICON_CHANGED_PROPERTY
property name fired when the imageReference changes |
static int |
LEFT
Left aligns the HourGlass image |
static int |
RIGHT
Right aligns the HourGlass image |
static java.lang.String |
STYLE_ICON
A style constant for the Icon property. |
static java.lang.String |
X_CHANGED_PROPERTY
property name fired when the X coord changes |
static java.lang.String |
Y_CHANGED_PROPERTY
property name fired when the X coord changes |
Fields inherited from class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Constructor Summary | |
HourGlass()
Constructs a HourGlass with a default icon |
|
HourGlass(nextapp.echo.ImageReference icon)
Constructs a HourGlass with the specified icon |
Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
|
int |
getDelay()
|
nextapp.echo.ImageReference |
getIcon()
Returns the ImageReference within the HourGlass. |
int |
getX()
|
int |
getY()
|
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setDelay(int newValue)
Sets the HourGlass's delay, which is the delay in
seconds before the hourglass image is removed. |
void |
setIcon(nextapp.echo.ImageReference newValue)
Sets the ImageReference used by the HourGlass. |
void |
setX(int x)
Sets the x coordinate for the HourGlass image. |
void |
setY(int y)
Sets the y coordinate for the HourGlass image. |
Methods inherited from class nextapp.echo.Component |
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CENTER
public static final int LEFT
public static final int RIGHT
public static nextapp.echo.ImageReference DEFAULT_ICON
public static int DEFAULT_DELAY
public static nextapp.echo.ImageReference HOURGLASS_RUNNER_ICON
public static nextapp.echo.ImageReference HOURGLASS_BW_ICON
public static nextapp.echo.ImageReference HOURGLASS_CLR_ICON
public static final java.lang.String ICON_CHANGED_PROPERTY
public static final java.lang.String DELAY_CHANGED_PROPERTY
public static final java.lang.String X_CHANGED_PROPERTY
public static final java.lang.String Y_CHANGED_PROPERTY
public static final java.lang.String STYLE_ICON
nextapp.echo.ImageReference.
Constructor Detail |
public HourGlass()
HourGlass
with a default icon
public HourGlass(nextapp.echo.ImageReference icon)
HourGlass
with the specified icon
Method Detail |
public void applyStyle(nextapp.echo.Style style)
EchoPointComponent.applyStyle(nextapp.echo.Style)
public int getDelay()
HourGlass
before it will remove the image.public void setDelay(int newValue)
HourGlass's
delay, which is the delay in
seconds before the hourglass image is removed.
public nextapp.echo.ImageReference getIcon()
public void setIcon(nextapp.echo.ImageReference newValue)
newValue
- public int getX()
public int getY()
public void setX(int x)
x
- - the x coordinate for the HourGlass imagepublic void setY(int y)
y
- - the y coordinate for the HourGlass imagepublic java.lang.Object set(java.lang.reflect.Field field, java.lang.Object newValue) throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception { Object oldValue = f.get(this); f.set(this,newValue); return oldValue; }
set
in interface ReflectionSetter
field
- - the field to be setnewValue
- - the new value to be set
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |