![]() |
Bean at a Glance |
The TickTape bean allows a web site to display images (JPEG/GIF) for presenting information or using as an advertising banner. This bean has two view modes: slideshow and scrollshow. In the slideshow mode, images are shown in turn, and only one image can be seen at each time. Users can select the image that they want to show with the control bar. In the scrollshow mode, images scroll across the display area with four directions. It is very easy for a user to switch the two views and the property values are kept when the view mode changes. In both modes, when a user click on any visible image, a TickTape event is fired.
Note:Because TickTape is inherit from java.awt.Panel. The property constraints is kept so that user is able to set the position and size of TickTape through property sheet in IDEs.
![]() |
Bean Description |
The TickTape Bean allows
borderVisible - indicates
whether or not the border is visible.
controlPanelVisible
- indicates whether or not the control panel is visible.
direction - indicates the
scrolling direction.
imageURLList - indicates
the URL list of the images.
imageViewerBackground
- indicates the background color of the image viewer.
scrollDelayTime - indicates
the scrolling delay time.
showingStyle - indicates
the showing style.
switchDelayTime - indicates
the switching delay time.
![]() |
Summaries |
<Name> | <Datatype> | [Constrained| Bound|Indexed ] | <Description> | <default value> | <access type> |
borderVisible | boolean | Bound | Indicates whether or not the border of this component is visible. | true | Read / Write |
controlPanelVisible | boolean | Bound | Indicates whether or not the control panel of this component is visible. | true | Read / Write |
direction | String | Bound | Indicates the image scrolling direction ( in scrollshow). | FROM_RIGHT | Read / Write |
imageViewerBackground | Color | Bound | Indicates the background color of the image viewer. | Color(0,178,0) | Read/Write |
scrollDelayTime | int | Bound | Indicates the delay time that images scroll on the screen. | 1 | Read / Write |
showingStyle | String | Bound | Indicates the showing style of this bean (slideshow or scrollshow). | SCROLL_SHOW | Read / Write |
switchDelayTime | int | Bound | Indicates the delay time between image switching, in milliseconds. | 100 | Read / Write |
imageURLListStr | String | Bound | Images' URL list. | null | Read / Write |
None.
![]() |
Alphabetic Reference to Properties |
![]() |
Alphabetic Reference to Methods |
Adds a listener for all PropertyChange events.
Parameters:
listener- the listener to be added.
public void addTickTapeListener(TickTapeListener listener)
Adds a listener for all TickTape events.
Parameters:
listener - the listener to be added.
Displays the first image in the list.
Gets the scrolling direction.
Returns:
the image scrolling direction.
public Vector getImageURLList()
Gets the images' URLs.
Returns:
a vector contains all images' URL.
public String getImageURLListStr()
Gets the string that presents the images' URLs.
Returns:
a string presents the vector contains all images' URL.
public Color getImageViewerBackground()
Gets the background color of the image
viewer.
Returns:
the background color of the image viewer.
public int
getScrollDelayTime()
Gets the scrolling delay time.
Returns:
the image scrolling delay time, in milliseconds.
public
String getShowingStyle()
Gets the showing style of the TickTape.
Returns:
the showing style
of this bean.
public int getSwitchDelayTime()
Gets the switching delay time.
Returns:
the image switching delay time.
public boolean
isBorderVisible()
Gets the indication whether or not the border is
visible.
Returns:
true if border is visible; otherwise false.
public boolean isControlPanelVisible()
Gets the indication whether or not the control panel
is visible.
Returns:
true if the control panel is visible; otherwise false.
Displays the last image.
Displays the next image.
public void pause(boolean pausestate)
Pauses the media viewer.
Parameters:
pausestate - if true, suspends the viewer; if false, resumes the
viewer.
Starts the media viewer.
Displays the previous image.
public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener for all PropertyChange events.
Parameters:
listener- the listener to be removed.
public void removeTickTapeListener(TickTapeListener listener)
Removes a listener for all TickTape events.
Parameters:
listener- the listener to be removed.
public void setBorderVisible(boolean v)
Shows or hides the border of this
component depending on the boolean flag v.
Parameters:
v- if true, shows the borer; otherwise, hides the border.
public void setControlPanelVisible(boolean v)
Shows or hides the control panel of this component
depending on the boolean flag v.
Parameters:
v- if true, shows the control panel; otherwise, hides the control panel.
public void setDirection(String direction)
Sets the image scrolling direction in scrollshow.
Parameters:
direction - image scrolling direction.
public void
setImageURLList(Vector urllist)
Sets the image URL list.
Parameters:
urllist - a Vector contains all the images' URLs.
public void setImageURLListStr(String urlstr)
Sets the string that presents the image URL list.
Parameters:
urlstr - a string presents the Vector which contains all the images'
URLs.
public void setImageViewerBackground(Color color)
Sets the background color of the image
viewer.
Parameters:
color - the background color of the image viewer.
public void setScrollDelayTime(int ss)
Sets the scrolling delay time in scrollshow.
Parameters:
ss - the scrolling delay time preset by this component. The bigger,
the slower.
public void setShowingStyle(String style)
Sets the showing style of this component.
Parameters:
style - the showing style of TickTape.
public void setSwitchDelayTime(int ss)
Sets the image switching delay time of TickTape.
Parameters:
ss - the image switching delay time, in milliseconds.
Stops the image viewer.
Creates the viewer with default settings.
Its showing style is slideshow, and control panel and border is visible.
Creates a viewer. Its showing style
is slideshow with/without a control panel.
Parameters:
v - if true, shows the control panel; otherwise, hides the control panel.
Creates a viewer with the specified
showing style.
Parameters:
type - the showing style.
![]() |
Alphabetic Reference to Events |
Event listener interface for TickTapeEvent. The method contained in this interface is:
![]() |
Support Classes |
![]() |
See Also |
This document is last updated in V1.0 on 04/30/1998.