当前位置: 首页>>代码示例>>Java>>正文


Java PopupView类代码示例

本文整理汇总了Java中com.vaadin.ui.PopupView的典型用法代码示例。如果您正苦于以下问题:Java PopupView类的具体用法?Java PopupView怎么用?Java PopupView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PopupView类属于com.vaadin.ui包,在下文中一共展示了PopupView类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildCheckInPopupView

import com.vaadin.ui.PopupView; //导入依赖的package包/类
private PopupView buildCheckInPopupView() {
    attendeeInformationVerified = new CheckBox("Information Verified");
    parentalConsentFormReceived = new CheckBox("Parental Consent Form Received");
    btnInfoReceived = new Button("Save");
    btnInfoReceived.setEnabled(false);
    VerticalLayout layout = new VerticalLayout();
    layout.setMargin(true);
    layout.setSpacing(true);
    layout.addComponent(attendeeInformationVerified);
    layout.addComponent(parentalConsentFormReceived);
    layout.addComponent(btnInfoReceived);

    attendeeInformationVerified.addValueChangeListener((Property.ValueChangeListener) valueChangeEvent ->
            btnInfoReceived.setEnabled(validateCheckInFields()));
    parentalConsentFormReceived.addValueChangeListener((Property.ValueChangeListener) valueChangeEvent ->
            btnInfoReceived.setEnabled(validateCheckInFields()));
    btnInfoReceived.addClickListener((Button.ClickListener) clickEvent -> attendeeInformationVerified());

    return new PopupView(null, layout);
}
 
开发者ID:kumoregdev,项目名称:kumoreg,代码行数:21,代码来源:AttendeeDetailWindow.java

示例2: initContent

import com.vaadin.ui.PopupView; //导入依赖的package包/类
@Override
protected Component initContent() {
    entityContent = new PopupClientContent();
    popupView = new PopupView(entityContent);
    popupView.setHideOnMouseOut(false);
    return popupView;
}
 
开发者ID:ExtaSoft,项目名称:extacrm,代码行数:8,代码来源:ClientField.java

示例3: popupRowOnClick

import com.vaadin.ui.PopupView; //导入依赖的package包/类
private PopupView popupRowOnClick() {
	VerticalLayout popupContent = new VerticalLayout();
	popupContent.setSizeFull();

	PopupView popup = new PopupView(null, popupContent);

	grid.addItemClickListener(e -> {
		popup.setData(e.getItem());
		popup.setPopupVisible(true);
	});

	popup.addPopupVisibilityListener(event -> {
		if (event.isPopupVisible()) {
			popupContent.removeAllComponents();

			PropertyItem item = (PropertyItem) popup.getData();

			Label popupTitle = new Label("<h2>Property details</h2>", ContentMode.HTML);
			popupTitle.setSizeFull();

			Button popupClose = new Button(VaadinIcons.CLOSE);
			popupClose.addClickListener(e -> popup.setPopupVisible(false));

			HorizontalLayout title = new HorizontalLayout(popupTitle, popupClose);
			title.setSizeFull();
			title.setExpandRatio(popupTitle, 3);
			title.setExpandRatio(popupClose, 1);
			title.setComponentAlignment(popupClose, Alignment.TOP_RIGHT);

			Label propertyKey= new Label(String.format("Key: '%s'", item.getKey()), ContentMode.TEXT);
			Label propertyValue = new Label(String.format("Value: '%s'", item.getValue()), ContentMode.TEXT);
			propertyValue.setSizeFull();
			Label propertyOrigin = new Label(String.format("Origin: '%s'", item.getOrigin()), ContentMode.TEXT);

			popupContent.addComponents(title, propertyKey, propertyValue, propertyOrigin);
		}
	});

	popup.setHideOnMouseOut(false);
	popup.setSizeFull();

	return popup;
}
 
开发者ID:vianneyfaivre,项目名称:Persephone,代码行数:44,代码来源:PropertiesPage.java

示例4: getWrapContent

import com.vaadin.ui.PopupView; //导入依赖的package包/类
public MVerticalLayout getWrapContent() {
    PopupView.Content content = getContent();
    return (MVerticalLayout) content.getPopupComponent();
}
 
开发者ID:MyCollab,项目名称:mycollab,代码行数:5,代码来源:LazyPopupView.java

示例5: initContent

import com.vaadin.ui.PopupView; //导入依赖的package包/类
@Override
protected Component initContent() {

    final PopupView popup = new PopupView(new PopupContent());
    return popup;
}
 
开发者ID:ExtaSoft,项目名称:extacrm,代码行数:7,代码来源:UserContactSelectField.java

示例6: forceLinkagePopRepaint

import com.vaadin.ui.PopupView; //导入依赖的package包/类
public void forceLinkagePopRepaint(){
		registerLinkageListeners();
		
		HorizontalLayout toolBar=new HorizontalLayout();
		toolBar.setWidth("100%");
		
		HorizontalLayout popupLayout = new HorizontalLayout();
		linkage_one_panel = new PopupView("1st Linkage",popupLayout);
		if(field_linkage_position.isEnabled() || field_anomeric_carbon.isEnabled() || 
					field_anomeric_state.isEnabled() || field_chirality.isEnabled() || field_ring_size.isEnabled()){
			linkage_one_panel.setEnabled(true);
		}else{
			linkage_one_panel.setEnabled(false);
		}
		
		popupLayout.addStyleName("1st_linkage_panel");
		
		popupLayout.addComponent(field_anomeric_state);
		popupLayout.addComponent(field_anomeric_carbon);
		popupLayout.addComponent(field_linkage_position);
		popupLayout.addComponent(field_chirality);
		popupLayout.addComponent(field_ring_size);
		
		
//		boolean enabled=linkage_two_panel.isEnabled();
//		linkage_two_panel = new PopupButton("2nd Linkage");
//		linkage_two_panel.setEnabled(enabled);
//		linkage_two_panel.setComponent(popupLayout2);
		
//		linkage_one_panel.addStyleName(BaseTheme.BUTTON_LINK);
//		linkage_two_panel.addStyleName("link");
		
		linkage_two_panel.addStyleName("igg-glycan-builder-linkage-toolbar-panel-item");
		linkage_one_panel.addStyleName("igg-glycan-builder-linkage-toolbar-panel-item");
		field_second_bond.addStyleName("igg-glycan-builder-linkage-toolbar-panel-item");
		
		toolBar.addComponent(linkage_one_panel);
		
		popupLayout2.addComponent(field_second_child_position);
		popupLayout2.addComponent(field_second_parent_position);
		
		toolBar.addComponent(field_second_bond);
		
		toolBar.addComponent(linkage_two_panel);
		HorizontalLayout filler = new HorizontalLayout();
		toolBar.addComponent(filler);
		toolBar.setExpandRatio(filler, 1f);
		
		//linkagePanel.removeAllComponents();
		linkagePanel.setContent(toolBar);
	}
 
开发者ID:alternativeTime,项目名称:GlycanBuilderVaadin7Version,代码行数:52,代码来源:VaadinGlycanCanvas.java

示例7: withPopupVisible

import com.vaadin.ui.PopupView; //导入依赖的package包/类
/**
 * Set the visibility of the popup. Does not hide the minimal
 * representation.
 *
 * @param visible true for visible, false otherwise
 * @return this for method chaining
 * @see PopupView#setPopupVisible(boolean)
 */
@SuppressWarnings("unchecked")
public default THIS withPopupVisible(boolean visible) {
    ((PopupView) this).setPopupVisible(visible);
    return (THIS) this;
}
 
开发者ID:viydaag,项目名称:vaadin-fluent-api,代码行数:14,代码来源:FluentPopupView.java

示例8: withHideOnMouseOut

import com.vaadin.ui.PopupView; //导入依赖的package包/类
/**
 * Should the popup automatically hide when the user takes the mouse cursor
 * out of the popup area? If this is false, the user must click outside the
 * popup to close it. The default is true.
 *
 * @param hideOnMouseOut true for auto hide the popup on mouse out, otherwise false
 * @return this for method chaining
 * @see PopupView#setHideOnMouseOut(boolean)
 */
@SuppressWarnings("unchecked")
public default THIS withHideOnMouseOut(boolean hideOnMouseOut) {
    ((PopupView) this).setHideOnMouseOut(hideOnMouseOut);
    return (THIS) this;
}
 
开发者ID:viydaag,项目名称:vaadin-fluent-api,代码行数:15,代码来源:FluentPopupView.java


注:本文中的com.vaadin.ui.PopupView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。