
 |
|
 |
ltimate Button Bar
The Ultimate Button Bar package
consists of four components: an applet
ImageURLButtonBar, used for creating graphic image
based buttons; an applet TextURLButtonBar, used for
creating text based buttons; an applet LiteTextURLButtonBar,
a smaller version of TextURLButtonBar with a reduced feature set; and a class
ButtonBar, for use by Java programmers who wish to
include a button bar (or bars) in their applets or applications.
|
|
 |
mageURLButtonBar Features
The applet ImageURLButtonBar
is a Java program that can be embedded in a web page to create a navigational
button bar (or button). The buttons are created based on user specified graphic
images. The list below is a summary of the applet's features.
 |
Up to four different images for button states
are supported: a base image, a mouse over button image, a second
mouse over button image (for animation), and a mouse down image. |
 |
Animation is supported and the animation frame
rate can be specified when two mouse over button images are provided. |
 |
The button bar can have either a vertical or
horizontal orientation. |
 |
The button bar can use up to three audio clips
to play for button events: a mouse over sound, a mouse down
sound, and a mouse up sound. |
 |
A background image can be displayed. This can be
used, for example, to give the button bar a border frame. |
 |
The spacing of buttons on the button bar is user
definable. |
 |
Button borders can be automatically generated
using any border width. |
 |
Button borders (if used) are by default colored
by lightening or darkening the image in the border region. Alternately, a color
can be manually specified for both the top and bottom borders. |
 |
The button image can be automatically shifted
when the button is clicked to give the illusion that the button was pressed
down. Button shift can be specified both for buttons with and for buttons
without borders. |
 |
Images for button states that do not have a user
specified pre-defined image will automatically be generated by the applet. For
instance, if an image for the mouse over button state is not specified,
then the
base image will be used for the mouse over state, and a
grayscale version of the
base image will be used for the base state. |
 |
Automatically generated button state images can
be overridden if the automatically generated images are not desired. |
 |
A button description can be displayed in the
browser's status bar when the mouse is moved over the button. |
 |
An optional button disabled image can be
specified which is used if an error is detected in a button's URL parameter. |
 |
Target frames are
supported for each button URL. |
 |
Buttons can optionally
"stick" so that a user can see what button was last clicked. |
 |
The base button bar, mouseOver button bar, and mouseDown button bar can be "brightened" or
"dimmed", and optionally tinted, using user specified values.
|
 |
An applet background color can be specified to minimize potential visual distraction when the web page is
initialized, resized, or scrolled.
|
 |
Source code included for the applet. | |
|
 |
extURLButtonBar
Features
The applet TextURLButtonBar
is a Java program that can be embedded in a web page to create a navigational
button bar (or button). The buttons are created based on user specified text (no
image files are required). The list below is a summary of the applet's features.
 |
Button text can be assigned for up to three
states for each individual button: base text, mouse over text,
and mouse down text. |
 |
Text alignment (left, center, or right) can be
specified for each individual button. |
 |
For each individual button, the font, font size,
font style, font color, and button background color can be assigned. |
 |
An alternate font color can be assigned to each
individual button for both the mouse over button state, and the mouse
down state. |
 |
A texture image can be specified that will cause
a the texture to be applied to all of the button bar buttons (i.e., the texture
is not applied in the space between the buttons), or to the entire
button bar. |
 |
Simple embossing can be performed on the button
bar base image, and optionally, on the mouse over button bar
image and the mouse down button bar image. |
 |
The button bar can have either a vertical or
horizontal orientation. |
 |
The button bar can use up to three audio clips
to play for button events: mouse over sound, mouse down sound,
and mouse up sound. |
 |
A background image can be displayed. This can be
used, for example, to give the button bar a border frame. |
 |
The height of the button bar and the width of
each individual button is user definable. |
 |
The spacing of buttons on the button bar is user
definable. |
 |
Button borders can be automatically generated
using any border width. |
 |
Button borders (if used) are by default colored
by lightening or darkening the image in the border region. Alternately, a color
can be manually specified for both the top and bottom borders. |
 |
The button image can be automatically shifted
when the button is clicked to give the illusion that the button was pressed
down. Button shift can be specified both for buttons with and for buttons
without borders. |
 |
Images for all button states are automatically
generated by the applet. |
 |
A button description can be displayed in the
browser's status bar when the mouse is moved over the button. |
 |
Target frames are
supported for each button URL. |
 |
The base button bar, mouseOver button bar, and mouseDown button bar can be "brightened" or
"dimmed", and optionally tinted, using user specified values.
|
 |
An applet background color can be specified to minimize potential visual distraction when the web page is
initialized, resized, or scrolled.
|
 |
Buttons
can optionally "stick" so that a user can see what button was last
clicked. |
|
|
 |
iteTextURLButtonBar
Features
The applet LiteTextURLButtonBar
is a Java program which implements a subset of the features of the
TextURLButtonBar applet. The LiteTextURLButtonBar
applet can be embedded in a web page to create a navigational button bar (or
button). The buttons are created based on user specified text. The list below is
a summary of the applet's features.
 |
Button text can be assigned for up to three
states for each individual button: base text, mouse over text,
and mouse down text. |
 |
Button text can be either left justified, center
justified, or right justified. |
 |
The font, font size, font style, font color, and
button background color can be specified by the user. |
 |
An alternate font color can be assigned for both
the mouse over state, and the mouse down state. |
 |
The button bar can have either a vertical or
horizontal orientation. |
 |
The button bar can use up to three audio clips
to play for button events: mouse over sound, mouse down sound,
and mouse up sound. |
 |
The height of the button bar and the width of
each individual button is user definable. |
 |
The spacing of buttons on the button bar is user
definable. |
 |
Button borders are automatically generated using
any border width. |
 |
Button borders are by default colored by
lightening or darkening the image in the border region. Alternately, a color can
be manually specified for both the top and bottom borders. |
 |
The button image can be automatically shifted
when the button is clicked to give the illusion that the button was pressed
down. Button shift can be specified both for buttons with and for buttons
without borders. |
 |
Images for all button states are automatically
generated by the applet. |
 |
A button description can be displayed in the
browser's status bar when the mouse is moved over the button. |
 |
Target frames are
supported for each button URL. |
 |
Buttons
can optionally "stick" so that a user can see what button was last
clicked. |
 |
An applet background color can be specified to minimize potential visual distraction when the web page is
initialized, resized, or scrolled.
|
 |
Source code included
for the applet. |
|
|
 |
uttonBar
Features
ButtonBar is a
Java class that can used by a Java programmer to implement a button bar (or
button) in a Java application or applet. All of the applets included in the Ultimate
Button BarTM package use this
class to implement a button bar. The list below is a summary of the class
features.
 |
Up to six different images are supported: a base
image, a mouse over image, a second mouse over image (for
animation), a mouse down image, a mouse over down button image
(for use with "sticky" buttons), and a button disabled image. |
 |
Animation is supported and the animation frame
rate can be specified when two mouse over button images are provided. |
 |
The button bar can have either a vertical or
horizontal orientation. |
 |
A background image can be displayed. This can be
used, for example, to give the button bar a border frame. |
 |
The spacing of buttons on the button bar is user
definable. |
 |
Button borders can be automatically generated
using any border width. |
 |
Button borders (if used) are by default colored
by lightening or darkening the image in the border region. Alternately, a color
can be manually specified for both the top and bottom borders. |
 |
The button image can be automatically shifted
when the button is clicked to give the illusion that the button was pressed
down. Button shift can be specified both for buttons with and for buttons
without borders. |
 |
Images for button states that do not have a user
specified pre-defined image will automatically be generated by the class. For
instance, if an image for the mouse over button state is not specified,
then the
base image will be used for the mouse over state, and a
grayscale version of the
base image will be used for the base state. |
 |
Automatically generated button state images can
be overridden if the automatically generated images are not desired. |
 |
The functional
equivalent of checkboxes and radio buttons can be created using "sticky"
buttons. |
 |
Observer/Observable design means that multiple
objects in your program can receive button event notification. |
 |
Nine event types are supported: IMAGES_READY,
MOUSE_CLICK, MOUSE_CLICK_DISABLED, BUTTON_UP, BUTTON_DOWN, MOUSE_ENTER,
MOUSE_ENTER_DISABLED, MOUSE_EXIT, and MOUSE_EXIT_DISABLED. |
 |
Intelligent loading of image files: The button
bar becomes active after the base image (and the background
image, if specified) has been loaded. |
 |
Two constructors available: one constructor
allows file names to be specified for the images (class loads the images), and
the second constructor allows Java Images to be used (class does not load the
images). |
 |
The base button bar, mouseOver button bar, and mouseDown button bar can be "brightened" or
"dimmed", and optionally tinted, using values specified in a constructor.
|
 |
Thorough error handling. | |
|
| Copyright ©
1997 by Modern Minds, Inc. |