Package org.pentaho.di.ui.core
Class SimpleFileSelection
- java.lang.Object
-
- org.eclipse.swt.events.SelectionAdapter
-
- org.pentaho.di.ui.core.SimpleFileSelection
-
- All Implemented Interfaces:
EventListener,org.eclipse.swt.events.SelectionListener,org.eclipse.swt.internal.SWTEventListener
public class SimpleFileSelection extends org.eclipse.swt.events.SelectionAdapter- Author:
- Thomas Hoedl(asc042)
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_FILTER_EXTENSIONThe default filter extension.static StringDEFAULT_FILTER_NAMEThe default file extension.
-
Constructor Summary
Constructors Constructor Description SimpleFileSelection(org.eclipse.swt.widgets.Shell shell, TextVar textVar)Constructor.SimpleFileSelection(org.eclipse.swt.widgets.Shell shell, TextVar textVar, String... filterNames)Constructor.SimpleFileSelection(org.eclipse.swt.widgets.Shell shell, TextVar textVar, String[] filterExtensions, String[] filterNames)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwidgetSelected(org.eclipse.swt.events.SelectionEvent event)
-
-
-
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(org.eclipse.swt.widgets.Shell shell, TextVar textVar, String[] filterExtensions, String[] filterNames) throws IllegalArgumentExceptionConstructor.- 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(org.eclipse.swt.widgets.Shell shell, TextVar textVar) throws IllegalArgumentExceptionConstructor.- Parameters:
shell- the shell to set.textVar- the text variable to edit.- Throws:
IllegalArgumentException- if shell or text variable is null.
-
SimpleFileSelection
public SimpleFileSelection(org.eclipse.swt.widgets.Shell shell, TextVar textVar, String... filterNames) throws IllegalArgumentExceptionConstructor.- 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(org.eclipse.swt.events.SelectionEvent event)
- Specified by:
widgetSelectedin interfaceorg.eclipse.swt.events.SelectionListener- Overrides:
widgetSelectedin classorg.eclipse.swt.events.SelectionAdapter- See Also:
SelectionAdapter.widgetSelected(org.eclipse.swt.events.SelectionEvent)
-
-