|
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.JToggleButton
net.java.sip.communicator.util.swing.SIPCommToggleButton
net.java.sip.communicator.impl.gui.main.call.AbstractCallToggleButton
public abstract class AbstractCallToggleButton
The base class for all toggle buttons which control the call from the UI. Allows extending buttons to focus on performing their toggle actions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JToggleButton |
|---|
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel |
| 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 | |
|---|---|
protected ImageID |
bgImage
The background image. |
protected ImageID |
bgRolloverImage
The rollover image |
protected Call |
call
The Call that this button controls. |
protected ImageID |
iconImageID
The icon image. |
protected ImageID |
pressedIconImageID
The pressed icon image. |
protected ImageID |
pressedImage
The pressed image. |
| 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 | |
|---|---|
AbstractCallToggleButton(Call call,
boolean fullScreen,
boolean settingsPanel,
boolean selected,
ImageID iconImageID,
ImageID pressedIconImageID,
String toolTipTextKey)
Initializes a new AbstractCallToggleButton instance which is to control a toggle action for a specific Call. |
|
AbstractCallToggleButton(Call call,
boolean fullScreen,
boolean selected,
ImageID iconImageID,
String toolTipTextKey)
Initializes a new AbstractCallToggleButton instance which is to control a toggle action for a specific Call. |
|
| Method Summary | |
|---|---|
abstract void |
buttonPressed()
Notifies this AbstractCallToggleButton that its associated action has been performed and that it should execute its very logic. |
void |
loadSkin()
Loads images. |
void |
setIconImageID(ImageID iconImageID)
Sets the icon image of this button. |
void |
setSpawnActionInNewThread(boolean spawnActionInNewThread)
Changes behaviour, whether we should start new thread for executing actions, buttonPressed(). |
| Methods inherited from class net.java.sip.communicator.util.swing.SIPCommToggleButton |
|---|
getBgImage, getBgRolloverImage, getIconImage, getIndex, paintComponent, setBgImage, setBgRolloverImage, setIconImage, setIndex, setPressedIconImage, setPressedImage |
| Methods inherited from class javax.swing.JToggleButton |
|---|
getAccessibleContext, getUIClassID, paramString, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Call call
protected ImageID bgImage
protected ImageID bgRolloverImage
protected ImageID pressedImage
protected ImageID iconImageID
protected ImageID pressedIconImageID
| Constructor Detail |
|---|
public AbstractCallToggleButton(Call call,
boolean fullScreen,
boolean selected,
ImageID iconImageID,
String toolTipTextKey)
call - the Call to be controlled by the instancefullScreen - true if the new instance is to be used in
full-screen UI; otherwise, falseselected - true if the new toggle button is to be initially
selected; otherwise, falseiconImageID - the ImageID of the image to be used as the
icon of the new instancetoolTipTextKey - the key in the ResourceManagementService
of the internationalized string which is to be used as the tool tip text
of the new instance
public AbstractCallToggleButton(Call call,
boolean fullScreen,
boolean settingsPanel,
boolean selected,
ImageID iconImageID,
ImageID pressedIconImageID,
String toolTipTextKey)
call - the Call to be controlled by the instancefullScreen - true if the new instance is to be used in
full-screen UI; otherwise, falsesettingsPanel - indicates if this button is added in the settings
panel on the bottom of the call windowselected - true if the new toggle button is to be initially
selected; otherwise, falseiconImageID - the ImageID of the image to be used as the
icon of the new instancepressedIconImageID - the ImageID of the image to be used
as the icon in the pressed button state of the new instancetoolTipTextKey - the key in the ResourceManagementService
of the internationalized string which is to be used as the tool tip text
of the new instance| Method Detail |
|---|
public void setSpawnActionInNewThread(boolean spawnActionInNewThread)
spawnActionInNewThread - public void loadSkin()
loadSkin in interface Skinnablepublic void setIconImageID(ImageID iconImageID)
iconImageID - the identifier of the icon imagepublic abstract void buttonPressed()
|
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 | |||||||||