use of com.vaadin.flow.component.icon.Icon in project alibaba-rsocket-broker by alibaba.
the class MainLayout method faq.
private Tab faq() {
final Span label = new Span("FAQ");
final Icon icon = QUESTION.create();
final Tab tab = new Tab(new HorizontalLayout(icon, label));
tab2Workspace.put(tab, new FAQView());
return tab;
}
use of com.vaadin.flow.component.icon.Icon in project alibaba-rsocket-broker by alibaba.
the class MainLayout method apps.
private Tab apps() {
final Span label = new Span("Apps");
final Icon icon = BULLETS.create();
final Tab tab = new Tab(new HorizontalLayout(icon, label));
tab2Workspace.put(tab, new AppsView(this.handlerRegistry));
return tab;
}
use of com.vaadin.flow.component.icon.Icon in project alibaba-rsocket-broker by alibaba.
the class MainLayout method services.
private Tab services() {
final Span label = new Span("Services");
final Icon icon = BULLETS.create();
final Tab tab = new Tab(new HorizontalLayout(icon, label));
tab2Workspace.put(tab, new ServicesView(this.handlerRegistry, this.serviceRoutingSelector));
return tab;
}
use of com.vaadin.flow.component.icon.Icon in project alibaba-rsocket-broker by alibaba.
the class MainLayout method brokers.
private Tab brokers() {
final Span label = new Span("Brokers");
final Icon icon = CUBES.create();
final Tab tab = new Tab(new HorizontalLayout(icon, label));
tab2Workspace.put(tab, new BrokersView(this.rSocketBrokerManager));
return tab;
}
use of com.vaadin.flow.component.icon.Icon in project flow-components by vaadin.
the class ButtonTest method changeOrder_setIcon_setText_changeOrder.
@Test
public void changeOrder_setIcon_setText_changeOrder() {
icon = new Icon();
button = new Button();
button.setIconAfterText(true);
button.setIcon(icon);
button.setText(TEST_STRING);
assertIconAfterText();
button.setIconAfterText(false);
assertIconBeforeText();
}
Aggregations