本文整理汇总了Java中com.vaadin.event.LayoutEvents.LayoutClickEvent类的典型用法代码示例。如果您正苦于以下问题:Java LayoutClickEvent类的具体用法?Java LayoutClickEvent怎么用?Java LayoutClickEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LayoutClickEvent类属于com.vaadin.event.LayoutEvents包,在下文中一共展示了LayoutClickEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildPalette
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
private Component buildPalette() {
HorizontalLayout paletteLayout = new HorizontalLayout();
paletteLayout.setSpacing(true);
paletteLayout.setWidthUndefined();
paletteLayout.addStyleName("palette");
paletteLayout.addComponent(buildPaletteItem(PaletteItemType.TEXT));
paletteLayout.addComponent(buildPaletteItem(PaletteItemType.TABLE));
paletteLayout.addComponent(buildPaletteItem(PaletteItemType.CHART));
paletteLayout.addLayoutClickListener(new LayoutClickListener() {
@Override
public void layoutClick(final LayoutClickEvent event) {
if (event.getChildComponent() != null) {
PaletteItemType data = (PaletteItemType) ((DragAndDropWrapper) event
.getChildComponent()).getData();
addWidget(data, null);
}
}
});
return paletteLayout;
}
示例2: setInitialButtons
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
public void setInitialButtons() {
this.button1.setDetails("./images/icons/newIcons/1418831828_editor_memo_note_pad-128.png", "Methodenauswahl", new LayoutClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
button2.setDeactivated();
button1.setActivated();
presenter.showMethodScreen();
}
});
button1.setActivated();
button2.setDeactivated();
this.button2.setVisible(true);
setGoToStep(2);
}
示例3: setStochasticParameter
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
/**
* Ändert die Buttons für die Eingabe der Stochastischen Parameter.
*
* @author Tobias Lindner
*/
public void setStochasticParameter () {
this.button1.setDetails("./images/icons/newIcons/1418831298_common_calendar_month-128.png", "Stochastische", "Methode", new LayoutClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
button2.setDeactivated();
button1.setActivated();
presenter.showParameterScreen();
}
});
this.button2.setVisible(true);
logger.debug("View: setStochasticParameter");
}
示例4: setFCFButton
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
/**
* Diese Methode passt die Beschriftung des mittleren Buttons an FCF an.
*
* @author Tobias Lindner
*/
public void setFCFButton() {
this.button1.setDetails("./images/icons/newIcons/1418831563_circle_backup_time_history_recent_time-machine_-128.png", "FCF", "Free Cash Flow", new LayoutClickListener () {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
button2.setDeactivated();
button1.setActivated();
presenter.showPeriodScreen();
}
});
this.button2.setVisible(true);
// setExpandRatio(gap, 1.0f);
logger.debug ("View: setFCFButton");
}
示例5: setGKVButton
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
/**
* Diese Methode passt die Beschriftung des mittleren Buttons an GKV an.
*
* @author Tobias Lindner
*/
public void setGKVButton() {
this.button1.setDetails("./images/icons/newIcons/1418831563_circle_backup_time_history_recent_time-machine_-128.png", "GKV", "Gesamtkostenverfahren", new LayoutClickListener () {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
button2.setDeactivated();
button1.setActivated();
presenter.showPeriodScreen();
}
});
this.button2.setVisible(true);
logger.debug ("View: setGKVButton");
}
示例6: setUKVButton
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
/**
* Diese Methode passt die Beschriftung des mittleren Buttons an UKV an.
*
* @author Tobias Lindner
*/
public void setUKVButton() {
this.button1.setDetails("./images/icons/newIcons/1418831563_circle_backup_time_history_recent_time-machine_-128.png", "UKV", "Umsatzkostenverfahren", new LayoutClickListener () {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
button2.setDeactivated();
button1.setActivated();
presenter.showPeriodScreen();
}
});
this.button2.setVisible(true);
logger.debug ("View: setUKVButton");
}
示例7: setScenarioButton
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
/**
* Diese Methode passt die Beschriftung des mittleren Buttons für den ScenarioScreen an.
*
* @author Tobias Lindner
*/
public void setScenarioButton() {
this.button1.setDetails("./images/icons/newIcons/1418831239_editor_attachment_paper_clip_2-128.png", "Szenarien", new LayoutClickListener () {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
button2.setDeactivated();
button1.setActivated();
presenter.showScenarioScreen();
}
});
this.button2.setVisible(true);
logger.debug ("View: setScenarioButton");
}
示例8: setResultButton
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
/**
* Diese Methode passt die Beschriftung des mittleren Buttons für den Result an.
*
* @author Tobias Lindner
*/
public void setResultButton() {
this.button1.setDetails("./images/icons/newIcons/1418775155_device_board_presentation_content_chart-128.png", "Ergebnis", new LayoutClickListener () {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
button2.setDeactivated();
button1.setActivated();
presenter.showResultScreen();;
}
});
this.button2.setVisible(false);
logger.debug ("View: setResultButton");
}
示例9: generateUi
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
/**
* Diese Methode erstellt das UI, bestehend aus Inputfeld für Projektname und
* Projektbeschreibung.
*
* @author Marco Glaser
*/
public void generateUi(){
setWidth(85, UNITS_PERCENTAGE);
setHeight(100, UNITS_PERCENTAGE);
gap = new Label();
button = new ButtonMiddle("./images/icons/newIcons/1418766041_circle_arrow-forward_next-128.png", "Zur Berechnung", new LayoutClickListener(){
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
eventBus.fireEvent(new SaveProjectEvent());
}
});
button.changeStyleClass("buttonBottom");
gap.setSizeFull();
addComponent(gap);
addComponent(button);
setExpandRatio(gap, 1.0f);
}
示例10: DashboardView
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
public DashboardView() {
addStyleName(ValoTheme.PANEL_BORDERLESS);
setSizeFull();
DashboardEventBus.register(this);
root = new VerticalLayout();
root.setSizeFull();
root.setMargin(true);
root.addStyleName("dashboard-view");
setContent(root);
Responsive.makeResponsive(root);
root.addComponent(buildHeader());
root.addComponent(buildSparklines());
Component content = buildContent();
root.addComponent(content);
root.setExpandRatio(content, 1);
// All the open sub-windows should be closed whenever the root layout
// gets clicked.
root.addLayoutClickListener(new LayoutClickListener() {
@Override
public void layoutClick(final LayoutClickEvent event) {
DashboardEventBus.post(new CloseOpenWindowsEvent());
}
});
}
示例11: buildCatalogView
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
private Component buildCatalogView() {
CssLayout catalog = new CssLayout();
catalog.setCaption("Catalog");
catalog.addStyleName("catalog");
for (final Movie movie : DashboardUI.getDataProvider().getMovies()) {
VerticalLayout frame = new VerticalLayout();
frame.addStyleName("frame");
frame.setWidthUndefined();
Image poster = new Image(null, new ExternalResource(
movie.getThumbUrl()));
poster.setWidth(100.0f, Unit.PIXELS);
poster.setHeight(145.0f, Unit.PIXELS);
frame.addComponent(poster);
Label titleLabel = new Label(movie.getTitle());
titleLabel.setWidth(120.0f, Unit.PIXELS);
frame.addComponent(titleLabel);
frame.addLayoutClickListener(new LayoutClickListener() {
@Override
public void layoutClick(final LayoutClickEvent event) {
if (event.getButton() == MouseButton.LEFT) {
MovieDetailsWindow.open(movie, null, null);
}
}
});
catalog.addComponent(frame);
}
return catalog;
}
示例12: generateListener2
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
private LayoutClickListener generateListener2() {
LayoutClickListener lcl = new LayoutClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
presenter.showParameterScreen();
button2.setDeactivated();
button1.setActivated();
}
};
return lcl;
}
示例13: generateListener3
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
private LayoutClickListener generateListener3() {
LayoutClickListener lcl = new LayoutClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
presenter.showPeriodScreen();
button2.setDeactivated();
button1.setActivated();
}
};
return lcl;
}
示例14: generateListener4
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
private LayoutClickListener generateListener4() {
LayoutClickListener lcl = new LayoutClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
presenter.showScenarioScreen();
button2.setDeactivated();
button1.setActivated();
}
};
return lcl;
}
示例15: generateListener5
import com.vaadin.event.LayoutEvents.LayoutClickEvent; //导入依赖的package包/类
private LayoutClickListener generateListener5() {
LayoutClickListener lcl = new LayoutClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void layoutClick(LayoutClickEvent event) {
presenter.showResultScreen();
button2.setDeactivated();
button1.setActivated();
}
};
return lcl;
}