|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JButton
net.java.sip.communicator.util.swing.SIPCommButton
public class SIPCommButton
The SIPCommButton is a very flexible JButton that allows to configure its background, its icon, the look when a mouse is over it, etc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JButton |
|---|
JButton.AccessibleJButton |
| Nested classes/interfaces inherited from class javax.swing.AbstractButton |
|---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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.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 | |
|---|---|
SIPCommButton()
Creates a button. |
|
SIPCommButton(Image bgImage)
Creates a button with custom background image. |
|
SIPCommButton(Image bgImage,
Image iconImage)
Creates a button with custom background image. |
|
SIPCommButton(Image bgImage,
Image pressedImage,
Image iconImage)
Creates a button with custom background image and icon image. |
|
SIPCommButton(Image bgImage,
Image rolloverImage,
Image pressedImage,
Image iconImage,
Image rolloverIconImage,
Image pressedIconImage)
Creates a button with custom background image and icon image. |
|
| Method Summary | |
|---|---|
Image |
getBackgroundImage()
Returns the background image of this button. |
protected void |
paintComponent(Graphics g)
Overrides the paintComponent method of JButton to
paint the button background and icon, and all additional effects of this
configurable button. |
void |
setBackgroundImage(Image bgImage)
Sets the background image of this button. |
void |
setIconImage(Image iconImage)
Sets the icon image of this button. |
void |
setImage(Image bgImage)
Resets the background image for this button. |
void |
setPressedIcon(Image pressedIconImage)
Sets the pressed icon image of this button. |
void |
setPressedImage(Image pressedImage)
Sets the pressed image of this button. |
void |
setRolloverIcon(Image rolloverIconImage)
Sets the rollover icon image of this button. |
void |
setRolloverImage(Image rolloverImage)
Sets the rollover background image of this button. |
| Methods inherited from class javax.swing.JButton |
|---|
getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SIPCommButton()
public SIPCommButton(Image bgImage,
Image rolloverImage,
Image pressedImage,
Image iconImage,
Image rolloverIconImage,
Image pressedIconImage)
bgImage - The background image.rolloverImage - The rollover background image.pressedImage - The pressed image.iconImage - The icon.rolloverIconImage - The rollover icon image.pressedIconImage - The pressed icon image.
public SIPCommButton(Image bgImage,
Image pressedImage,
Image iconImage)
bgImage - The background image.pressedImage - The pressed image.iconImage - The icon.
public SIPCommButton(Image bgImage,
Image iconImage)
bgImage - the background button imageiconImage - the icon of this buttonpublic SIPCommButton(Image bgImage)
bgImage - The background button image.| Method Detail |
|---|
public void setImage(Image bgImage)
bgImage - the new image to set.protected void paintComponent(Graphics g)
paintComponent method of JButton to
paint the button background and icon, and all additional effects of this
configurable button.
paintComponent in class JComponentg - The Graphics object.public Image getBackgroundImage()
public void setBackgroundImage(Image bgImage)
bgImage - the background image of this button.public void setRolloverImage(Image rolloverImage)
rolloverIconImage - the rollover background image of this button.public void setPressedImage(Image pressedImage)
pressedImage - the pressed image of this button.public void setRolloverIcon(Image rolloverIconImage)
rolloverIconImage - the rollover icon image of this button.public void setPressedIcon(Image pressedIconImage)
pressedIconImage - the pressed icon image of this button.public void setIconImage(Image iconImage)
iconImage - the icon image of this button.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||