|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.MouseAdapter com.metamatrix.toolbox.ui.widget.button.ButtonBorderPainter
public class ButtonBorderPainter
A utility class for painting and hiding toolbar button borders based on mouse-over and current toggle state.
Method Summary | |
---|---|
void |
mouseEntered(java.awt.event.MouseEvent e)
Paint the border on mouse entered as long as the button is enabled or selected. |
void |
mouseExited(java.awt.event.MouseEvent e)
Do not paint the border after mouse entered unless the button is selected. |
static void |
registerButton(javax.swing.AbstractButton b)
Register the specified button with the ButtonBorderPainter so that it's border is shown only on mouse-over and if isSelected returns true, for JToggleButtons. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void registerButton(javax.swing.AbstractButton b)
b
- the button which should be controlled by the ButtonBorderPainter.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in class java.awt.event.MouseAdapter
MouseListener.mouseEntered(java.awt.event.MouseEvent)
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class java.awt.event.MouseAdapter
MouseListener.mouseExited(java.awt.event.MouseEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |