|
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
java.awt.Window
java.awt.Frame
javax.swing.JFrame
net.java.sip.communicator.util.swing.SIPCommFrame
public class SIPCommFrame
A custom frame that remembers its size and location and could have a semi-transparent background.
| Nested Class Summary | |
|---|---|
static class |
SIPCommFrame.MainContentPane
The main content pane. |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| 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 | |
|---|---|
(package private) static 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. |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
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 |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SIPCommFrame()
Creates a SIPCommFrame. |
|
SIPCommFrame(boolean isSaveSizeAndLocation)
Creates an instance of SIPCommFrame by specifying explicitly if the size and location properties are saved. |
|
| Method Summary | |
|---|---|
protected void |
addKeybindingAction(String binding,
Action action)
Bindings the string representation for a keybinding to the action that will be executed. |
protected void |
close(boolean isEscaped)
All functions implemented in this method will be invoked when user presses the Escape key. |
void |
dispose()
Overwrites the dispose method in order to save the size and the position of this window before closing it. |
(package private) static void |
saveSizeAndLocation(Component component)
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(Observable obs,
Object arg)
Listens for changes in binding sets so they can be reflected in the input map. |
void |
validate()
Validates this container and all of its subcomponents. |
protected void |
windowClosing(WindowEvent e)
Invoked when this window is in the process of being closed. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
static final String PNAME_CALCULATED_POSITIONING
true use automatic repositioning (default)
false rely on the window manager to place the window
| Constructor Detail |
|---|
public SIPCommFrame()
public SIPCommFrame(boolean isSaveSizeAndLocation)
isSaveSizeAndLocation - indicates whether to save the size and
location of this dialog| Method Detail |
|---|
public void validate()
The validate method is used to cause a container
to lay out its subcomponents again. It should be invoked when
this container's subcomponents are modified (added to or
removed from the container, or layout-related information
changed) after the container has been displayed.
If this Container is not valid, this method invokes
the validateTree method and marks this Container
as valid. Otherwise, no action is performed.
validate in class ContainerContainer.add(java.awt.Component),
Component.invalidate(),
JComponent.revalidate(),
Container.validateTree()protected void setKeybindingInput(KeybindingSet.Category category)
category - set of keybindings to be utilized
protected void addKeybindingAction(String binding,
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(WindowEvent e)
e - the WindowEvent that notified us
static void saveSizeAndLocation(Component component)
throws ConfigPropertyVetoException
component - the Component which is to have its size and
location saved through the ConfigurationService
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 WindowisVisible - indicates if this frame should be visible
public 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 Window
public void update(Observable obs,
Object arg)
update in interface Observerobs - the KeybindingSet from which to updateprotected void close(boolean isEscaped)
isEscaped - indicates if this frame has been closed by pressing the
Esc key
|
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 | |||||||||