Class SimpleTextEntryWindow

    • Field Detail

      • display

        private org.eclipse.swt.widgets.Display display
      • parent_shell

        private org.eclipse.swt.widgets.Shell parent_shell
      • shell

        private org.eclipse.swt.widgets.Shell shell
      • textLimit

        private int textLimit
      • resizeable

        private boolean resizeable
      • loc_size_config_key

        private java.lang.String loc_size_config_key
      • text_entry_combo

        private org.eclipse.swt.widgets.Combo text_entry_combo
      • text_entry_text

        private org.eclipse.swt.widgets.Text text_entry_text
      • link_label

        private org.eclipse.swt.widgets.Label link_label
      • detect_urls

        private boolean detect_urls
      • special_escape_handling

        private boolean special_escape_handling
      • user_hit_escape

        private boolean user_hit_escape
      • verify_listeners

        private java.util.List<org.eclipse.swt.events.VerifyListener> verify_listeners
    • Constructor Detail

      • SimpleTextEntryWindow

        public SimpleTextEntryWindow()
      • SimpleTextEntryWindow

        public SimpleTextEntryWindow​(java.lang.String sTitleKey,
                                     java.lang.String sLabelKey)
      • SimpleTextEntryWindow

        public SimpleTextEntryWindow​(java.lang.String sTitleKey,
                                     java.lang.String sLabelKey,
                                     boolean bMultiLine)
    • Method Detail

      • initTexts

        public void initTexts​(java.lang.String sTitleKey,
                              java.lang.String[] p0,
                              java.lang.String sLabelKey,
                              java.lang.String[] p1)
      • addVerifyListener

        public void addVerifyListener​(org.eclipse.swt.events.VerifyListener l)
      • promptForInput

        protected void promptForInput()
        Description copied from class: AbstractUIInputReceiver
        Subclasses must override this method to receive input from the user. This method must call either recordUserInput or recordUserAbort before returning.
        Specified by:
        promptForInput in class AbstractUIInputReceiver
      • promptForInput0

        private void promptForInput0()
      • checkText

        private void checkText()
      • setTextLimit

        public void setTextLimit​(int limit)
        Description copied from interface: UIInputReceiver
        set the maximum number of characters the user can type
      • setResizeable

        public void setResizeable​(boolean b)
      • setRememberLocationSize

        public void setRememberLocationSize​(java.lang.String config_key)
      • setDetectURLs

        public void setDetectURLs​(boolean b)
      • setParentShell

        public void setParentShell​(org.eclipse.swt.widgets.Shell shell)
      • setEnableSpecialEscapeHandling

        public void setEnableSpecialEscapeHandling​(boolean b)
        Description copied from interface: UIInputReceiver
        Enables a long-press on cancel button to be treated as an escape - useful for callers that implement special escape handling such as 'escape closes this and any other similar outstanding dialogs', e.g. when renaming a number of files this can avoid the user having to explicitly cancel each rename if they decide to abort the operation
      • userHitEscape

        public boolean userHitEscape()