Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.jabberaccregwizz
Class IceConfigPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by net.java.sip.communicator.util.swing.TransparentPanel
                      extended by net.java.sip.communicator.plugin.jabberaccregwizz.IceConfigPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class IceConfigPanel
extends TransparentPanel

ICE configuration panel.

Author:
Yana Stamcheva
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
IceConfigPanel()
          Creates an instance of IceConfigPanel.
 
Method Summary
protected  void addJingleNodes(JingleNodeDescriptor jingleNode)
          Adds the given jingleNode to the list of additional JingleNodes
protected  void addStunServer(StunServerDescriptor stunServer)
          Adds the given stunServer to the list of additional stun servers.
protected  List<JingleNodeDescriptor> getAdditionalJingleNodes()
          Returns the list of additional Jingle Nodes entered by the user.
protected  List<StunServerDescriptor> getAdditionalStunServers()
          Returns the list of additional stun servers entered by the user.
protected  JingleNodeDescriptor getJingleNodes(String address)
          Indicates if a JingleNodes with the given address already exists in the additional stun servers table.
protected  StunServerDescriptor getStunServer(String address, int port)
          Indicates if a stun server with the given address and port already exists in the additional stun servers table.
protected  boolean isAutoDiscoverJingleNodes()
          Indicates if the Jingle Nodes relays should be automatically discovered.
protected  boolean isAutoDiscoverStun()
          Indicates if the stun server should be automatically discovered.
protected  boolean isUseDefaultStunServer()
          Indicates if the default stun server should be used
protected  boolean isUseGoogleIce()
          Indicates if ice should be used for this account.
protected  boolean isUseIce()
          Indicates if ice should be used for this account.
protected  boolean isUseJingleNodes()
          Indicates if Jingle Nodes should be used for this account.
protected  boolean isUseUPNP()
          Indicates if UPnP should be used for this account.
protected  void modifyJingleNodes(JingleNodeDescriptor jingleNode)
          Modify the given jingleNode from the list of Jingle Nodes.
protected  void modifyStunServer(StunServerDescriptor stunServer)
          Modify the given stunServer from the list of stun servers.
protected  void removeAllJingleNodes()
          Remove all jingleNodes to the list of additional Jingle Nodes.
protected  void removeAllStunServer()
          Remove all stunServers to the list of additional stun servers.
protected  void setAutoDiscoverJingleNodes(boolean isAutoDiscover)
          Sets the autoDiscoverJingleNodes property.
protected  void setAutoDiscoverStun(boolean isAutoDiscover)
          Sets the autoDiscoverStun property.
protected  void setUseDefaultStunServer(boolean isDefaultStun)
          Sets the defaultStun property.
protected  void setUseGoogleIce(boolean isUseIce)
          Sets the useGoogleIce property.
protected  void setUseIce(boolean isUseIce)
          Sets the useIce property.
protected  void setUseJingleNodes(boolean isUseJN)
          Sets the useJingleNodes property.
protected  void setUseUPNP(boolean isUseUPNP)
          Sets the useUPNP property.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, 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, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, 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, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IceConfigPanel

public IceConfigPanel()
Creates an instance of IceConfigPanel.

Method Detail

isUseIce

protected boolean isUseIce()
Indicates if ice should be used for this account.

Returns:
true if ICE should be used for this account, otherwise returns false

setUseIce

protected void setUseIce(boolean isUseIce)
Sets the useIce property.

Parameters:
isUseIce - true to indicate that ICE should be used for this account, false - otherwise.

isUseGoogleIce

protected boolean isUseGoogleIce()
Indicates if ice should be used for this account.

Returns:
true if Google ICE should be used for this account, otherwise returns false

setUseGoogleIce

protected void setUseGoogleIce(boolean isUseIce)
Sets the useGoogleIce property.

Parameters:
isUseIce - true to indicate that Google ICE should be used for this account, false - otherwise.

isAutoDiscoverStun

protected boolean isAutoDiscoverStun()
Indicates if the stun server should be automatically discovered.

Returns:
true if the stun server should be automatically discovered, otherwise returns false.

setAutoDiscoverStun

protected void setAutoDiscoverStun(boolean isAutoDiscover)
Sets the autoDiscoverStun property.

Parameters:
isAutoDiscover - true to indicate that stun server should be auto-discovered, false - otherwise.

isUseDefaultStunServer

protected boolean isUseDefaultStunServer()
Indicates if the default stun server should be used

Returns:
true if the default stun server should be used, otherwise returns false.

setUseDefaultStunServer

protected void setUseDefaultStunServer(boolean isDefaultStun)
Sets the defaultStun property.

Parameters:
isDefaultStun - true to indicate that the default stun server should be used, false otherwise.

getAdditionalStunServers

protected List<StunServerDescriptor> getAdditionalStunServers()
Returns the list of additional stun servers entered by the user.

Returns:
the list of additional stun servers entered by the user

addStunServer

protected void addStunServer(StunServerDescriptor stunServer)
Adds the given stunServer to the list of additional stun servers.

Parameters:
stunServer - the stun server to add

removeAllStunServer

protected void removeAllStunServer()
Remove all stunServers to the list of additional stun servers.


modifyStunServer

protected void modifyStunServer(StunServerDescriptor stunServer)
Modify the given stunServer from the list of stun servers.

Parameters:
stunServer - the stun server to modify

getStunServer

protected StunServerDescriptor getStunServer(String address,
                                             int port)
Indicates if a stun server with the given address and port already exists in the additional stun servers table.

Parameters:
address - the STUN server address to check
port - the STUN server port to check
Returns:
StunServerDescriptor if a STUN server with the given address and port already exists in the table, otherwise returns null

isUseJingleNodes

protected boolean isUseJingleNodes()
Indicates if Jingle Nodes should be used for this account.

Returns:
true if Jingle Nodes should be used for this account, otherwise returns false

setUseJingleNodes

protected void setUseJingleNodes(boolean isUseJN)
Sets the useJingleNodes property.

Parameters:
isUseJN - true to indicate that Jingle Nodes should be used for this account, false - otherwise.

isAutoDiscoverJingleNodes

protected boolean isAutoDiscoverJingleNodes()
Indicates if the Jingle Nodes relays should be automatically discovered.

Returns:
true if the Jingle Nodes relays should be automatically discovered, otherwise returns false.

setAutoDiscoverJingleNodes

protected void setAutoDiscoverJingleNodes(boolean isAutoDiscover)
Sets the autoDiscoverJingleNodes property.

Parameters:
isAutoDiscover - true to indicate that Jingle Nodes relays should be auto-discovered, false - otherwise.

getAdditionalJingleNodes

protected List<JingleNodeDescriptor> getAdditionalJingleNodes()
Returns the list of additional Jingle Nodes entered by the user.

Returns:
the list of additional Jingle Nodes entered by the user

getJingleNodes

protected JingleNodeDescriptor getJingleNodes(String address)
Indicates if a JingleNodes with the given address already exists in the additional stun servers table.

Parameters:
address - the JingleNodes address to check
Returns:
JingleNodesDescriptor if a Jingle Node with the given address already exists in the table, otherwise returns null

addJingleNodes

protected void addJingleNodes(JingleNodeDescriptor jingleNode)
Adds the given jingleNode to the list of additional JingleNodes

Parameters:
jingleNode - the Jingle Node server to add

removeAllJingleNodes

protected void removeAllJingleNodes()
Remove all jingleNodes to the list of additional Jingle Nodes.


modifyJingleNodes

protected void modifyJingleNodes(JingleNodeDescriptor jingleNode)
Modify the given jingleNode from the list of Jingle Nodes.

Parameters:
jingleNode - the Jingle Node to modify

isUseUPNP

protected boolean isUseUPNP()
Indicates if UPnP should be used for this account.

Returns:
true if UPnP should be used for this account, otherwise returns false

setUseUPNP

protected void setUseUPNP(boolean isUseUPNP)
Sets the useUPNP property.

Parameters:
isUseUPNP - true to indicate that UPNP should be used for this account, false - otherwise.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.