org.springframework.richclient.filechooser
Class FileChooserComboBox

java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.factory.AbstractControlFactory
          extended by org.springframework.richclient.filechooser.FileChooserComboBox
All Implemented Interfaces:
ControlFactory

public class FileChooserComboBox
extends AbstractControlFactory

A combo box that allows you to type and/or select files, as well as click a Browse button to navigate to the file you wish to work with.

Author:
Keith Donald

Field Summary
 
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
logger
 
Constructor Summary
FileChooserComboBox()
           
FileChooserComboBox(ValidatingFormModel formModel, String formProperty)
           
 
Method Summary
 void addValidationListener(ValidationListener listener)
           
protected  JComponent createControl()
          Subclasses must override this method to create a new instance of the control that this factory produces.
 File getSelectedFile()
           
 File getStartDirectory()
           
 void removeValidationListener(ValidationListener listener)
           
 void setEnabled(boolean enabled)
           
 void setLabelMessageCode(String labelKey)
           
 void setStartDirectory(File file)
           
 
Methods inherited from class org.springframework.richclient.factory.AbstractControlFactory
createControlIfNecessary, getControl, isControlCreated, isSingleton, setSingleton
 
Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooserComboBox

public FileChooserComboBox()

FileChooserComboBox

public FileChooserComboBox(ValidatingFormModel formModel,
                           String formProperty)
Method Detail

addValidationListener

public void addValidationListener(ValidationListener listener)

removeValidationListener

public void removeValidationListener(ValidationListener listener)

setLabelMessageCode

public void setLabelMessageCode(String labelKey)

setStartDirectory

public void setStartDirectory(File file)

getStartDirectory

public File getStartDirectory()

getSelectedFile

public File getSelectedFile()

setEnabled

public void setEnabled(boolean enabled)

createControl

protected JComponent createControl()
Description copied from class: AbstractControlFactory
Subclasses must override this method to create a new instance of the control that this factory produces.

Specified by:
createControl in class AbstractControlFactory
Returns:
The newly created control, never null.


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.