Package org.apache.hop.ui.core.dialog
Class EnterSelectionDialog
- java.lang.Object
-
- org.eclipse.swt.widgets.Dialog
-
- org.apache.hop.ui.core.dialog.EnterSelectionDialog
-
public class EnterSelectionDialog extends org.eclipse.swt.widgets.DialogAllows the user to make a selection from a list of values.
-
-
Constructor Summary
Constructors Constructor Description 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 valuesEnterSelectionDialog(org.eclipse.swt.widgets.Shell parent, String[] choices, String shellText, String message, String constant, IVariables variables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearModal()voiddispose()voidgetData()int[]getSelectedNrs()int[]getSelectionIndeces()intgetSelectionNr()intgetSelectionNr(String str)org.eclipse.swt.widgets.ShellgetShell()booleanisAddNoneOption()Gets addNoneOptionbooleanisFixed()booleanisMulti()booleanisNoneClicked()Gets noneClickedStringopen()Stringopen(int nr)StringopenRepoDialog()voidsetAddNoneOption(boolean addNoneOption)voidsetAvoidQuickSearch()voidsetCurrentValue(String currentValue)voidsetFixed(boolean fixed)voidsetMulti(boolean multi)voidsetNoneClicked(boolean noneClicked)voidsetSelectedNrs(int[] selectedNrs)voidsetSelectedNrs(List<Integer> selectedNrs)voidsetViewOnly()protected voidupdateFilter()
-
-
-
Constructor Detail
-
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
public EnterSelectionDialog(org.eclipse.swt.widgets.Shell parent, String[] choices, String shellText, String message, String constant, IVariables variables)
-
-
Method Detail
-
getShell
public org.eclipse.swt.widgets.Shell getShell()
-
setViewOnly
public void setViewOnly()
-
setAvoidQuickSearch
public void setAvoidQuickSearch()
-
setCurrentValue
public void setCurrentValue(String currentValue)
-
clearModal
public void clearModal()
-
open
public String open(int nr)
-
open
public String open()
-
openRepoDialog
public String openRepoDialog()
-
dispose
public void dispose()
-
getData
public void getData()
-
getSelectionNr
public int getSelectionNr(String str)
-
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
-
setSelectedNrs
public void setSelectedNrs(List<Integer> selectedNrs)
- Parameters:
selectedNrs- the selectedNrs to set
-
updateFilter
protected void updateFilter()
-
isAddNoneOption
public boolean isAddNoneOption()
Gets addNoneOption- Returns:
- value of addNoneOption
-
setAddNoneOption
public void setAddNoneOption(boolean addNoneOption)
- Parameters:
addNoneOption- The addNoneOption to set
-
isNoneClicked
public boolean isNoneClicked()
Gets noneClicked- Returns:
- value of noneClicked
-
setNoneClicked
public void setNoneClicked(boolean noneClicked)
- Parameters:
noneClicked- The noneClicked to set
-
-