|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
symantec.itools.awt.BorderPanel
symantec.itools.awt.util.ToolBarPanel
wt.clients.beans.explorer.WTToolBar
WTToolbar is a ToolBar class used by the WTExplorer.
It has methods to add toolbar buttons based on a short name of gif image to display on the toolbar. It will use the image found in the wt.clients.images package with the specified name.
It broadcasts action events when the toolbar buttons are pressed. The
broadcast event uses the short name of the toolbar gif to identify the
button pressed.
Supported API: true
Extendable: false
Nested Class Summary |
Nested classes inherited from class symantec.itools.awt.util.ToolBarPanel |
|
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
(package private) HelpContext |
helpContext
|
(package private) Label |
infoLabel
|
static String |
SPACER
Contant used to indicate a blank space in the toolbar |
Fields inherited from class symantec.itools.awt.util.ToolBarPanel |
errors, HORIZONTAL, orientation, VERTICAL |
Fields inherited from class symantec.itools.awt.BorderPanel |
bevelDarkerColor, bevelLighterColor, borderColor, cachedBackground, internalInsets, ixPad, iyPadBottom, iyPadTop, label, labelAlignment, labelColor, labelipadx, labelpadx, padbottom, padleft, padright, padtop, panel, style |
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface symantec.itools.awt.AlignStyle |
ALIGN_CENTERED, ALIGN_LEFT, ALIGN_RIGHT |
Fields inherited from interface symantec.itools.awt.BevelStyle |
BEVEL_LINE, BEVEL_LOWERED, BEVEL_NONE, BEVEL_RAISED |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
WTToolBar()
Constructs a default WTToolBar. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Handle action events |
void |
addButton(String aButton)
Adds a button to this toolbar. |
void |
addButton(String aButton,
ActionListener aListener)
Adds a button to this toolbar with the specified ActionListener |
void |
addButton(String name,
int image_style,
ActionListener action_listener)
Adds a button to this toolbar. |
(package private) HelpContext |
getHelpContext()
Get the help context for this component. |
private void |
initializeHelp()
Initialize the help system for this component. |
void |
setEnabled(String button,
boolean enable)
|
(package private) void |
setHelpContext(HelpContext aHelpContext)
Set the help context for this component. |
void |
setText(String aString)
Sets the text displayed at the end of this toolbar. |
Methods inherited from class symantec.itools.awt.util.ToolBarPanel |
addNotify, addOrientationListener, addOrientationListener, addPropertyChangeListener, addVetoableChangeListener, getOrientation, getPreferredSize, isValidOrientation, removeNotify, removeOrientationListener, removeOrientationListener, removePropertyChangeListener, removeVetoableChangeListener, setLayout, setOrientation |
Methods inherited from class symantec.itools.awt.BorderPanel |
addBevelStyleListener, addBevelStyleListener, addContainerListener, addImpl, calculateHilightColors, componentAdded, componentRemoved, countComponents, draw, drawBorder, drawLabel, getAlignStyle, getBevelStyle, getBorderColor, getComponent, getComponentCount, getComponents, getInternalInsets, getIPadBottom, getIPadSides, getIPadTop, getLabel, getLabelColor, getLabelTopMargin, getLabelWidthMargin, getLayout, getMinimumSize, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, insets, isValidBevelStyle, layout, minimumSize, paint, preferredSize, remove, remove, removeAll, removeBevelStyleListener, removeBevelStyleListener, removeContainerListener, reshape, setAlignStyle, setBackground, setBevelStyle, setBorderColor, setBorderColor, setBounds, setInternalInsets, setIPadBottom, setIPadSides, setIPadTop, setLabel, setLabelColor, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, sizepanel, update |
Methods inherited from class java.awt.Panel |
getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static String SPACER
HelpContext helpContext
Label infoLabel
Constructor Detail |
public WTToolBar()
Method Detail |
public void addButton(String aButton)
It will use the image found in the wt.clients.images package with the specified name. If no image is found, a button will be displayed with the request name as its label instead of displaying an image button.
aButton
- the name of the .gif file to use on the toolbar buttonpublic void setText(String aString)
aString
- the string to display on the toolbarpublic void addButton(String aButton, ActionListener aListener)
aButton
- the name of the .gif file to use on the toolbar buttonaListener
- the ActionListener for the buttonpublic void addButton(String name, int image_style, ActionListener action_listener)
name
- used as both the name of the button an an action
event and for determining the image to displayimage_style
- specifies how the image should be placed on
the buttonaction_listener
- registered as an ActionListener to events
fired by the buttonprivate void initializeHelp()
HelpContext getHelpContext()
void setHelpContext(HelpContext aHelpContext)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the ActionEvent to processpublic void setEnabled(String button, boolean enable)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |