com.vaadin.flow.component.tabs.GeneratedVaadinTabs Maven / Gradle / Ivy
/*
* Copyright 2000-2024 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.flow.component.tabs;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.HasStyle;
import com.vaadin.flow.component.HasTheme;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.dependency.JsModule;
import com.vaadin.flow.component.dependency.NpmPackage;
/**
*
* Description copied from corresponding location in WebComponent:
*
*
* {@code } is a Web Component for easy switching between different
* views.
*
*
* {@code
Page 1
Page 2
Page 3
Page 4
}
*
* Styling
*
* The following shadow DOM parts are available for styling:
*
*
*
*
* Part name
* Description
*
*
*
* {@code back-button}
* Button for moving the scroll back
*
*
* {@code tabs}
* The tabs container
*
*
* {@code forward-button}
* Button for moving the scroll forward
*
*
*
*
* The following state attributes are available for styling:
*
*
*
*
* Attribute
* Description
* Part name
*
*
*
* {@code orientation}
* Tabs disposition, valid values are {@code horizontal} and
* {@code vertical}.
* :host
*
*
* {@code overflow}
* It's set to {@code start}, {@code end}, none or both.
* :host
*
*
*
*
* See
* ThemableMixin
* – how to apply styles for shadow parts
*
*
* @deprecated since v23.3, generated classes will be removed in v24.
*/
@Deprecated
@Tag("vaadin-tabs")
@NpmPackage(value = "@vaadin/polymer-legacy-adapter", version = "23.5.11")
@JsModule("@vaadin/polymer-legacy-adapter/style-modules.js")
@JsModule("@vaadin/tabs/src/vaadin-tabs.js")
@NpmPackage(value = "@vaadin/tabs", version = "23.5.11")
@NpmPackage(value = "@vaadin/vaadin-tabs", version = "23.5.11")
public abstract class GeneratedVaadinTabs>
extends Component implements HasStyle, HasTheme {
/**
* Adds theme variants to the component.
*
* @param variants
* theme variants to add
*
* @deprecated since v23.3, generated classes will be removed in v24.
*/
@Deprecated
public void addThemeVariants(TabsVariant... variants) {
getThemeNames().addAll(Stream.of(variants)
.map(TabsVariant::getVariantName).collect(Collectors.toList()));
}
/**
* Removes theme variants from the component.
*
* @param variants
* theme variants to remove
*
* @deprecated since v23.3, generated classes will be removed in v24.
*/
@Deprecated
public void removeThemeVariants(TabsVariant... variants) {
getThemeNames().removeAll(Stream.of(variants)
.map(TabsVariant::getVariantName).collect(Collectors.toList()));
}
/**
* @deprecated since v23.3, generated classes will be removed in v24.
*/
@Deprecated
protected void focus() {
getElement().callJsFunction("focus");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy