|
|||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--TanButtonBar
Button bar. Similar to the flat cool buttons in Microsoft Office applications. Very light weight and easy to use. You are free to use this code and to make modifications provided this notice is retained.
If you found this useful, please add a note of acknowledgement to my guestbook. If you would like to report a bug or suggest some improvements, you are most welcome. I will be happy to help you use this piece of code.
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
TanButtonBar()
Constructor. |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener listener)
Adds the specified action listener to receive action events from this button. |
void |
componentHidden(java.awt.event.ComponentEvent ce)
|
void |
componentMoved(java.awt.event.ComponentEvent ce)
|
void |
componentResized(java.awt.event.ComponentEvent ce)
|
void |
componentShown(java.awt.event.ComponentEvent ce)
|
void |
focusGained(java.awt.event.FocusEvent fe)
|
void |
focusLost(java.awt.event.FocusEvent fe)
|
java.awt.Dimension |
getMinimumSize()
|
java.awt.Dimension |
getPreferredSize()
|
boolean |
isFocusTraversable()
|
void |
keyPressed(java.awt.event.KeyEvent ke)
|
void |
keyReleased(java.awt.event.KeyEvent ke)
|
void |
keyTyped(java.awt.event.KeyEvent ke)
|
void |
mouseClicked(java.awt.event.MouseEvent me)
|
void |
mouseDragged(java.awt.event.MouseEvent me)
|
void |
mouseEntered(java.awt.event.MouseEvent me)
|
void |
mouseExited(java.awt.event.MouseEvent me)
|
void |
mouseMoved(java.awt.event.MouseEvent me)
|
void |
mousePressed(java.awt.event.MouseEvent me)
|
void |
mouseReleased(java.awt.event.MouseEvent me)
|
void |
paint(java.awt.Graphics g)
|
java.awt.Dimension |
preferredSize()
|
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes the specified action listener so it no longer receives action events from this button. |
void |
setButtons(java.lang.String[] namesList)
Sets the button names. |
void |
update(java.awt.Graphics g)
|
void |
updateImage()
Update the offscreen image. |
Methods inherited from class java.awt.Canvas |
addNotify |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
disableEvents,
dispatchEvent,
doLayout,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
paramString,
postEvent,
prepareImage,
prepareImage,
print,
printAll,
processComponentEvent,
processEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setFont,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
validate |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public TanButtonBar()
Method Detail |
public void setButtons(java.lang.String[] namesList)
public boolean isFocusTraversable()
public void paint(java.awt.Graphics g)
public void update(java.awt.Graphics g)
public void updateImage()
public java.awt.Dimension preferredSize()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public void focusGained(java.awt.event.FocusEvent fe)
public void focusLost(java.awt.event.FocusEvent fe)
public void keyPressed(java.awt.event.KeyEvent ke)
public void keyReleased(java.awt.event.KeyEvent ke)
public void keyTyped(java.awt.event.KeyEvent ke)
public void mouseClicked(java.awt.event.MouseEvent me)
public void mousePressed(java.awt.event.MouseEvent me)
public void mouseReleased(java.awt.event.MouseEvent me)
public void mouseEntered(java.awt.event.MouseEvent me)
public void mouseExited(java.awt.event.MouseEvent me)
public void mouseDragged(java.awt.event.MouseEvent me)
public void mouseMoved(java.awt.event.MouseEvent me)
public void componentResized(java.awt.event.ComponentEvent ce)
public void componentMoved(java.awt.event.ComponentEvent ce)
public void componentShown(java.awt.event.ComponentEvent ce)
public void componentHidden(java.awt.event.ComponentEvent ce)
public void addActionListener(java.awt.event.ActionListener listener)
listener
- the action listenerpublic void removeActionListener(java.awt.event.ActionListener listener)
listener
- the action listener
|
|||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |