public class CallDialog extends SIPCommFrame implements CallContainer, CallTitleListener
SIPCommFrame.MainContentPane
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
PROP_FULL_SCREEN
Constructor and Description |
---|
CallDialog()
Creates a CallDialog by specifying the underlying call panel.
|
Modifier and Type | Method and Description |
---|---|
void |
addCallPanel(CallPanel callPanel)
Adds a call panel.
|
void |
callTitleChanged(CallPanel callPanel)
Called when the title of the given CallPanel changes.
|
protected void |
close(boolean escape)
Notifies this instance that it has been requested to close.
|
void |
close(CallPanel callPanel,
boolean delay)
Closes a specific CallPanel.
|
void |
dispose()
Overwrites the super's dispose method in order to save the size
and the position of this Window before closing it.
|
void |
ensureSize(java.awt.Component component,
int width,
int height)
Attempts to give a specific Component a visible rectangle with a
specific width and a specific height if possible and sane by resizing
the Window of this CallContainer.
|
javax.swing.JFrame |
getFrame()
Returns the frame of the call window.
|
java.awt.Dimension |
getMinimumSize()
Overrides getMinimumSize and checks the minimum size that
is needed to display buttons and use it for minimum size if
needed.
|
boolean |
isCallVisible(CallPanel callPanel)
Indicates if the given callPanel is currently visible.
|
boolean |
isFullScreen()
Determines whether the Window representation of this
CallContainer is displayed in full-screen mode.
|
static boolean |
isFullScreen(java.awt.Window window)
Determines whether a specific Window is displayed in full-screen
mode.
|
void |
setFullScreen(boolean fullScreen)
Sets the display of the Window representation of this
CallContainer to full-screen or windowed mode.
|
addKeybindingAction, setKeybindingInput, setSizeAndLocation, setVisible, setVisible, update, updateIconImages, windowClosing, windowDispose
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
pack
public CallDialog()
public void addCallPanel(CallPanel callPanel)
addCallPanel
in interface CallContainer
callPanel
- the call panel to add to this dialogpublic void callTitleChanged(CallPanel callPanel)
callTitleChanged
in interface CallTitleListener
callPanel
- the CallPanel, which title has changedprotected void close(boolean escape)
close
in class SIPCommFrame
escape
- true if the request to close this instance is in
response of a press on the Escape key; otherwise, falsepublic void close(CallPanel callPanel, boolean delay)
close
in interface CallContainer
callPanel
- the CallPanel to be closeddelay
- true to close the specified callPanel with
an implementation-specific delay or false to close it as soon as
possiblepublic void dispose()
dispose
in class SIPCommFrame
public void ensureSize(java.awt.Component component, int width, int height)
The method may be executed on the AWT event dispatching thread only because whoever is making the decision to request an adjustment of the Frame size in relation to a AWT Component should be analyzing that same Component in the AWT event dispatching thread only.
ensureSize
in interface CallContainer
component
- the Component which requests a visible
rectangle with the specified width and heightwidth
- the width of the visible rectangle requested by the
specified componentheight
- the height of the visible rectangle requested by the
specified componentjava.lang.RuntimeException
- if the method is not called on the AWT event
dispatching threadpublic javax.swing.JFrame getFrame()
getFrame
in interface CallContainer
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class java.awt.Container
public boolean isCallVisible(CallPanel callPanel)
callPanel
- the CallPanel, for which we verifypublic boolean isFullScreen()
isFullScreen
in interface CallContainer
public static boolean isFullScreen(java.awt.Window window)
window
- the Window to be checked whether it is displayed
in full-screen modepublic void setFullScreen(boolean fullScreen)
setFullScreen
in interface CallContainer
fullScreen
- true if the Window representation of
this CallContainer is to be displayed in full-screen mode or
false for windowed mode
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.