public class ChooseCallAccountPopupMenu extends SIPCommPopupMenu implements Skinnable
javax.swing.JPopupMenu.AccessibleJPopupMenu, javax.swing.JPopupMenu.Separator
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComponent |
invoker
The invoker component.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ChooseCallAccountPopupMenu(javax.swing.JComponent invoker,
java.util.List<?> telephonyObjects)
Creates this dialog by specifying a list of telephony contacts to choose
from.
|
ChooseCallAccountPopupMenu(javax.swing.JComponent invoker,
java.util.List<?> telephonyObjects,
java.lang.Class<? extends OperationSet> opSetClass)
Creates this dialog by specifying a list of telephony contacts to choose
from.
|
ChooseCallAccountPopupMenu(javax.swing.JComponent invoker,
java.lang.String contactToCall,
java.util.List<ProtocolProviderService> telephonyProviders)
Creates this dialog.
|
ChooseCallAccountPopupMenu(javax.swing.JComponent invoker,
java.lang.String contactToCall,
java.util.List<ProtocolProviderService> telephonyProviders,
CallInterfaceListener l)
Creates this dialog.
|
ChooseCallAccountPopupMenu(javax.swing.JComponent invoker,
java.lang.String contactToCall,
java.util.List<ProtocolProviderService> telephonyProviders,
java.lang.Class<? extends OperationSet> opSetClass)
Creates this dialog.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getI18NKeyCallVia()
Returns the key to use for choose contact string.
|
protected java.lang.String |
getI18NKeyChooseContact()
Returns the key to use for choose contact string.
|
protected void |
itemSelected(java.lang.Class<? extends OperationSet> opSetClass,
java.util.List<ProtocolProviderService> providers,
java.lang.String contact)
Item was selected, give a chance for extenders to override.
|
protected void |
itemSelected(java.lang.Class<? extends OperationSet> opSetClass,
ProtocolProviderService protocolProviderService,
java.lang.String contact)
Item was selected, give a chance for extenders to override.
|
protected void |
itemSelected(java.lang.Class<? extends OperationSet> opSetClass,
ProtocolProviderService protocolProviderService,
java.lang.String contact,
UIContactImpl uiContact)
Item was selected, give a chance for extenders to override.
|
void |
loadSkin()
Reloads all menu items.
|
void |
setUIContact(UIContactImpl uiContact)
Sets the UIContactImpl we're currently calling.
|
void |
showPopupMenu()
Shows this popup menu regarding to its invoker location.
|
void |
showPopupMenu(int x,
int y)
Shows the dialog at the given location.
|
add, add, add, addMenuKeyListener, addPopupMenuListener, addSeparator, createActionChangeListener, createActionComponent, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getDefaultLightWeightPopupEnabled, getInvoker, getLabel, getMargin, getMenuKeyListeners, getPopupMenuListeners, getSelectionModel, getSubElements, getUI, getUIClassID, insert, insert, isBorderPainted, isLightWeightPopupEnabled, isPopupTrigger, isVisible, menuSelectionChanged, pack, paintBorder, paramString, processFocusEvent, processKeyEvent, processKeyEvent, processMouseEvent, remove, removeMenuKeyListener, removePopupMenuListener, setBorderPainted, setDefaultLightWeightPopupEnabled, setInvoker, setLabel, setLightWeightPopupEnabled, setLocation, setPopupSize, setPopupSize, setSelected, setSelectionModel, setUI, setVisible, show, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public ChooseCallAccountPopupMenu(javax.swing.JComponent invoker, java.lang.String contactToCall, java.util.List<ProtocolProviderService> telephonyProviders)
invoker
- the invoker of this pop up menucontactToCall
- the contact to calltelephonyProviders
- a list of all possible telephony providerspublic ChooseCallAccountPopupMenu(javax.swing.JComponent invoker, java.lang.String contactToCall, java.util.List<ProtocolProviderService> telephonyProviders, CallInterfaceListener l)
invoker
- the invoker of this pop up menucontactToCall
- the contact to calltelephonyProviders
- a list of all possible telephony providersl
- CallInterfaceListener instancepublic ChooseCallAccountPopupMenu(javax.swing.JComponent invoker, java.lang.String contactToCall, java.util.List<ProtocolProviderService> telephonyProviders, java.lang.Class<? extends OperationSet> opSetClass)
invoker
- the invoker of this pop up menucontactToCall
- the contact to calltelephonyProviders
- a list of all possible telephony providersopSetClass
- the operation set class indicating what operation
would be performed when a given item is selected from the menupublic ChooseCallAccountPopupMenu(javax.swing.JComponent invoker, java.util.List<?> telephonyObjects)
invoker
- the invoker of this pop uptelephonyObjects
- the list of telephony contacts to select throughpublic ChooseCallAccountPopupMenu(javax.swing.JComponent invoker, java.util.List<?> telephonyObjects, java.lang.Class<? extends OperationSet> opSetClass)
invoker
- the invoker of this pop uptelephonyObjects
- the list of telephony contacts to select throughopSetClass
- the operation class, which indicates what action would
be performed if an item is selected from the listprotected java.lang.String getI18NKeyChooseContact()
protected java.lang.String getI18NKeyCallVia()
public void showPopupMenu(int x, int y)
x
- the x coordinatey
- the y coordinatepublic void showPopupMenu()
public void setUIContact(UIContactImpl uiContact)
uiContact
- the UIContactImpl we're currently callingprotected void itemSelected(java.lang.Class<? extends OperationSet> opSetClass, ProtocolProviderService protocolProviderService, java.lang.String contact, UIContactImpl uiContact)
opSetClass
- the operation set to use.protocolProviderService
- the protocol providercontact
- the contact addressuiContact
- the MetaContact selectedprotected void itemSelected(java.lang.Class<? extends OperationSet> opSetClass, ProtocolProviderService protocolProviderService, java.lang.String contact)
opSetClass
- the operation set to use.protocolProviderService
- the protocol providercontact
- the contact address selectedprotected void itemSelected(java.lang.Class<? extends OperationSet> opSetClass, java.util.List<ProtocolProviderService> providers, java.lang.String contact)
opSetClass
- the operation set to use.providers
- list of available protocol providerscontact
- the contact address selected
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.