com.metamatrix.console.ui.util
Class ModifiedDirectoryChooserPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.metamatrix.toolbox.ui.widget.DialogPanel
                      extended by com.metamatrix.console.ui.util.ModifiedDirectoryChooserPanel
All Implemented Interfaces:
UIConstants, ButtonConstants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class ModifiedDirectoryChooserPanel
extends DialogPanel

DirectoryChooserPanel is a customizable file explorer dialog similar to JFileChooser. DirectoryChooserPanel works with DirectoryEntrys and DirectoryEntryViews rather than file systems. There are 2 constructors for DirectoryChooserPanel. Both constructors need to be passed a TreeView and a type. The 2 types are DirectoryChooserPanel.TYPE_SAVE, used for saving files and DirectoryChooserPanel.TYPE_OPEN used for selecting and opening files. The second constructor will also take an array of TreeFilters which will populate a filter combo box.

Version:
2.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int APPROVE_OPTION
           
protected  javax.swing.JPanel bottomDetailsPanel
           
static int CANCEL_OPTION
           
protected  DirectoryEntryView directoryEntryView
           
protected  DirectoryEntry existingDirectoryEntry
           
protected  javax.swing.JComboBox filterComboBox
           
protected  DirectoryEntry homeDirectoryEntry
           
protected  java.lang.String INVALID_FILENAME_MSG
           
protected  boolean multiSelectionAllowed
           
protected  DirectoryEntry parentDirectoryEntry
           
protected  PassThroughDirectoryEntryFilter passThruDirectoryEntryFilter
           
protected  java.lang.String PROTECTED_PARENT_MSG
           
protected  DirectoryEntry selectedDirectoryEntry
           
protected  DirectoryEntryFilter selectedFilter
           
protected  javax.swing.JPanel topButtonsPanel
           
protected  javax.swing.JPanel topDetailsPanel
           
static int TYPE_OPEN
           
static int TYPE_SAVE
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, 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 com.metamatrix.toolbox.ui.widget.ButtonConstants
ACCEPT_BUTTON, APPLY_BUTTON, BACK_BUTTON, CANCEL_BUTTON, CONTEXT_SENSITIVE_HELP, DEFAULTS_BUTTON, DETAILS_BUTTON, EXIT_BUTTON, FINISH_BUTTON, HELP_BUTTON, LOGIN_BUTTON, NEXT_BUTTON, NO_BUTTON, OVERWRITE_BUTTON, REPLACE_BUTTON, RETRY_BUTTON, SKIP_BUTTON, YES_BUTTON
 
Fields inherited from interface com.metamatrix.toolbox.ui.UIConstants
DATE_FORMAT_PROPERTY, SPACER_HORIZONTAL_LENGTH_PROPERTY, WINDOW_BORDER_PROPERTY
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView, int type, DirectoryEntryFilter[] filters)
           
ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView, int type, DirectoryEntryFilter[] filters, java.util.Collection propertiesToShow)
           
ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView, int type, DirectoryEntryFilter[] filters, java.util.Collection propertiesToShow, java.util.Collection rootsToShow)
           
ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView, int type, DirectoryEntryFilter[] filters, java.util.Collection propertiesToShow, java.util.Collection rootsToShow, MDCPOpenStateListener openStateListener)
          Creates a DirectoryChooserPanel with a list of selectable extension filters.
ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView, int type, DirectoryEntryFilter[] filters, MDCPOpenStateListener openStateListener)
           
ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView, int type, MDCPOpenStateListener openStateListener)
          Creates a DirectoryChooserPanel with no selectable extension filters.
 
Method Summary
protected  boolean accept()
           
 boolean acceptsFolders()
          Indicates whether folders may be valid target selections (in OPEN mode only).
protected  void activateAcceptButton()
           
 void addChangeListener(javax.swing.event.ChangeListener listener)
           
protected  java.lang.String addFileExtension(java.lang.String sFileName, DirectoryEntryFilter selectedFilter)
           
protected  void changeView2()
           
protected  void checkOpenStateListenerNotifying()
           
protected  void expand()
          Executed when the accept button (Open) is pressed with a folder selected.
protected  boolean filenameAlreadyExists(java.lang.String filename)
          Search DirectoryEntry names in the current folder for a match already existing
protected  void fireChangeEvent()
           
protected  void folderComboBoxSelectionChanged()
           
 TreeNode getCurrentRoot()
          Returns the root of the current directory.
protected  javax.swing.JComboBox getFolderComboBox()
          Returns the folder combo box
 DirectoryEntry getFolderComboBoxSelection()
           
 javax.swing.JList getList()
           
 java.lang.String getNameFieldText()
           
 DirectoryEntry getParentDirectoryEntry()
           
 DirectoryEntry getRoot()
          Returns the root of the DirectoryEntryView
 DirectoryEntryFilter getSelectedFilter()
           
 TreeNode getSelectedTreeNode()
          Get the selected DirectoryEntry from this dialog.
 java.util.Collection getSelectedTreeNodes()
          Get the selected DirectoryEntries from this dialog when a multiple selection is made.
 PropertiedObjectArrayTable getTable()
           
 boolean isFolderComboSelectionARoot()
           
protected  boolean open()
          Executed when the accept button (Open) is pressed with a panelType of OPEN
protected  void populateTopButtonsPanel()
          Populates the topButtonsPanel, broken out to override when needed.
protected  void reactivateRefresh()
          Executed when the window containing this panel is left and then returned to.
 void removeChangeListener(javax.swing.event.ChangeListener listener)
           
protected  boolean save()
          Executed when the accept button is pressed with a panelType of SAVE
protected  void selectListRow(boolean doubleClicked)
           
protected  void selectTableRow(boolean doubleClicked)
           
protected  void setAcceptButtonEnabled(boolean enabled)
           
 void setAcceptButtonLabel(java.lang.String s)
          Set the label for the accept button.
 void setAcceptsFolders(boolean acceptsFolders)
          Sets whether folders may be valid target selections (in OPEN mode only).
 void setAllowFolderCreation(boolean b)
          Control whether or not the newFolder button is displayed.
 void setAllowNonFolderCreation(boolean b)
          Control whether or not the newFolder button is displayed.
 void setCancelButtonLabel(java.lang.String s)
          Set the label for the cancel button.
 void setDetailsButtonLabel(java.lang.String s)
          Set the label for the details button.
 void setFilenameSelectionAllowed(boolean allowed)
          Set whether or not the user is allowed to select/type in his own filename.
 void setInitialFilename(java.lang.String name)
          Set the DirectoryEntry where you want the ModifiedDirectoryChooserPanel to start.
 void setInvalidFilenameMsg(java.lang.String msg)
          Set the message that appears inside the Invalid File message dialog panel
 void setModelerListCellRenderer(javax.swing.ListCellRenderer renderer)
           
 void setModelerTableCellRenderer(javax.swing.table.TableCellRenderer renderer)
           
 void setMultiSelection(boolean allowed)
          Set whether or not multiple file selections can be made in an OPEN panel type.
protected  void setNameFieldValueToParentName(DirectoryEntry parentDirectoryEntry)
           
 void setPanelType(int type)
          Get the selected DirectoryEntries from this dialog when a multiple selection is made.
 void setShowAcceptButton(boolean b)
          Control whether or not the Accept button is displayed.
 void setShowCancelButton(boolean b)
          Control whether or not the Cancel button is displayed.
 void setShowDetailsButton(boolean b)
          Control whether or not the newFolder button is displayed.
 void setShowFilterComboBox(boolean b)
          Control whether or not the newFolder button is displayed.
 void setShowNewFolderButton(boolean b)
          Control whether or not the newFolder button is displayed.
 void setShowPassThruFilter(boolean show)
          Control whether or not the (*.* All Files) is included in the list of filters.
 void setTemporaryModelerOverride()
           
protected  void updateAcceptButton()
           
 
Methods inherited from class com.metamatrix.toolbox.ui.widget.DialogPanel
accept, addAcceptButton, addAcceptButton, addCancelButton, addCancelButton, addHelpButton, addHelpButton, addNavigationButton, addNavigationButton, addNavigationComponent, addNavigationSpacer, addNavigationSpacer, buildNavigationBar, canAccept, canCancel, cancel, createAcceptButton, createCancelButton, createHelpButton, createNavigationBar, equalizeNavigationButtonWidths, getAcceptButton, getAcceptButtons, getCancelButton, getContent, getContentContainer, getHelpButton, getNavigationBar, getNavigationButton, getNavigationComponent, getNavigationComponentIndex, getSelectedButton, getWindowAncestor, initializeDialogPanel, removeNavigationButton, removeNavigationComponent, removeNavigationSpacer, setCanAccept, setCanCancel, setContent, setLayout, setVisible, validateState, windowActivated, windowAdded
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

APPROVE_OPTION

public static final int APPROVE_OPTION
See Also:
Constant Field Values

CANCEL_OPTION

public static final int CANCEL_OPTION
See Also:
Constant Field Values

TYPE_OPEN

public static final int TYPE_OPEN
See Also:
Constant Field Values

TYPE_SAVE

public static final int TYPE_SAVE
See Also:
Constant Field Values

multiSelectionAllowed

protected boolean multiSelectionAllowed

bottomDetailsPanel

protected javax.swing.JPanel bottomDetailsPanel

topButtonsPanel

protected javax.swing.JPanel topButtonsPanel

topDetailsPanel

protected javax.swing.JPanel topDetailsPanel

filterComboBox

protected javax.swing.JComboBox filterComboBox

INVALID_FILENAME_MSG

protected java.lang.String INVALID_FILENAME_MSG

PROTECTED_PARENT_MSG

protected java.lang.String PROTECTED_PARENT_MSG

selectedFilter

protected DirectoryEntryFilter selectedFilter

passThruDirectoryEntryFilter

protected PassThroughDirectoryEntryFilter passThruDirectoryEntryFilter

directoryEntryView

protected DirectoryEntryView directoryEntryView

selectedDirectoryEntry

protected DirectoryEntry selectedDirectoryEntry

existingDirectoryEntry

protected DirectoryEntry existingDirectoryEntry

homeDirectoryEntry

protected DirectoryEntry homeDirectoryEntry

parentDirectoryEntry

protected DirectoryEntry parentDirectoryEntry
Constructor Detail

ModifiedDirectoryChooserPanel

public ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView,
                                     int type,
                                     DirectoryEntryFilter[] filters,
                                     java.util.Collection propertiesToShow,
                                     java.util.Collection rootsToShow,
                                     MDCPOpenStateListener openStateListener)
Creates a DirectoryChooserPanel with a list of selectable extension filters.

Parameters:
directoryEntryView - the view the DirectoryChooserPanel is going to deal with.
type - the type of DirectoryChooserPanel to create. Either DirectoryChooserPanel.TYPE_OPEN or DirectoryChooserPanel.TYPE_SAVE
filters - an array of filters that can be added to the panel to filter on entry extensions
propertiesToShow - a collection of PropertyDefinitions which will be displayed in the table view of the DirectoryChooserPanel. Pass a null if you wish to show all non-hidden properties.
rootsToShow - is a collection of DirectoryEntrys which will be displayed in the fileComboBox if they exist as roots. Pass a null if you wish to show all roots.
Since:
2.0

ModifiedDirectoryChooserPanel

public ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView,
                                     int type,
                                     DirectoryEntryFilter[] filters,
                                     java.util.Collection propertiesToShow,
                                     java.util.Collection rootsToShow)

ModifiedDirectoryChooserPanel

public ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView,
                                     int type,
                                     MDCPOpenStateListener openStateListener)
Creates a DirectoryChooserPanel with no selectable extension filters.

Since:
2.0

ModifiedDirectoryChooserPanel

public ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView,
                                     int type,
                                     DirectoryEntryFilter[] filters)

ModifiedDirectoryChooserPanel

public ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView,
                                     int type,
                                     DirectoryEntryFilter[] filters,
                                     MDCPOpenStateListener openStateListener)

ModifiedDirectoryChooserPanel

public ModifiedDirectoryChooserPanel(DirectoryEntryView directoryEntryView,
                                     int type,
                                     DirectoryEntryFilter[] filters,
                                     java.util.Collection propertiesToShow)
Method Detail

activateAcceptButton

protected void activateAcceptButton()
Since:
3.0

setAcceptButtonEnabled

protected void setAcceptButtonEnabled(boolean enabled)
Since:
3.0

updateAcceptButton

protected void updateAcceptButton()
Since:
3.0

setTemporaryModelerOverride

public void setTemporaryModelerOverride()

accept

protected boolean accept()
Since:
2.0

acceptsFolders

public boolean acceptsFolders()
Indicates whether folders may be valid target selections (in OPEN mode only).

Returns:
True if folders may be valid target selections
Since:
2.1

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener listener)
Since:
2.0

changeView2

protected void changeView2()
Since:
3.0

folderComboBoxSelectionChanged

protected void folderComboBoxSelectionChanged()

checkOpenStateListenerNotifying

protected void checkOpenStateListenerNotifying()

setNameFieldValueToParentName

protected void setNameFieldValueToParentName(DirectoryEntry parentDirectoryEntry)

selectListRow

protected void selectListRow(boolean doubleClicked)
Since:
3.0

selectTableRow

protected void selectTableRow(boolean doubleClicked)
Since:
3.0

expand

protected void expand()
Executed when the accept button (Open) is pressed with a folder selected. This opens the folder and adds it to the folderComboBox.

Since:
2.0

isFolderComboSelectionARoot

public boolean isFolderComboSelectionARoot()

getFolderComboBoxSelection

public DirectoryEntry getFolderComboBoxSelection()

filenameAlreadyExists

protected boolean filenameAlreadyExists(java.lang.String filename)
Search DirectoryEntry names in the current folder for a match already existing

Since:
2.0

fireChangeEvent

protected void fireChangeEvent()
Since:
2.0

getFolderComboBox

protected javax.swing.JComboBox getFolderComboBox()
Returns the folder combo box

Returns:
The folder combo box
Since:
2.1

getCurrentRoot

public TreeNode getCurrentRoot()
Returns the root of the current directory.

Returns:
The root of the current directory
Since:
2.1

getRoot

public DirectoryEntry getRoot()
Returns the root of the DirectoryEntryView

Since:
2.0

getNameFieldText

public java.lang.String getNameFieldText()
Since:
2.1

getParentDirectoryEntry

public DirectoryEntry getParentDirectoryEntry()
Since:
2.1

getSelectedTreeNode

public TreeNode getSelectedTreeNode()
Get the selected DirectoryEntry from this dialog.

Since:
2.0

getSelectedTreeNodes

public java.util.Collection getSelectedTreeNodes()
Get the selected DirectoryEntries from this dialog when a multiple selection is made.

Since:
2.0

setPanelType

public void setPanelType(int type)
Get the selected DirectoryEntries from this dialog when a multiple selection is made.

Since:
2.0

open

protected boolean open()
Executed when the accept button (Open) is pressed with a panelType of OPEN

Since:
2.0

populateTopButtonsPanel

protected void populateTopButtonsPanel()
Populates the topButtonsPanel, broken out to override when needed.

Since:
2.0

reactivateRefresh

protected void reactivateRefresh()
Executed when the window containing this panel is left and then returned to.

Since:
2.0

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener listener)
Since:
2.0

save

protected boolean save()
Executed when the accept button is pressed with a panelType of SAVE

Since:
2.0

addFileExtension

protected java.lang.String addFileExtension(java.lang.String sFileName,
                                            DirectoryEntryFilter selectedFilter)

setAcceptButtonLabel

public void setAcceptButtonLabel(java.lang.String s)
Set the label for the accept button.

Since:
2.0

setAcceptsFolders

public void setAcceptsFolders(boolean acceptsFolders)
Sets whether folders may be valid target selections (in OPEN mode only). Double-clicking on a folder, however, will still merely expand that folder. This may only be called before the panel is displayed.

Parameters:
acceptsFolders - True if folders may be valid target selections
Since:
2.1

setAllowFolderCreation

public void setAllowFolderCreation(boolean b)
Control whether or not the newFolder button is displayed.

Since:
2.0

setAllowNonFolderCreation

public void setAllowNonFolderCreation(boolean b)
Control whether or not the newFolder button is displayed.

Since:
2.0

setCancelButtonLabel

public void setCancelButtonLabel(java.lang.String s)
Set the label for the cancel button.

Since:
2.0

setDetailsButtonLabel

public void setDetailsButtonLabel(java.lang.String s)
Set the label for the details button.

Since:
2.0

setFilenameSelectionAllowed

public void setFilenameSelectionAllowed(boolean allowed)
Set whether or not the user is allowed to select/type in his own filename. Setting this false disables all file selection in both the list and table views and disables all the navigation/file selection buttons and combo boxes.

Since:
2.0

setInitialFilename

public void setInitialFilename(java.lang.String name)
Set the DirectoryEntry where you want the ModifiedDirectoryChooserPanel to start.

Since:
2.0

setInvalidFilenameMsg

public void setInvalidFilenameMsg(java.lang.String msg)
Set the message that appears inside the Invalid File message dialog panel

Since:
2.0

setMultiSelection

public void setMultiSelection(boolean allowed)
Set whether or not multiple file selections can be made in an OPEN panel type.

Since:
2.0

setShowAcceptButton

public void setShowAcceptButton(boolean b)
Control whether or not the Accept button is displayed.

Since:
2.0

setShowCancelButton

public void setShowCancelButton(boolean b)
Control whether or not the Cancel button is displayed.

Since:
2.0

setShowDetailsButton

public void setShowDetailsButton(boolean b)
Control whether or not the newFolder button is displayed.

Since:
2.0

setShowFilterComboBox

public void setShowFilterComboBox(boolean b)
Control whether or not the newFolder button is displayed.

Since:
2.0

setShowNewFolderButton

public void setShowNewFolderButton(boolean b)
Control whether or not the newFolder button is displayed.

Since:
2.0

setShowPassThruFilter

public void setShowPassThruFilter(boolean show)
Control whether or not the (*.* All Files) is included in the list of filters. If this is the only filter, setShowPassThruFilter(false) WILL NOT remove it.

Since:
2.0

getTable

public PropertiedObjectArrayTable getTable()

getList

public javax.swing.JList getList()

setModelerTableCellRenderer

public void setModelerTableCellRenderer(javax.swing.table.TableCellRenderer renderer)

setModelerListCellRenderer

public void setModelerListCellRenderer(javax.swing.ListCellRenderer renderer)

getSelectedFilter

public DirectoryEntryFilter getSelectedFilter()


Copyright © 2009. All Rights Reserved.