|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Box
org.gnu.gtk.HBox
org.gnu.gtk.FileChooserButton
public class FileChooserButton
| Constructor Summary | |
|---|---|
FileChooserButton(FileChooserDialog dialog)
Create a new FileChooserButton which uses the specified dialog as its' file picking window. |
|
FileChooserButton(org.gnu.glib.Handle handle)
Construct a button using a handle to a native resource. |
|
FileChooserButton(java.lang.String title,
FileChooserAction action)
Create a new FileChooserButton |
|
FileChooserButton(java.lang.String title,
FileChooserAction action,
java.lang.String backend)
Create a new FileChooserButton specifying the backend |
|
| Method Summary | |
|---|---|
void |
addFilter(FileFilter filter)
|
void |
addListener(FileChooserListener listener)
|
void |
addShortcutFolder(java.lang.String folder)
|
void |
addShortcutURI(java.lang.String uri)
|
FileChooserAction |
getAction()
|
java.lang.String |
getCurrentFolder()
|
java.lang.String |
getCurrentFolderURI()
|
Widget |
getExtraWidget()
|
static FileChooserButton |
getFileChooserButton(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
java.lang.String |
getFilename()
|
java.lang.String[] |
getFilenames()
|
FileFilter |
getFilter()
|
boolean |
getLocalOnly()
|
java.lang.String |
getPreviewFilename()
|
java.lang.String |
getPreviewURI()
|
Widget |
getPreviewWidget()
|
boolean |
getPreviewWidgetActive()
|
boolean |
getSelectMultiple()
|
boolean |
getShowHidden()
Sets whether hidden files and folders are displayed in the file selector. |
java.lang.String |
getTitle()
Returns the title of the browse dialog. |
java.lang.String |
getURI()
|
java.lang.String[] |
getURIs()
|
boolean |
getUsePreviewLabel()
|
int |
getWidthChars()
Retrieves the width in characters of the button widget's entry and/or label. |
FileFilter[] |
listFilters()
|
java.lang.String[] |
listShortcutFolders()
|
java.lang.String[] |
listShortcutURIs()
|
void |
removeFilter(FileFilter filter)
|
void |
removeListener(FileChooserListener listener)
|
void |
removeShortcutFolder(java.lang.String folder)
|
void |
removeShortcutURI(java.lang.String uri)
|
void |
selectAll()
|
boolean |
selectFilename(java.lang.String filename)
|
boolean |
selectURI(java.lang.String uri)
|
void |
setAction(FileChooserAction action)
|
boolean |
setCurrentFolder(java.lang.String folder)
|
boolean |
setCurrentFolderURI(java.lang.String folder)
|
void |
setCurrentName(java.lang.String name)
|
void |
setExtraWidget(Widget extraWidget)
|
boolean |
setFilename(java.lang.String filename)
|
void |
setFilter(FileFilter filter)
|
void |
setLocalOnly(boolean localOnly)
|
void |
setPreviewWidget(Widget previewWidget)
|
void |
setPreviewWidgetActive(boolean active)
|
void |
setSelectMultiple(boolean selectMultiple)
|
void |
setShowHidden(boolean hidden)
Sets whether hidden files and folders are displayed in the file selector. |
void |
setTitle(java.lang.String title)
Modifies the title of the browse dialog. |
boolean |
setURI(java.lang.String uri)
|
void |
setUsePreviewLabel(boolean useLabel)
|
void |
setWidthChars(int numChars)
Sets the width in characters that the button's label will use. |
void |
unselectAll()
|
void |
unselectFilename(java.lang.String filename)
|
void |
unselectURI(java.lang.String uri)
|
| Methods inherited from class org.gnu.gtk.HBox |
|---|
getHBox, getType |
| Methods inherited from class org.gnu.gtk.Box |
|---|
getHomogeneous, getSpacing, packEnd, packEnd, packStart, packStart, reorderChild, setHomogeneous, setSpacing |
| Methods inherited from class org.gnu.gtk.Container |
|---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
| Methods inherited from class org.gnu.gtk.GtkObject |
|---|
destroy, sink |
| Methods inherited from class org.gnu.glib.Struct |
|---|
equals, getHandle, getNullHandle, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileChooserButton(org.gnu.glib.Handle handle)
public FileChooserButton(java.lang.String title,
FileChooserAction action)
title - the title of the browse dialogaction - the open mode for the dialog
public FileChooserButton(java.lang.String title,
FileChooserAction action,
java.lang.String backend)
title - the title of the browse dialogaction - the open mode for the dialogbackend - the name of the FileSystem backend to usepublic FileChooserButton(FileChooserDialog dialog)
dialog - | Method Detail |
|---|
public static FileChooserButton getFileChooserButton(org.gnu.glib.Handle handle)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public int getWidthChars()
public void setWidthChars(int numChars)
public void setAction(FileChooserAction action)
setAction in interface FileChooserpublic FileChooserAction getAction()
getAction in interface FileChooserpublic void setLocalOnly(boolean localOnly)
setLocalOnly in interface FileChooserpublic boolean getLocalOnly()
getLocalOnly in interface FileChooserpublic void setSelectMultiple(boolean selectMultiple)
setSelectMultiple in interface FileChooserpublic boolean getSelectMultiple()
getSelectMultiple in interface FileChooserpublic void setCurrentName(java.lang.String name)
setCurrentName in interface FileChooserpublic java.lang.String getFilename()
getFilename in interface FileChooserpublic boolean setFilename(java.lang.String filename)
setFilename in interface FileChooserpublic boolean selectFilename(java.lang.String filename)
selectFilename in interface FileChooserpublic void unselectFilename(java.lang.String filename)
unselectFilename in interface FileChooserpublic void selectAll()
selectAll in interface FileChooserpublic void unselectAll()
unselectAll in interface FileChooserpublic java.lang.String[] getFilenames()
getFilenames in interface FileChooserpublic boolean setCurrentFolder(java.lang.String folder)
setCurrentFolder in interface FileChooserpublic java.lang.String getCurrentFolder()
getCurrentFolder in interface FileChooserpublic java.lang.String getURI()
getURI in interface FileChooserpublic boolean setURI(java.lang.String uri)
setURI in interface FileChooserpublic boolean selectURI(java.lang.String uri)
selectURI in interface FileChooserpublic void unselectURI(java.lang.String uri)
unselectURI in interface FileChooserpublic java.lang.String[] getURIs()
getURIs in interface FileChooserpublic boolean setCurrentFolderURI(java.lang.String folder)
setCurrentFolderURI in interface FileChooserpublic java.lang.String getCurrentFolderURI()
getCurrentFolderURI in interface FileChooserpublic void setPreviewWidget(Widget previewWidget)
setPreviewWidget in interface FileChooserpublic Widget getPreviewWidget()
getPreviewWidget in interface FileChooserpublic void setUsePreviewLabel(boolean useLabel)
setUsePreviewLabel in interface FileChooserpublic boolean getUsePreviewLabel()
getUsePreviewLabel in interface FileChooserpublic void setPreviewWidgetActive(boolean active)
setPreviewWidgetActive in interface FileChooserpublic boolean getPreviewWidgetActive()
getPreviewWidgetActive in interface FileChooserpublic java.lang.String getPreviewFilename()
getPreviewFilename in interface FileChooserpublic java.lang.String getPreviewURI()
getPreviewURI in interface FileChooserpublic void setExtraWidget(Widget extraWidget)
setExtraWidget in interface FileChooserpublic Widget getExtraWidget()
getExtraWidget in interface FileChooserpublic void addFilter(FileFilter filter)
addFilter in interface FileChooserpublic void removeFilter(FileFilter filter)
removeFilter in interface FileChooserpublic FileFilter[] listFilters()
listFilters in interface FileChooserpublic void setFilter(FileFilter filter)
setFilter in interface FileChooserpublic FileFilter getFilter()
getFilter in interface FileChooser
public void addShortcutFolder(java.lang.String folder)
throws FileChooserException
addShortcutFolder in interface FileChooserFileChooserException
public void removeShortcutFolder(java.lang.String folder)
throws FileChooserException
removeShortcutFolder in interface FileChooserFileChooserExceptionpublic java.lang.String[] listShortcutFolders()
listShortcutFolders in interface FileChooser
public void addShortcutURI(java.lang.String uri)
throws FileChooserException
addShortcutURI in interface FileChooserFileChooserException
public void removeShortcutURI(java.lang.String uri)
throws FileChooserException
removeShortcutURI in interface FileChooserFileChooserExceptionpublic java.lang.String[] listShortcutURIs()
listShortcutURIs in interface FileChooserpublic void setShowHidden(boolean hidden)
setShowHidden in interface FileChooserhidden - true if hidden files and folders should be
displayed.public boolean getShowHidden()
getShowHidden in interface FileChooserpublic void addListener(FileChooserListener listener)
addListener in interface FileChooserpublic void removeListener(FileChooserListener listener)
removeListener in interface FileChooser
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||