Package org.pentaho.di.ui.core.dialog
Class EnterSelectionDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
org.pentaho.di.ui.core.dialog.EnterSelectionDialog
public class EnterSelectionDialog
extends org.eclipse.swt.widgets.Dialog
Allows the user to make a selection from a list of values.
- Since:
- 19-06-2003
- Author:
- Matt
-
Constructor Summary
ConstructorDescriptionEnterSelectionDialog
(org.eclipse.swt.widgets.Shell parent, String[] choices, String shellText, String message) Create a new dialog allow someone to pick one value out of a list of valuesEnterSelectionDialog
(org.eclipse.swt.widgets.Shell parent, String[] choices, String shellText, String message, int shellWidth, int shellHeight) EnterSelectionDialog
(org.eclipse.swt.widgets.Shell parent, String[] choices, String shellText, String message, String constant, org.pentaho.di.core.variables.VariableSpace variableSpace) EnterSelectionDialog
(org.eclipse.swt.widgets.Shell parent, String[] choices, String shellText, String message, org.pentaho.di.trans.HasDatabasesInterface databasesInterface) EnterSelectionDialog
(org.eclipse.swt.widgets.Shell parent, PropsUI props, String[] choices, String shellText, String lineText) Deprecated.Use CT without props parameter -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
void
dispose()
void
getData()
int[]
int[]
int
int
getSelectionNr
(String str) org.eclipse.swt.widgets.Shell
getShell()
boolean
isFixed()
boolean
isMulti()
open()
open
(int nr) void
void
setCurrentValue
(String currentValue) void
setFixed
(boolean fixed) void
setMulti
(boolean multi) void
setSelectedNrs
(int[] selectedNrs) void
protected void
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
-
Constructor Details
-
EnterSelectionDialog
@Deprecated public EnterSelectionDialog(org.eclipse.swt.widgets.Shell parent, PropsUI props, String[] choices, String shellText, String lineText) Deprecated.Use CT without props parameter -
EnterSelectionDialog
public EnterSelectionDialog(org.eclipse.swt.widgets.Shell parent, String[] choices, String shellText, String message) Create a new dialog allow someone to pick one value out of a list of values- Parameters:
parent
- the parent shell.choices
- The available list of optionsshellText
- The shell textmessage
- the message to display as extra information about the possible choices
-
EnterSelectionDialog
-
EnterSelectionDialog
-
EnterSelectionDialog
-
-
Method Details
-
getShell
public org.eclipse.swt.widgets.Shell getShell() -
setViewOnly
public void setViewOnly() -
setAvoidQuickSearch
public void setAvoidQuickSearch() -
setCurrentValue
-
clearModal
public void clearModal() -
open
-
open
-
openRepoDialog
-
dispose
public void dispose() -
getData
public void getData() -
getSelectionNr
-
getSelectionNr
public int getSelectionNr() -
isMulti
public boolean isMulti() -
setMulti
public void setMulti(boolean multi) -
getSelectionIndeces
public int[] getSelectionIndeces() -
isFixed
public boolean isFixed()- Returns:
- the fixed
-
setFixed
public void setFixed(boolean fixed) - Parameters:
fixed
- the fixed to set
-
getSelectedNrs
public int[] getSelectedNrs()- Returns:
- the selectedNrs
-
setSelectedNrs
public void setSelectedNrs(int[] selectedNrs) - Parameters:
selectedNrs
- the selectedNrs to set
-
updateFilter
protected void updateFilter() -
addDataSource
protected void addDataSource()
-