All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.flow.component.charts.model.KeyboardNavigation Maven / Gradle / Ivy

There is a newer version: 24.6.0
Show newest version
/**
 * Copyright 2000-2024 Vaadin Ltd.
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See {@literal } for the full
 * license.
 */
package com.vaadin.flow.component.charts.model;

/**
 * Options for keyboard navigation.
 */
public class KeyboardNavigation extends AbstractConfigurationObject {

    private Boolean enabled;
    private Boolean skipNullPoints;
    private Boolean tabThroughChartElements;

    public KeyboardNavigation() {
    }

    public KeyboardNavigation(Boolean enabled) {
        this.enabled = enabled;
    }

    /**
     * @see #setEnabled(Boolean)
     */
    public Boolean getEnabled() {
        return enabled;
    }

    /**
     * Enable keyboard navigation for the chart.
     * 

* Defaults to: true */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** * @see #setSkipNullPoints(Boolean) */ public Boolean getSkipNullPoints() { return skipNullPoints; } /** * Skip null points when navigating through points with the keyboard. *

* Defaults to: false */ public void setSkipNullPoints(Boolean skipNullPoints) { this.skipNullPoints = skipNullPoints; } /** * @see #setTabThroughChartElements(Boolean) */ public Boolean getTabThroughChartElements() { return tabThroughChartElements; } /** * Enable tab navigation for points. Without this, only arrow keys can be * used to navigate between points. *

* Defaults to: true */ public void setTabThroughChartElements(Boolean tabThroughChartElements) { this.tabThroughChartElements = tabThroughChartElements; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy