com.sas.io
Class FileListFiltersPanel

com.sas.io.FileListFiltersPanel
All Implemented Interfaces:
ContainerInterface, com.sas.awt.print.PrintableInterface, VisualInterface, com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.collection.ContentsChangedListener, ComponentInterface, DesignTimeDropTargetInterface, LinkPropertiesInterface, ModelInterface, ValidatorInterface, ViewInterface, MultipleValueEventSourceInterface, java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class FileListFiltersPanel
implements java.awt.event.KeyListener, java.awt.event.MouseListener, com.sas.collection.ContentsChangedListener, java.awt.event.ActionListener, java.awt.event.ItemListener

The FileListFiltersPanel is a panel to be displayed in an instance of FileListCustomizer or FiltersEditor. It provides the interface which allows the user to create filters.

See Also:
Serialized Form

Field Summary
protected  Button button
           
protected  FileList fl
           
protected  FileSystemList fsl
           
protected  boolean isFile
           
protected  ModelInterface itemsModel
           
protected  ListBox listBox
           
protected  boolean mouseDClicked
           
protected  PushButton pushButton
           
static java.lang.String RB_KEY
           
protected  java.lang.String startingDirectories
           
protected  TextField textField
           
protected  TreeView treeView
           
 
Constructor Summary
FileListFiltersPanel()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void contentsChanged(com.sas.collection.ContentsChangedEvent e)
           
 java.lang.String getStartingDirectories()
          Returns the filters
 void initialize()
          The initialize() method was designed to be a synchronization point after the constructor for the object has completed and a number of methods have been called on the component.
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void keyPressed(java.awt.event.KeyEvent e)
          Called when a key is pressed
 void keyReleased(java.awt.event.KeyEvent e)
          Called when a key is released
 void keyTyped(java.awt.event.KeyEvent e)
          Called when a key is typed
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void setStartingDirectories(java.lang.String passedFilters)
          Sets the filters
 void setStartingDirectories(java.lang.String createdFilters, boolean check)
          Sets the filters
 
Methods inherited from class com.sas.awt.Panel
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, remove, remove, removeAll, setDefaultHeight, setDefaultValues, setDefaultWidth
 
Methods inherited from class com.sas.awt.PanelContainerComponent
addNotify, clone, dragEnter, dragLeave, dragOver, drop, getContainerInterfaceSupportInfo, getErrorHandler, getInsets, getValidator, isIDEDnDDropBarrier, isIDEDnDDropTarget, isValid, removeNotify, setContainerInterfaceSupportInfo, setErrorHandler, setIDEDnDDropBarrier, setIDEDnDDropTarget, setInsets, setInsets, setValidator, superAddNotify, superGetInsets, superRemoveNotify, superSetDefaultValues
 
Methods inherited from class com.sas.awt.PanelVisualComponent
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachModel, attachView, computePreferredSize, detachModel, detachView, dumpComponent, firePropertyChange, firePropertyChange, fireVetoableChange, getBackgroundColor, getBorder, getComponentDescription, getComponentSupportInfo, getEventMethod, getEventValues, getFont, getForegroundColor, getHeight, getHorizontalPosition, getLinkInfo, getMinimumSize, getModelInterface, getPageBounds, getPreferredSize, getPrePainter, getPrintOptionsPanel, getRequiredInterfaces, getVerticalPosition, getViewInterfaceSupportInfo, getVisualInterfaceSupportInfo, getWidth, initializeComponent, isDesignTime, isEnabled, isFocus, isLinked, isTransparent, isVisible, pageExists, paint, print, printFinalize, printInitialize, propertyChange, queryLinks, queryLinks, refresh, removeAllLinks, removeInterfaceTraps, removeLink, removePropertyChangeListener, removeVetoableChangeListener, setBackgroundColor, setBorder, setBounds, setComponentDescription, setComponentSupportInfo, setEnabled, setFocus, setFont, setForegroundColor, setHeight, setHorizontalPosition, setLinkInfo, setModelInterface, setPreferredSize, setPrePainter, setRequiredInterfaces, setTransparent, setVerticalPosition, setViewInterfaceSupportInfo, setVisible, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate, supportsListenerInterface, supportsRequiredInterfaces, trapInterfaceEvents, update, validateObject
 
Methods inherited from interface com.sas.awt.ContainerInterface
getComponents, getLayout, invalidate, setLayout, validate
 
Methods inherited from interface com.sas.awt.VisualInterface
computePreferredSize, getBackgroundColor, getBorder, getFont, getForegroundColor, getHeight, getHorizontalPosition, getMinimumSize, getPreferredSize, getPrePainter, getVerticalPosition, getVisualInterfaceSupportInfo, getWidth, isEnabled, isFocus, isTransparent, isVisible, setBackgroundColor, setBorder, setBounds, setEnabled, setFocus, setFont, setForegroundColor, setHeight, setHorizontalPosition, setPreferredSize, setPrePainter, setTransparent, setVerticalPosition, setVisible, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate
 

Field Detail

textField

protected TextField textField

listBox

protected ListBox listBox

treeView

protected TreeView treeView

pushButton

protected PushButton pushButton

button

protected Button button

fsl

protected FileSystemList fsl

fl

protected FileList fl

startingDirectories

protected java.lang.String startingDirectories

itemsModel

protected ModelInterface itemsModel

mouseDClicked

protected boolean mouseDClicked

isFile

protected boolean isFile

RB_KEY

public static final java.lang.String RB_KEY
See Also:
Constant Field Values
Constructor Detail

FileListFiltersPanel

public FileListFiltersPanel()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

contentsChanged

public void contentsChanged(com.sas.collection.ContentsChangedEvent e)
Specified by:
contentsChanged in interface com.sas.collection.ContentsChangedListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

getStartingDirectories

public java.lang.String getStartingDirectories()
Returns the filters

Returns:
filters

initialize

public void initialize()
Description copied from interface: ComponentInterface
The initialize() method was designed to be a synchronization point after the constructor for the object has completed and a number of methods have been called on the component. This allows components with "expensive" set method calls to delay processing until all the sets have occurred.

initialize() should be called on a component after is it constructed :

     ListBox listBox = new ListBox();
     listBox.initialize();
     container.add( listBox );
 

Overriding initialize is now discouraged since it is generally better to override setDefaultValues and readObject to perform initialization.

By default (in the ComponentInterface implementation), initialize() does nothing. However, various components override initialize() to perform operations, and it should be called.

Although use of initialize() is now discouraged, initialize() is also called by the validateObject method after a component is deserialized. This allows components which need processing during creation and deserialization to have a common place to perform operations. Adding event handlers to subcomponents is a typical use of the initialize method.

Specified by:
initialize in interface ComponentInterface
Overrides:
initialize in class PanelVisualComponent
See Also:
ComponentInterface.initialize()

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Called when a key is pressed

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
e - KeyEvent

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Called when a key is released

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
e - KeyEvent

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Called when a key is typed

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
e - KeyEvent

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

setStartingDirectories

public void setStartingDirectories(java.lang.String passedFilters)
Sets the filters

Parameters:
filters -

setStartingDirectories

public void setStartingDirectories(java.lang.String createdFilters,
                                   boolean check)
Sets the filters

Parameters:
filters -



Copyright © 2009 SAS Institute Inc. All Rights Reserved.