|
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
javax.swing.JComponent
javax.swing.JFileChooser
net.java.sip.communicator.util.swing.SipCommFileChooserImpl
public class SipCommFileChooserImpl
Implements SipCommFileChooser for Swing's JFileChooser.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFileChooser |
|---|
JFileChooser.AccessibleJFileChooser |
| 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 |
|---|
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 net.java.sip.communicator.util.swing.SipCommFileChooser |
|---|
DIRECTORIES_ONLY, FILES_ONLY, LOAD_FILE_OPERATION, SAVE_FILE_OPERATION |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SipCommFileChooserImpl(Component parent,
String path,
String title,
int operation)
Initializes a new SipCommFileChooserImpl instance. |
|
SipCommFileChooserImpl(String title,
int operation)
Constructor |
|
| Method Summary | |
|---|---|
void |
addFilter(SipCommFileFilter filter)
Adds a file filter to this dialog. |
File |
getApprovedFile()
Returns the selected file by the user from the dialog. |
File |
getFileFromDialog()
Shows the dialog and returns the selected file. |
Component |
getParentComponent()
Returns the parent component of this dialog |
SipCommFileFilter |
getUsedFilter()
Returns the filter the user has chosen for saving a file. |
void |
setSelectionMode(int mode)
Change the selection mode for the file choose. |
void |
setStartPath(String path)
Sets the default path to be considered for browsing among files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SipCommFileChooserImpl(String title,
int operation)
title - title for this dialogoperation - 'Save file' or 'Load file' operation
public SipCommFileChooserImpl(Component parent,
String path,
String title,
int operation)
parent - path - title - operation - | Method Detail |
|---|
public File getApprovedFile()
getApprovedFile in interface SipCommFileChooserpublic void setStartPath(String path)
setStartPath in interface SipCommFileChooserpath - the default start path for this dialogpublic File getFileFromDialog()
getFileFromDialog in interface SipCommFileChooserpublic Component getParentComponent()
public void addFilter(SipCommFileFilter filter)
addFilter in interface SipCommFileChooserfilter - the filter to addpublic SipCommFileFilter getUsedFilter()
getUsedFilter in interface SipCommFileChooserpublic void setSelectionMode(int mode)
setSelectionMode in interface SipCommFileChoosermode - the mode to use.
|
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 | |||||||||