public class SIPCommFrame
extends javax.swing.JFrame
implements java.util.Observer
Modifier and Type | Class and Description |
---|---|
static class |
SIPCommFrame.MainContentPane
The main content pane.
|
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
PNAME_CALCULATED_POSITIONING
Property that disables the automatic resizing and positioning when a
window's top edge is outside the visible area of the screen.
|
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
Constructor and Description |
---|
SIPCommFrame()
Creates a SIPCommFrame.
|
SIPCommFrame(boolean saveSizeAndLocation)
Creates an instance of SIPCommFrame by specifying explicitly
if the size and location properties are saved.
|
SIPCommFrame(boolean saveLocation,
boolean saveSize)
Creates an instance of SIPCommFrame by specifying explicitly
if the size and location properties are saved.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addKeybindingAction(java.lang.String binding,
javax.swing.Action action)
Bindings the string representation for a keybinding to the action that
will be executed.
|
protected void |
close(boolean escape)
Notifies this instance that it has been requested to close.
|
void |
dispose()
Overwrites the super's dispose method in order to save the size
and the position of this Window before closing it.
|
(package private) static void |
saveSizeAndLocation(java.awt.Component component,
boolean saveSize,
boolean saveLocation)
Saves the size and the location of a specific Component through
the ConfigurationService.
|
protected void |
setKeybindingInput(KeybindingSet.Category category)
Sets the input map to utilize a given category of keybindings.
|
void |
setSizeAndLocation()
Sets window size and position.
|
void |
setVisible(boolean isVisible)
Overwrites the setVisible method in order to set the size and the
position of this window before showing it.
|
void |
setVisible(boolean isVisible,
boolean isPackEnabled)
Overwrites the setVisible method in order to set the size and the
position of this window before showing it.
|
void |
update(java.util.Observable obs,
java.lang.Object arg)
Listens for changes in binding sets so they can be reflected in the input
map.
|
static void |
updateIconImages(java.awt.Window window)
Sets the list of icons to the window.
|
protected void |
windowClosing(java.awt.event.WindowEvent e)
Invoked when this window is in the process of being closed.
|
protected void |
windowDispose()
Invokes the
Window.dispose() implementation of this instance
thus skipping any overriding that may be in effect for the method in
question by extenders. |
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, getMinimumSize, 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
static final java.lang.String PNAME_CALCULATED_POSITIONING
true use automatic repositioning (default)
false rely on the window manager to place the window
public SIPCommFrame()
public SIPCommFrame(boolean saveSizeAndLocation)
saveSizeAndLocation
- indicates whether to save the size and
location of this dialogpublic SIPCommFrame(boolean saveLocation, boolean saveSize)
saveLocation
- indicates whether to save the
location of this dialogsaveSize
- indicates whether to save the size of this dialogpublic static void updateIconImages(java.awt.Window window)
window
- the window, which icons will be updated.protected void setKeybindingInput(KeybindingSet.Category category)
category
- set of keybindings to be utilizedprotected void addKeybindingAction(java.lang.String binding, javax.swing.Action action)
binding
- string representation of action used by input mapaction
- the action which will be executed when user presses the
given key combinationprotected void windowClosing(java.awt.event.WindowEvent e)
e
- the WindowEvent that notified usprotected void windowDispose()
Window.dispose()
implementation of this instance
thus skipping any overriding that may be in effect for the method in
question by extenders.static void saveSizeAndLocation(java.awt.Component component, boolean saveSize, boolean saveLocation) throws org.jitsi.service.configuration.ConfigPropertyVetoException
component
- the Component which is to have its size and
location saved through the ConfigurationServiceorg.jitsi.service.configuration.ConfigPropertyVetoException
- if the ConfigurationService
does not accept the saving because of objections from its
PropertyVetoListeners.public void setSizeAndLocation()
public void setVisible(boolean isVisible)
setVisible
in class java.awt.Window
isVisible
- indicates if this frame should be visiblepublic void setVisible(boolean isVisible, boolean isPackEnabled)
isVisible
- indicates if this window will be made visible or will
be hiddenisPackEnabled
- indicates if the pack() method should be invoked
before showing this windowpublic void dispose()
dispose
in class java.awt.Window
public void update(java.util.Observable obs, java.lang.Object arg)
update
in interface java.util.Observer
obs
- the KeybindingSet from which to updateprotected void close(boolean escape)
escape
- true if the request to close this instance is in
response of a press on the Escape key; otherwise, false
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.