net.simplace.ui.toolbar.FWToolbarButton
Modified JButton supporting rollover feedback.
public class FWToolbarButton extends javax.swing.JButton implements
java.awt.event.MouseListener {
// Public Constructors
public FWToolbarButton(String aID, Icon aIcon, String aLocalePrefix);
// Constants
protected final FWPrecisionBevelBorder LUCENT_BORDER;
protected final FWPrecisionBevelBorder RAISED_BORDER;
protected final FWPrecisionBevelBorder LOWERED_BORDER;
// Protected Instance Variables
protected Icon iEnabledIcon;
protected Icon iDisabledIcon;
// Public Instance Methods public void setIcon(Icon aIcon); // Defines javax.swing.AbstractButton
public void setBorder(Border aBorder); // Defines javax.swing.JComponent
Sets only PrecisionBevelBorder as border of this button. Solves a problem in jdk1.4
public void setUI(ButtonUI aButtonUI); // Defines javax.swing.AbstractButton
public void
setInsets(int aTop, int aLeft, int aBottom, int aRight);
with this changes button seems to be 3D...
- aTop
- aLeft
- aBottom
- aRight
public void mouseClicked(MouseEvent e); // From java.awt.event.MouseListener
public void mouseEntered(MouseEvent e); // From java.awt.event.MouseListener
public void mouseExited(MouseEvent e); // From java.awt.event.MouseListener
public void mousePressed(MouseEvent e); // From java.awt.event.MouseListener
public void mouseReleased(MouseEvent e); // From
java.awt.event.MouseListener
}
Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.AbstractButton (java.awt.ItemSelectable, javax.swing.SwingConstants) - javax.swing.JButton (javax.accessibility.Accessible) - FWToolbarButton (java.awt.event.MouseListener)
Passed to: FWToolBar.addButton()
Returned by: FWToolBar.getToolbarButton()