Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gtk.java.swing.plaf.gtk
Class GtkFileChooserUI  view GtkFileChooserUI download GtkFileChooserUI.java

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.FileChooserUI
          extended byjavax.swing.plaf.basic.BasicFileChooserUI
              extended byorg.gtk.java.swing.plaf.gtk.GtkFileChooserUI

public class GtkFileChooserUI
extends javax.swing.plaf.basic.BasicFileChooserUI

Gtk FileChooserUI.

Version:
1.19 08/26/98

Nested Class Summary
protected  class GtkFileChooserUI.DirectoryCellRenderer
           
protected  class GtkFileChooserUI.FileCellRenderer
           
protected  class GtkFileChooserUI.FilterComboBoxModel
          Data model for a type-face selection combo-box.
 class GtkFileChooserUI.FilterComboBoxRenderer
          Render different type sizes and styles.
protected  class GtkFileChooserUI.GtkDirectoryListModel
           
protected  class GtkFileChooserUI.GtkFileListModel
           
 
Nested classes inherited from class javax.swing.plaf.basic.BasicFileChooserUI
javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter, javax.swing.plaf.basic.BasicFileChooserUI.ApproveSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView, javax.swing.plaf.basic.BasicFileChooserUI.CancelSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.ChangeToParentDirectoryAction, javax.swing.plaf.basic.BasicFileChooserUI.DoubleClickListener, javax.swing.plaf.basic.BasicFileChooserUI.GoHomeAction, javax.swing.plaf.basic.BasicFileChooserUI.NewFolderAction, javax.swing.plaf.basic.BasicFileChooserUI.SelectionListener, javax.swing.plaf.basic.BasicFileChooserUI.UpdateAction
 
Field Summary
protected  javax.swing.JButton approveButton
           
private static java.awt.Insets buttonMargin
           
protected  javax.swing.JList directoryList
           
private  javax.swing.JPanel directoryPanel
           
private  int enterFileNameLabelMnemonic
           
private  java.lang.String enterFileNameLabelText
           
protected  javax.swing.JList fileList
           
protected  javax.swing.JTextField filenameTextField
           
private  int filesLabelMnemonic
           
private  java.lang.String filesLabelText
           
protected  javax.swing.JComboBox filterComboBox
           
private  GtkFileChooserUI.FilterComboBoxModel filterComboBoxModel
           
private  int filterLabelMnemonic
           
private  java.lang.String filterLabelText
           
private  int foldersLabelMnemonic
           
private  java.lang.String foldersLabelText
           
private static java.awt.Dimension hstrut10
           
private static java.awt.Insets insets
           
private static java.awt.Dimension MAX_SIZE
           
private static java.awt.Dimension MIN_SIZE
           
protected  javax.swing.JTextField pathField
           
private  int pathLabelMnemonic
           
private  java.lang.String pathLabelText
           
private static java.awt.Dimension PREF_ACC_SIZE
           
private static java.awt.Dimension PREF_SIZE
           
private static java.awt.Dimension prefListSize
           
private static java.awt.Dimension vstrut10
           
private static java.awt.Dimension WITH_ACCELERATOR_PREF_SIZE
           
private static java.awt.Dimension ZERO_ACC_SIZE
           
 
Fields inherited from class javax.swing.plaf.basic.BasicFileChooserUI
cancelButtonMnemonic, cancelButtonText, cancelButtonToolTipText, computerIcon, detailsViewIcon, directoryIcon, directoryOpenButtonMnemonic, directoryOpenButtonText, directoryOpenButtonToolTipText, fileIcon, floppyDriveIcon, hardDriveIcon, helpButtonMnemonic, helpButtonText, helpButtonToolTipText, homeFolderIcon, listViewIcon, newFolderIcon, openButtonMnemonic, openButtonText, openButtonToolTipText, saveButtonMnemonic, saveButtonText, saveButtonToolTipText, updateButtonMnemonic, updateButtonText, updateButtonToolTipText, upFolderIcon
 
Constructor Summary
GtkFileChooserUI(javax.swing.JFileChooser filechooser)
           
 
Method Summary
protected  void align(javax.swing.JComponent c)
           
protected  javax.swing.JScrollPane createDirectoryList()
           
protected  javax.swing.JScrollPane createFilesList()
           
protected  GtkFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()
           
protected  GtkFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()
           
 java.beans.PropertyChangeListener createPropertyChangeListener(javax.swing.JFileChooser fc)
          Creates a listener to handle changes to the properties of the given file chooser component.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Returns a UI delegate for the given component.
 void ensureFileIsVisible(javax.swing.JFileChooser fc, java.io.File f)
          NOT YET IMPLEMENTED.
protected  javax.swing.JButton getApproveButton(javax.swing.JFileChooser fc)
          Returns the approve (open or save) button for the dialog.
 java.lang.String getDirectoryName()
          Returns the current directory name.
 java.lang.String getFileName()
          Returns the current file name.
 java.awt.Dimension getMaximumSize(javax.swing.JComponent x)
          Determines the maximum size of a component.
 java.awt.Dimension getMinimumSize(javax.swing.JComponent x)
          Determines the minimum size of a component.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent x)
          Determines the preferred size of a component.
 void installComponents(javax.swing.JFileChooser fc)
          Creates and install the subcomponents for the file chooser.
protected  void installIcons(javax.swing.JFileChooser fc)
          Installs the icons for this UI delegate.
protected  void installStrings(javax.swing.JFileChooser fc)
          Installs the strings used by this UI delegate.
 void installUI(javax.swing.JComponent c)
          Installs the UI for the specified component.
 void rescanCurrentDirectory(javax.swing.JFileChooser fc)
          Rescans the current directory.
 void setDirectoryName(java.lang.String dirname)
          Sets the directory name (NOT IMPLEMENTED).
 void setFileName(java.lang.String filename)
          Sets the file name.
 void uninstallComponents(javax.swing.JFileChooser fc)
          Uninstalls the components from the file chooser.
protected  void uninstallIcons(javax.swing.JFileChooser fc)
          Uninstalls the icons previously added by this UI delegate.
 void uninstallUI(javax.swing.JComponent c)
          Uninstalls this UI from the given component.
 
Methods inherited from class javax.swing.plaf.basic.BasicFileChooserUI
clearIconCache, createDoubleClickListener, createListSelectionListener, createModel, getAcceptAllFileFilter, getAccessoryPanel, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDialogTitle, getDirectory, getFileChooser, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installDefaults, installListeners, isDirectorySelected, setDirectory, setDirectorySelected, uninstallDefaults, uninstallListeners, uninstallStrings
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterComboBoxModel

private GtkFileChooserUI.FilterComboBoxModel filterComboBoxModel

directoryList

protected javax.swing.JList directoryList

fileList

protected javax.swing.JList fileList

pathField

protected javax.swing.JTextField pathField

filterComboBox

protected javax.swing.JComboBox filterComboBox

filenameTextField

protected javax.swing.JTextField filenameTextField

hstrut10

private static final java.awt.Dimension hstrut10

vstrut10

private static final java.awt.Dimension vstrut10

insets

private static final java.awt.Insets insets

prefListSize

private static java.awt.Dimension prefListSize

WITH_ACCELERATOR_PREF_SIZE

private static java.awt.Dimension WITH_ACCELERATOR_PREF_SIZE

PREF_SIZE

private static java.awt.Dimension PREF_SIZE

MIN_SIZE

private static java.awt.Dimension MIN_SIZE

PREF_ACC_SIZE

private static java.awt.Dimension PREF_ACC_SIZE

ZERO_ACC_SIZE

private static java.awt.Dimension ZERO_ACC_SIZE

MAX_SIZE

private static java.awt.Dimension MAX_SIZE

buttonMargin

private static final java.awt.Insets buttonMargin

directoryPanel

private javax.swing.JPanel directoryPanel

approveButton

protected javax.swing.JButton approveButton

enterFileNameLabelText

private java.lang.String enterFileNameLabelText

enterFileNameLabelMnemonic

private int enterFileNameLabelMnemonic

filesLabelText

private java.lang.String filesLabelText

filesLabelMnemonic

private int filesLabelMnemonic

foldersLabelText

private java.lang.String foldersLabelText

foldersLabelMnemonic

private int foldersLabelMnemonic

pathLabelText

private java.lang.String pathLabelText

pathLabelMnemonic

private int pathLabelMnemonic

filterLabelText

private java.lang.String filterLabelText

filterLabelMnemonic

private int filterLabelMnemonic
Constructor Detail

GtkFileChooserUI

public GtkFileChooserUI(javax.swing.JFileChooser filechooser)
Method Detail

getFileName

public java.lang.String getFileName()
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Returns the current file name.


setFileName

public void setFileName(java.lang.String filename)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Sets the file name.


getDirectoryName

public java.lang.String getDirectoryName()
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Returns the current directory name.


setDirectoryName

public void setDirectoryName(java.lang.String dirname)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Sets the directory name (NOT IMPLEMENTED).


ensureFileIsVisible

public void ensureFileIsVisible(javax.swing.JFileChooser fc,
                                java.io.File f)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
NOT YET IMPLEMENTED.


rescanCurrentDirectory

public void rescanCurrentDirectory(javax.swing.JFileChooser fc)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Rescans the current directory.


createPropertyChangeListener

public java.beans.PropertyChangeListener createPropertyChangeListener(javax.swing.JFileChooser fc)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Creates a listener to handle changes to the properties of the given file chooser component.


createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Returns a UI delegate for the given component.


installUI

public void installUI(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Installs the UI for the specified component.


uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Uninstalls this UI from the given component.


installComponents

public void installComponents(javax.swing.JFileChooser fc)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Creates and install the subcomponents for the file chooser.


uninstallComponents

public void uninstallComponents(javax.swing.JFileChooser fc)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Uninstalls the components from the file chooser.


installStrings

protected void installStrings(javax.swing.JFileChooser fc)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Installs the strings used by this UI delegate.


installIcons

protected void installIcons(javax.swing.JFileChooser fc)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Installs the icons for this UI delegate.


uninstallIcons

protected void uninstallIcons(javax.swing.JFileChooser fc)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Uninstalls the icons previously added by this UI delegate.


createFilesList

protected javax.swing.JScrollPane createFilesList()

createDirectoryList

protected javax.swing.JScrollPane createDirectoryList()

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent x)
Description copied from class: javax.swing.plaf.ComponentUI
Determines the preferred size of a component. The default implementation returns null, which means that c’s layout manager should be asked to calculate the preferred size.


getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent x)
Description copied from class: javax.swing.plaf.ComponentUI
Determines the minimum size of a component. The default implementation calls ComponentUI.getPreferredSize(javax.swing.JComponent)>ComponentUI.getPreferredSize(javax.swing.JComponent) 55 , but subclasses might want to override this.


getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent x)
Description copied from class: javax.swing.plaf.ComponentUI
Determines the maximum size of a component. The default implementation calls ComponentUI.getPreferredSize(javax.swing.JComponent)>ComponentUI.getPreferredSize(javax.swing.JComponent) 55 , but subclasses might want to override this.


align

protected void align(javax.swing.JComponent c)

createFilterComboBoxModel

protected GtkFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()

createFilterComboBoxRenderer

protected GtkFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()

getApproveButton

protected javax.swing.JButton getApproveButton(javax.swing.JFileChooser fc)
Description copied from class: javax.swing.plaf.basic.BasicFileChooserUI
Returns the approve (open or save) button for the dialog.