APIdia Launch Partner
Top Description Fields Constructors Methods
sun.awt.X11

pack-priv final Class GtkFileDialogPeer

extends XDialogPeer
implements FileDialogPeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.FileDialogPeer, java.awt.peer.DialogPeer, java.awt.peer.WindowPeer, java.awt.peer.ContainerPeer, java.awt.peer.ComponentPeer
Imports
java.awt.FileDialog, java.awt.peer.FileDialogPeer, java.io.File, .FilenameFilter, sun.awt.AWTAccessor

FileDialogPeer for the GtkFileChooser.
Author
Costantino Cerbo ([email protected])

Field Summary

Modifier and TypeField and Description
private final FileDialog
private volatile boolean
private long
private volatile long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Overrides sun.awt.X11.XDecoratedPeer.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer.

private boolean
filenameFilterCallback(String fullname)

Called exclusively by the native C code.

private static native void
private native void
quit()

protected void
requestXFocus(long time, boolean timeProvided)

Overrides sun.awt.X11.XDecoratedPeer.requestXFocus.

Requests focus to this decorated top-level by requesting X input focus to the shell window.

private native void
run(String title, int mode, String dir, String file, FilenameFilter filter, boolean isMultipleMode, int x, int y)

public native void
setBounds(int x, int y, int width, int height, int op)

Overrides sun.awt.X11.XDecoratedPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component.

public void
setDirectory(String dir)

Implements java.awt.peer.FileDialogPeer.setDirectory.

Sets the current directory for this file dialog.

public void
setFile(String file)

Implements java.awt.peer.FileDialogPeer.setFile.

Sets the selected file for this file dialog.

private void
setFileInternal(String directory, String[] filenames)

Called exclusively by the native C code.

public void
setFilenameFilter(FilenameFilter filter)

Implements java.awt.peer.FileDialogPeer.setFilenameFilter.

Sets the filename filter for filtering the displayed files.

public void
setVisible(boolean b)

Overrides sun.awt.X11.XDialogPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

pack-priv boolean
setWindow(long xid)

Called by native code when GTK dialog is created.

private void
public native void
toFront()

Overrides sun.awt.X11.XWindowPeer.toFront.

Implements java.awt.peer.WindowPeer.toFront.

Makes this window the topmost window on the desktop.

Inherited from sun.awt.X11.XDialogPeer:
blockWindowsgetDecorationsgetFunctionsisFocusedWindowModalBlockerisTargetUndecoratedpreInit

Field Detail

fdback to summary
private final FileDialog fd
quitback to summary
private volatile boolean quit
standaloneWindowback to summary
private long standaloneWindow
widgetback to summary
private volatile long widget

Constructor Detail

GtkFileDialogPeerback to summary
pack-priv GtkFileDialogPeer(FileDialog fd)

Method Detail

disposeback to summary
public void dispose()

Overrides sun.awt.X11.XDecoratedPeer.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Doc from java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer. This is called when the component has been disconnected from the component hierarchy and is about to be garbage collected.

Annotations
@Override
filenameFilterCallbackback to summary
private boolean filenameFilterCallback(String fullname)

Called exclusively by the native C code.

initIDsback to summary
private static native void initIDs()

Hides sun.awt.X11.XWindow.initIDs.

quitback to summary
private native void quit()
requestXFocusback to summary
protected void requestXFocus(long time, boolean timeProvided)

Overrides sun.awt.X11.XDecoratedPeer.requestXFocus.

Doc from sun.awt.X11.XDecoratedPeer.requestXFocus.

Requests focus to this decorated top-level by requesting X input focus to the shell window.

Annotations
@Override
runback to summary
private native void run(String title, int mode, String dir, String file, FilenameFilter filter, boolean isMultipleMode, int x, int y)
setBoundsback to summary
public native void setBounds(int x, int y, int width, int height, int op)

Overrides sun.awt.X11.XDecoratedPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Doc from java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component. The location is specified relative to the component's parent. The op parameter specifies which properties change. If it is SET_LOCATION, then only the location changes (and the size parameters can be ignored). If op is SET_SIZE, then only the size changes (and the location can be ignored). If op is SET_BOUNDS, then both change. There is a special value SET_CLIENT_SIZE, which is used only for window-like components to set the size of the client (i.e. the 'inner' size, without the insets of the window borders).

Annotations
@Override
setDirectoryback to summary
public void setDirectory(String dir)

Implements java.awt.peer.FileDialogPeer.setDirectory.

Doc from java.awt.peer.FileDialogPeer.setDirectory.

Sets the current directory for this file dialog.

Annotations
@Override
setFileback to summary
public void setFile(String file)

Implements java.awt.peer.FileDialogPeer.setFile.

Doc from java.awt.peer.FileDialogPeer.setFile.

Sets the selected file for this file dialog.

Annotations
@Override
setFileInternalback to summary
private void setFileInternal(String directory, String[] filenames)

Called exclusively by the native C code.

setFilenameFilterback to summary
public void setFilenameFilter(FilenameFilter filter)

Implements java.awt.peer.FileDialogPeer.setFilenameFilter.

Doc from java.awt.peer.FileDialogPeer.setFilenameFilter.

Sets the filename filter for filtering the displayed files.

Annotations
@Override
setVisibleback to summary
public void setVisible(boolean b)

Overrides sun.awt.X11.XDialogPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Doc from java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

Annotations
@Override
setWindowback to summary
pack-priv boolean setWindow(long xid)

Called by native code when GTK dialog is created.

showNativeDialogback to summary
private void showNativeDialog()
toFrontback to summary
public native void toFront()

Overrides sun.awt.X11.XWindowPeer.toFront.

Implements java.awt.peer.WindowPeer.toFront.

Doc from java.awt.peer.WindowPeer.toFront.

Makes this window the topmost window on the desktop.

Annotations
@Override