| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Florian Pirchner <florian.pirchner@gmail.com> - Initial implementation |
| */ |
| package org.eclipse.osbp.vaadin.addons.suggesttext.client; |
| |
| import com.vaadin.event.ShortcutAction; |
| import com.vaadin.shared.AbstractComponentState; |
| |
| /** |
| * The Class SuggestTextFieldState. |
| */ |
| @SuppressWarnings("serial") |
| public class SuggestTextFieldState extends AbstractComponentState { |
| |
| /** |
| * The popup delay in milliseconds. |
| */ |
| public int popupDelay = 450; |
| |
| /** |
| * How many suggestions should be displayed. |
| */ |
| public int limit = 10; |
| |
| /** |
| * True, if suggestions should be enabled. False otherwise. |
| */ |
| public boolean suggestionEnabled = true; |
| |
| /** |
| * If true, then the suggestions are hidden, if the user clicks outside the |
| * popup. |
| */ |
| public boolean autoHide = true; |
| |
| /** |
| * Key to open the popup in combination with the {@link #openPopup_modifier} |
| */ |
| public int openPopup_key = ShortcutAction.KeyCode.ARROW_DOWN; |
| |
| /** |
| * Key modifier to open the popup in combination with the |
| * {@link #openPopup_key} |
| */ |
| public int openPopup_modifier = ShortcutAction.ModifierKey.ALT; |
| } |