|
|||||||||
| Home >> All >> com >> memoire >> [ bu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.memoire.bu
Class BuButton

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JButton
com.memoire.bu.BuButton
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants
- public class BuButton
- extends javax.swing.JButton
Like JButton but with better management of icons.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JButton |
javax.swing.JButton.AccessibleJButton |
| Nested classes inherited from class javax.swing.AbstractButton |
javax.swing.AbstractButton.AccessibleAbstractButton, javax.swing.AbstractButton.ButtonChangeListener |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JButton |
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
BuButton()
|
|
BuButton(BuIcon _icon)
|
|
BuButton(BuIcon _icon,
java.lang.String _label)
|
|
BuButton(javax.swing.Icon _icon)
Deprecated. |
|
BuButton(java.lang.String _label)
|
|
BuButton(java.lang.String _text,
javax.swing.Icon _icon)
Deprecated. |
|
| Method Summary | |
java.awt.Color |
getBackground()
Returns this component's background color. |
javax.swing.Icon |
getIcon()
Return the button's default "icon" property. |
java.lang.String |
getText()
Return the button's "text" property. |
java.awt.Point |
getToolTipLocation(java.awt.event.MouseEvent _evt)
Return the location at which the JComponent.toolTipText> JComponent.toolTipText 55 property should be
displayed, when triggered by a particular mouse event. |
boolean |
isOpaque()
Return the current value of the JComponent.opaque> JComponent.opaque 55 property. |
void |
paint(java.awt.Graphics _g)
Paint the component. |
void |
setIcon(BuIcon _icon)
|
void |
setText(java.lang.String _text)
Set the button's "text" property. |
void |
updateUI()
Sets this button's UI delegate to the default (obtained from the javax.swing.UIManager) for the current look and feel. |
| Methods inherited from class javax.swing.JButton |
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
BuButton
public BuButton()
BuButton
public BuButton(BuIcon _icon)
BuButton
public BuButton(java.lang.String _label)
BuButton
public BuButton(BuIcon _icon, java.lang.String _label)
BuButton
public BuButton(javax.swing.Icon _icon)
- Deprecated.
BuButton
public BuButton(java.lang.String _text, javax.swing.Icon _icon)
- Deprecated.
| Method Detail |
paint
public void paint(java.awt.Graphics _g)
- Description copied from class:
javax.swing.JComponent Paint the component. This is a delicate process, and should only be called from the repaint thread, under control of the javax.swing.RepaintManager. Client code should usually call Component.repaint()>
Component.repaint()55 to trigger painting.The body of the
paintcall involves calling JComponent.paintComponent(java.awt.Graphics)>JComponent.paintComponent(java.awt.Graphics)55 , JComponent.paintBorder(java.awt.Graphics)>JComponent.paintBorder(java.awt.Graphics)55 , and JComponent.paintChildren(java.awt.Graphics)>JComponent.paintChildren(java.awt.Graphics)55 in order. If you want to customize painting behavior, you should override one of these methods rather thanpaint.For more details on the painting sequence, see this article.
isOpaque
public boolean isOpaque()
- Description copied from class:
javax.swing.JComponent - Return the current value of the JComponent.opaque>
JComponent.opaque55 property.
setText
public void setText(java.lang.String _text)
- Description copied from class:
javax.swing.AbstractButton - Set the button's "text" property. This property is synonymous with the
"label" property.
getText
public java.lang.String getText()
- Description copied from class:
javax.swing.AbstractButton - Return the button's "text" property. This property is synonymous with
the "label" property.
setIcon
public void setIcon(BuIcon _icon)
getIcon
public javax.swing.Icon getIcon()
- Description copied from class:
javax.swing.AbstractButton - Return the button's default "icon" property.
getToolTipLocation
public java.awt.Point getToolTipLocation(java.awt.event.MouseEvent _evt)
- Description copied from class:
javax.swing.JComponent - Return the location at which the JComponent.toolTipText>
JComponent.toolTipText55 property should be displayed, when triggered by a particular mouse event.
updateUI
public void updateUI()
- Description copied from class:
javax.swing.JButton - Sets this button's UI delegate to the default (obtained from the
javax.swing.UIManager) for the current look and feel.
getBackground
public java.awt.Color getBackground()
- Description copied from class:
java.awt.Component - Returns this component's background color. If not set, this is inherited
from the parent.
|
|||||||||
| Home >> All >> com >> memoire >> [ bu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC