Package org.apache.hop.ui.core.dialog
Class EnterTextDialog
- java.lang.Object
-
- org.eclipse.swt.widgets.Dialog
-
- org.apache.hop.ui.core.dialog.EnterTextDialog
-
public class EnterTextDialog extends org.eclipse.swt.widgets.DialogDialog to enter a text. (descriptions etc.)
-
-
Constructor Summary
Constructors Constructor Description EnterTextDialog(org.eclipse.swt.widgets.Shell parent, String title, String message, String text)Dialog to allow someone to show or enter a text in variable width fontEnterTextDialog(org.eclipse.swt.widgets.Shell parent, String title, String message, String text, boolean fixed)Dialog to allow someone to show or enter a text
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCancel(org.eclipse.swt.events.ShellEvent e)voiddispose()static voideditDescription(org.eclipse.swt.widgets.Shell shell, IDescription iDescription, String shellText, String message)voidenrich(EnterTextDialog enterTextDialog)voidgetData()org.eclipse.swt.widgets.ShellgetShell()StringgetText()org.eclipse.swt.widgets.TextgetwDesc()org.eclipse.swt.widgets.LabelgetWlDesc()booleanisFixed()Stringopen()voidsetFixed(boolean fixed)voidsetModal()voidsetReadOnly()voidsetSingleLine()voidsetWOkListener(org.eclipse.swt.widgets.Listener listener)
-
-
-
Constructor Detail
-
EnterTextDialog
public EnterTextDialog(org.eclipse.swt.widgets.Shell parent, String title, String message, String text, boolean fixed)Dialog to allow someone to show or enter a text- Parameters:
parent- The parent shell to usetitle- The dialog titlemessage- The message to displaytext- The text to display or editfixed- true if you want the font to be in fixed-width
-
EnterTextDialog
public EnterTextDialog(org.eclipse.swt.widgets.Shell parent, String title, String message, String text)Dialog to allow someone to show or enter a text in variable width font- Parameters:
parent- The parent shell to usetitle- The dialog titlemessage- The message to displaytext- The text to display or edit
-
-
Method Detail
-
setReadOnly
public void setReadOnly()
-
setModal
public void setModal()
-
setSingleLine
public void setSingleLine()
-
open
public String open()
-
dispose
public void dispose()
-
getData
public void getData()
-
checkCancel
public void checkCancel(org.eclipse.swt.events.ShellEvent e)
-
editDescription
public static final void editDescription(org.eclipse.swt.widgets.Shell shell, IDescription iDescription, String shellText, String message)
-
isFixed
public boolean isFixed()
-
setFixed
public void setFixed(boolean fixed)
-
enrich
public void enrich(EnterTextDialog enterTextDialog)
-
getWlDesc
public org.eclipse.swt.widgets.Label getWlDesc()
-
getwDesc
public org.eclipse.swt.widgets.Text getwDesc()
-
getShell
public org.eclipse.swt.widgets.Shell getShell()
-
getText
public String getText()
- Overrides:
getTextin classorg.eclipse.swt.widgets.Dialog
-
setWOkListener
public void setWOkListener(org.eclipse.swt.widgets.Listener listener)
-
-