|
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 nextapp.echo.Panel echopoint.Panel echopoint.ScrollablePanel echopoint.NewsTicker
The NewsTicker
class provides a Component
that scrolls its child components in a panel according to
user defined parameters.
Nested Class Summary | |
static class |
NewsTicker.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
protected int |
delay
|
static java.lang.String |
DELAY_CHANGED_PROPERTY
Property Change Names |
protected int |
direction
|
static java.lang.String |
DIRECTION_CHANGED_PROPERTY
|
static java.lang.String |
PIXELS_PER_CHANGED_PROPERTY
|
protected int |
pixelsPerScroll
|
static java.lang.String |
STYLE_DELAY
A style constant for the Delay property. |
static java.lang.String |
STYLE_DIRECTION
A style constant for the Direction property. |
static java.lang.String |
STYLE_PIXELS_PER_SCROLL
A style constant for the PixelsPerScroll property. |
Fields inherited from class echopoint.ScrollablePanel |
DEFAULT_POSITONABLE_POLICY, DEFAULT_SCROLLBAR_POLICY |
Fields inherited from class nextapp.echo.Panel |
DEFAULT_INSETS, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, INSETS_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_INSETS, STYLE_VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_CHANGED_PROPERTY |
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 |
Fields inherited from interface echopoint.positionable.ScrollableContainer |
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, INSETS_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_INSETS, STYLE_VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_CHANGED_PROPERTY |
Fields inherited from interface echopoint.positionable.Scrollable |
HEIGHT_CHANGED_PROPERTY, SCROLL_BAR_X_CHANGED_PROPERTY, SCROLL_BAR_Y_CHANGED_PROPERTY, SCROLLBAR_POLICY_CHANGED_PROPERTY, SCROLLBARS_ALWAYS, SCROLLBARS_AUTO, SCROLLBARS_CLIPHIDE, SCROLLBARS_NEVER, STYLE_HEIGHT, STYLE_SCROLL_BAR_POLICY, STYLE_WIDTH, UNDEFINED, undefinedSymbolic, WIDTH_CHANGED_PROPERTY |
Fields inherited from interface echopoint.positionable.Positionable |
POSITION_CHANGED_PROPERTY, POSITIONING_ABSOLUTE, POSITIONING_FLOW, POSITIONING_RELATIVE, positioningSymbolics, STYLE_BOTTOM, STYLE_LEFT, STYLE_POSITIONING, STYLE_RIGHT, STYLE_TOP, STYLE_ZINDEX, UNDEFINED, undefinedSymbolic |
Fields inherited from interface echopoint.positionable.Clippable |
CLIP_RECT_CHANGED_PROPERTY, STYLE_CLIP_RECT |
Fields inherited from interface echopoint.layout.LayoutManageable |
LAYOUT_MANAGED_CHANGED_PROPERTY |
Fields inherited from interface echopoint.positionable.MouseCursorable |
borderStyleSymbolics, CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI |
Constructor Summary | |
NewsTicker()
Creates a NewsTicker that is 300 pixels by 300 pixels. |
|
NewsTicker(LayoutManager layoutManager)
Constructs a NewsTicker with a LayoutManager
that is 300 pixels by 300 pixels. |
Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
int |
getDelay()
Returns the delay, in milliseconds |
int |
getDirection()
Returns the direction of the NewsTicker text. |
int |
getPixelsPerScroll()
Returns the pixelsPerScroll. |
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 delay)
Sets the delay in milliseconds. |
void |
setDirection(int newDirection)
Sets the direction of the NewsTicker text. |
void |
setPixelsPerScroll(int pixelsPerScroll)
Sets the pixelsPerScroll. |
Methods inherited from class echopoint.ScrollablePanel |
clearPositioning, getBottom, getClipRect, getHeight, getLeft, getPositioning, getRight, getScreenHeight, getScreenWidth, getScrollBarPolicy, getScrollBarX, getScrollBarY, getTop, getWidth, getzIndex, isPositioned, setBottom, setClipRect, setClipRect, setClipRect, setHeight, setLeft, setPositioning, setRight, setScrollBarPolicy, setScrollBarX, setScrollBarY, setTop, setWidth, setzIndex |
Methods inherited from class nextapp.echo.Panel |
getHorizontalAlignment, getInsets, getVerticalAlignment, setHorizontalAlignment, setInsets, setVerticalAlignment |
Methods inherited from class nextapp.echo.Component |
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, 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 |
Methods inherited from interface echopoint.positionable.ScrollableContainer |
getHorizontalAlignment, getInsets, getVerticalAlignment, setHorizontalAlignment, setInsets, setVerticalAlignment |
Methods inherited from interface echopoint.layout.LayoutManageable |
add, add, add, add, getLayoutManager, remove, remove, setLayoutManager |
Field Detail |
public static final java.lang.String STYLE_DELAY
int.
public static final java.lang.String STYLE_PIXELS_PER_SCROLL
int.
public static final java.lang.String STYLE_DIRECTION
int.
public static final java.lang.String DELAY_CHANGED_PROPERTY
public static final java.lang.String PIXELS_PER_CHANGED_PROPERTY
public static final java.lang.String DIRECTION_CHANGED_PROPERTY
protected int delay
protected int pixelsPerScroll
protected int direction
Constructor Detail |
public NewsTicker()
NewsTicker
that is 300 pixels by 300 pixels.
public NewsTicker(LayoutManager layoutManager)
NewsTicker
with a LayoutManager
that is 300 pixels by 300 pixels.
Method Detail |
public void applyStyle(nextapp.echo.Style style)
nextapp.echo.Component
style names can be used as well.
applyStyle
in interface Scrollable
applyStyle
in class ScrollablePanel
public int getDelay()
public int getDirection()
public int getPixelsPerScroll()
public void setDelay(int delay)
delay
- The delay, in milliseconds, to setpublic void setDirection(int newDirection)
This can be one of the following values:
public void setPixelsPerScroll(int pixelsPerScroll)
pixelsPerScroll
- The pixelsPerScroll to setpublic 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
set
in class ScrollablePanel
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 |