Class SimpleTextEntryWindow

All Implemented Interfaces:
UIInputReceiver, UISWTInputReceiver

public class SimpleTextEntryWindow extends AbstractUISWTInputReceiver
  • Field Details

    • 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 String loc_size_config_key
    • text_entry_combo

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

      private org.eclipse.swt.custom.StyledText text_entry_text
    • 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 List<org.eclipse.swt.events.VerifyListener> verify_listeners
  • Constructor Details

    • SimpleTextEntryWindow

      public SimpleTextEntryWindow()
    • SimpleTextEntryWindow

      public SimpleTextEntryWindow(String sTitleKey, String sLabelKey)
    • SimpleTextEntryWindow

      public SimpleTextEntryWindow(String sTitleKey, String sLabelKey, boolean bMultiLine)
  • Method Details

    • initTexts

      public void initTexts(String sTitleKey, String[] p0, String sLabelKey, 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(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
      Parameters:
      b -
    • userHitEscape

      public boolean userHitEscape()