/** * Constructor for {@link SuggestBox}. Creates a {@link TextBox} to use with this * {@link SuggestBox}. * * @param poracle the oracle for this <code>SuggestBox</code> */ public AbstractFormatingSuggestBox(final SuggestOracle poracle) { super(poracle); addKeyPressHandler(HandlerFactory.getFilterReplAndFormatStrKeyPressHandler()); addKeyUpHandler(HandlerFactory.getFormatStrKeyUpHandler()); sinkEvents(Event.ONPASTE); }
/** * Constructor for {@link SuggestBox}. Creates a {@link TextBox} to use with this * {@link SuggestBox}. * * @param poracle the oracle for this <code>SuggestBox</code> */ public AbstractFormatingSuggestBox(final SuggestOracle poracle) { super(poracle); addKeyPressHandler(HandlerFactory.getFilterReplAndFormatStrKeyPressHandler()); addKeyUpHandler(HandlerFactory.getFormatStrKeyUpHandler()); sinkEvents(Event.ONPASTE); }
/** * Constructor for {@link SuggestBox}. Creates a {@link TextBox} to use with this * {@link SuggestBox}. * * @param poracle the oracle for this <code>SuggestBox</code> * @param pbox value box used for input */ public AbstractFormatingSuggestBox(final SuggestOracle poracle, final ValueBoxBaseWithEditorErrors<String> pbox) { super(poracle, pbox); addKeyPressHandler(HandlerFactory.getFilterReplAndFormatStrKeyPressHandler()); addKeyUpHandler(HandlerFactory.getFormatStrKeyUpHandler()); sinkEvents(Event.ONPASTE); }
/** * Constructor for {@link SuggestBox}. Creates a {@link TextBox} to use with this * {@link SuggestBox}. * * @param poracle the oracle for this <code>SuggestBox</code> * @param pbox value box used for input */ public AbstractFormatingSuggestBox(final SuggestOracle poracle, final ValueBoxBaseWithEditorErrors<String> pbox) { super(poracle, pbox); addKeyPressHandler(HandlerFactory.getFilterReplAndFormatStrKeyPressHandler()); addKeyUpHandler(HandlerFactory.getFormatStrKeyUpHandler()); sinkEvents(Event.ONPASTE); }