org.pentaho.di.ui.core
Class SimpleFileSelection

java.lang.Object
  extended by SelectionAdapter
      extended by org.pentaho.di.ui.core.SimpleFileSelection

public class SimpleFileSelection
extends SelectionAdapter

Author:
Thomas Hoedl(asc042)

Field Summary
static String DEFAULT_FILTER_EXTENSION
          The default filter extension.
static String DEFAULT_FILTER_NAME
          The default file extension.
 
Constructor Summary
SimpleFileSelection(Shell shell, TextVar textVar)
          Constructor.
SimpleFileSelection(Shell shell, TextVar textVar, String... filterNames)
          Constructor.
SimpleFileSelection(Shell shell, TextVar textVar, String[] filterExtensions, String[] filterNames)
          Constructor.
 
Method Summary
 void widgetSelected(SelectionEvent event)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FILTER_EXTENSION

public static final String DEFAULT_FILTER_EXTENSION
The default filter extension.

See Also:
Constant Field Values

DEFAULT_FILTER_NAME

public static final String DEFAULT_FILTER_NAME
The default file extension.

See Also:
Constant Field Values
Constructor Detail

SimpleFileSelection

public SimpleFileSelection(Shell shell,
                           TextVar textVar,
                           String[] filterExtensions,
                           String[] filterNames)
                    throws IllegalArgumentException
Constructor.

Parameters:
shell - shell to set.
textVar - text variable to edit.
filterExtensions - filter extensions to set.
filterNames - filter names to set.
Throws:
IllegalArgumentException - if shell or text variable is null.

SimpleFileSelection

public SimpleFileSelection(Shell shell,
                           TextVar textVar)
                    throws IllegalArgumentException
Constructor.

Parameters:
shell - the shell to set.
textVar - the text variable to edit.
Throws:
IllegalArgumentException - if shell or text variable is null.

SimpleFileSelection

public SimpleFileSelection(Shell shell,
                           TextVar textVar,
                           String... filterNames)
                    throws IllegalArgumentException
Constructor.

Parameters:
shell - the shell to set.
textVar - the text variable to edit.
filterNames - the filter names to use.
Throws:
IllegalArgumentException - if shell or text variable is null.
Method Detail

widgetSelected

public void widgetSelected(SelectionEvent event)

See Also:
org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)