本文整理了Java中com.vaadin.flow.component.Tag.<init>()
方法的一些代码示例,展示了Tag.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.<init>()
方法的具体详情如下:
包路径:com.vaadin.flow.component.Tag
类名称:Tag
方法名:<init>
暂无
代码示例来源:origin: com.holon-platform.vaadin/holon-vaadin-flow
@SuppressWarnings("serial")
@Tag(Tag.DIV)
private static class WindowSizeReceiver extends Component {
private final BiConsumer<Integer, Integer> callback;
public WindowSizeReceiver(BiConsumer<Integer, Integer> callback) {
super();
this.callback = callback;
}
@ClientCallable
private void windowSize(int width, int height) {
this.callback.accept(width, height);
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-responsive")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-responsive.html")
class LeftResponsive extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-responsive";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left.html")
class Left extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-overlay")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-overlay.html")
class LeftOverlay extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-overlay";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-responsive-overlay")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-responsive-overlay.html")
class LeftResponsiveOverlay extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-responsive-overlay";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-responsive-overlay-no-app-bar")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-responsive-overlay-no-app-bar.html")
class LeftResponsiveOverlayNoAppBar extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-responsive-overlay-no-app-bar";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-header")
@HtmlImport("bower_components/app-layout/app-header/app-header.html")
public class AppHeader extends Component implements HasSize, HasComponents {
}
代码示例来源:origin: vaadin/spring
@HtmlImport("/components/CustomElement.html")
@Tag("custom-element")
public class CustomElement extends PolymerTemplate<TemplateModel> {
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-drawer-layout")
@HtmlImport("bower_components/app-layout/app-drawer-layout/app-drawer-layout.html")
public class AppDrawerLayout extends Component implements HasComponents {
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-drawer")
@HtmlImport("bower_components/app-layout/app-drawer/app-drawer.html")
public class AppDrawer extends Component implements HasSize, HasComponents {
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-header-layout")
@HtmlImport("bower_components/app-layout/app-header-layout/app-header-layout.html")
public class AppHeaderLayout extends Component implements HasComponents {
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-toolbar")
@HtmlImport("bower_components/app-layout/app-toolbar/app-toolbar.html")
public class AppToolbar extends Component implements HasSize, HasComponents {
}
代码示例来源:origin: com.vaadin/vaadin-select-flow
@Tag("vaadin-list-box")
private class InternalListBox<T> extends Component
implements HasItemsAndComponents<T> {
@Override
public void setItems(Collection<T> collection) {
// NOOP, never used directly, just need to have it here
throw new UnsupportedOperationException(
"The setItems method of the internal ListBox of the Select component should never be called.");
}
@Override
public int getItemPosition(T item) {
// null item is the empty selection item and that is always first
if (item == null && isEmptySelectionAllowed()) {
return 0;
} else {
return HasItemsAndComponents.super.getItemPosition(item);
}
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-responsive-small")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-responsive-small.html")
@StyleSheet("frontend://com/github/appreciated/app-layout/left/left-responsive-small.css")
class LeftResponsiveSmall extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-responsive-small";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-responsive-hybrid-overlay-no-app-bar")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-responsive-hybrid-overlay-no-app-bar.html")
@StyleSheet("frontend://com/github/appreciated/app-layout/left/left-responsive-hybrid-overlay-no-app-bar.css")
class LeftResponsiveHybridOverlayNoAppBar extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-responsive-hybrid-overlay-no-app-bar";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-responsive-small-no-app-bar")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-responsive-small-no-app-bar.html")
@StyleSheet("frontend://com/github/appreciated/app-layout/left/left-responsive-small-no-app-bar.css")
class LeftResponsiveSmallNoAppBar extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-responsive-small-no-app-bar";
}
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-hybrid")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-hybrid.html")
@StyleSheet("frontend://com/github/appreciated/app-layout/left/left-hybrid.css")
class LeftHybrid extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-hybrid";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-responsive-hybrid")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-responsive-hybrid.html")
@StyleSheet("frontend://com/github/appreciated/app-layout/left/left-responsive-hybrid.css")
class LeftResponsiveHybrid extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-responsive-hybrid";
}
}
代码示例来源:origin: appreciated/vaadin-app-layout
@Tag("app-layout-left-responsive-hybrid-no-app-bar")
@HtmlImport("frontend://com/github/appreciated/app-layout/left/left-responsive-hybrid-no-app-bar.html")
@StyleSheet("frontend://com/github/appreciated/app-layout/left/left-responsive-hybrid-no-app-bar.css")
class LeftResponsiveHybridNoAppBar extends AbstractLeftAppLayoutBase {
@Override
public String getStyleName() {
return "left-responsive-hybrid-no-app-bar";
}
}
代码示例来源:origin: vaadin/spring
@Tag("parent-template")
@HtmlImport("ParentTemplate.html")
@Route("parent-template")
public class TemplateInjectsTemplate extends PolymerTemplate<TemplateModel> {
@Id("child")
private ChildTemplate template;
@Id("div")
private Div div;
public TemplateInjectsTemplate() {
template.getElement().setProperty("foo", "bar");
div.setText("baz");
}
}
内容来源于网络,如有侵权,请联系作者删除!