org.gudy.azureus2.ui.swt
Class SimpleTextEntryWindow

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.ui.AbstractUIInputReceiver
      extended by org.gudy.azureus2.ui.swt.pluginsimpl.AbstractUISWTInputReceiver
          extended by org.gudy.azureus2.ui.swt.SimpleTextEntryWindow
All Implemented Interfaces:
UIInputReceiver, UISWTInputReceiver

public class SimpleTextEntryWindow
extends AbstractUISWTInputReceiver

Author:
amc1 Based on CategoryAdderWindow.

Field Summary
 
Fields inherited from class org.gudy.azureus2.ui.swt.pluginsimpl.AbstractUISWTInputReceiver
choices, choices_allow_edit, choices_default, line_height, select_preentered_text, select_preentered_text_range, width_hint
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.local.ui.AbstractUIInputReceiver
allow_empty_input, maintain_whitespace, messages, multiline_mode, preentered_text, receiver_listener, title, validator
 
Constructor Summary
SimpleTextEntryWindow()
           
SimpleTextEntryWindow(java.lang.String sTitleKey, java.lang.String sLabelKey)
           
SimpleTextEntryWindow(java.lang.String sTitleKey, java.lang.String sLabelKey, boolean bMultiLine)
           
 
Method Summary
 void initTexts(java.lang.String sTitleKey, java.lang.String[] p0, java.lang.String sLabelKey, java.lang.String[] p1)
           
protected  void promptForInput()
          Subclasses must override this method to receive input from the user.
 void setParentShell(org.eclipse.swt.widgets.Shell shell)
           
 void setTextLimit(int limit)
          set the maximum number of characters the user can type
 
Methods inherited from class org.gudy.azureus2.ui.swt.pluginsimpl.AbstractUISWTInputReceiver
selectPreenteredText, selectPreenteredTextRange, setLineHeight, setPreenteredText, setSelectableItems, setWidthHint
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.local.ui.AbstractUIInputReceiver
allowEmptyInput, assertPostPrompt, assertPrePrompt, getSubmittedInput, hasSubmittedInput, isResultRecorded, localise, maintainWhitespace, prompt, prompt, recordUserAbort, recordUserInput, setInputValidator, setLocalisedMessage, setLocalisedMessages, setLocalisedTitle, setMessage, setMessages, setMultiLine, setTitle, triggerReceiverListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.plugins.ui.UIInputReceiver
allowEmptyInput, getSubmittedInput, hasSubmittedInput, maintainWhitespace, prompt, prompt, setInputValidator, setLocalisedMessage, setLocalisedMessages, setLocalisedTitle, setMessage, setMessages, setMultiLine, setTitle
 

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)

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

setTextLimit

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


setParentShell

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