Interface UISWTInputReceiver
- All Superinterfaces:
UIInputReceiver
- All Known Implementing Classes:
AbstractUISWTInputReceiver, SimpleTextEntryWindow
SWT-specific version of
, providing some additional
methods to customise the appearance of the input receiver.
invalid reference
UIInputReciever
-
Method Summary
Modifier and TypeMethodDescriptionvoidselectPreenteredText(boolean select) Indicates whether you want the preentered text to be selected (highlighted) or not.voidsetHeightHint(int height) voidsetLineHeight(int line_count) Indicates how many lines by default to show the user to enter input.voidsetSelectableItems(String[] choices, int default_choice, boolean allow_edit) Changes the entry box to be a combo box, where the values passed are selectable.voidsetWidthHint(int width) Indicates how wide you want the text entry window to be.Methods inherited from interface UIInputReceiver
allowEmptyInput, getSubmittedInput, hasSubmittedInput, maintainWhitespace, prompt, setEnableSpecialEscapeHandling, setInputValidator, setLocalisedMessage, setLocalisedMessages, setLocalisedTitle, setMessage, setMessages, setMultiLine, setPreenteredText, setTextLimit, setTitle, userHitEscape
-
Method Details
-
setWidthHint
void setWidthHint(int width) Indicates how wide you want the text entry window to be.- Parameters:
width-
-
setHeightHint
void setHeightHint(int height) -
setLineHeight
void setLineHeight(int line_count) Indicates how many lines by default to show the user to enter input.- Parameters:
line_count-
-
selectPreenteredText
void selectPreenteredText(boolean select) Indicates whether you want the preentered text to be selected (highlighted) or not. Default istrue.- Parameters:
select-
-
setSelectableItems
Changes the entry box to be a combo box, where the values passed are selectable.- Parameters:
choices- The list of options to be made available.default_choice- Index of the option to present by default.allow_edit- true if you still want to allow the user to enter their own text, false if you want to restrict them to the choices here.- Since:
- 3.0.5.3
-