blob: 48e195740e1027997ebddd286257b322d5632010 [file] [log] [blame]
/**
*
* 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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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;
/**
* Tooltip text
*/
public String disableSuggestionTooltip = "disable / enable suggestion";
/**
* True if content is historized.
*/
public boolean historized;
/**
* The tooltip for historized button.
*/
public String historizedTooltip;
}