本文整理汇总了Java中com.vaadin.ui.Embedded.setImmediate方法的典型用法代码示例。如果您正苦于以下问题:Java Embedded.setImmediate方法的具体用法?Java Embedded.setImmediate怎么用?Java Embedded.setImmediate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.Embedded
的用法示例。
在下文中一共展示了Embedded.setImmediate方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildContents
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildContents() {
// common part: create layout
contents = new HorizontalLayout();
contents.setImmediate(false);
contents.setWidth("100.0%");
contents.setHeight("-1px");
contents.setMargin(true);
contents.setSpacing(true);
// details
details = buildDetails();
contents.addComponent(details);
// userPortrait
userPortrait = new Embedded();
userPortrait.setCaption("User Portrait:");
userPortrait.setImmediate(false);
userPortrait.setWidth("-1px");
userPortrait.setHeight("-1px");
userPortrait.setSource(new ThemeResource(
"img/component/embedded_icon.png"));
userPortrait.setType(1);
userPortrait.setMimeType("image/png");
contents.addComponent(userPortrait);
return contents;
}
示例2: buildEmbeddedBrowser
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
/**
* The buildEmbeddedBrowser method creates a new browser instance and adds it to the
* bottom layout. The browser is set to invisible by default.
*/
private void buildEmbeddedBrowser() {
resultsBrowser = new Embedded();
resultsBrowser.setType(Embedded.TYPE_BROWSER);
resultsBrowser.setImmediate(true);
resultsBrowser.setVisible(false);
bottomLayout.addComponent(resultsBrowser);
}
示例3: buildHlImage
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
private HorizontalLayout buildHlImage() {
// common part: create layout
hlImage = new HorizontalLayout();
hlImage.setImmediate(false);
hlImage.setWidth("-1px");
hlImage.setHeight("-1px");
hlImage.setMargin(false);
// embeddedImage
embeddedImage = new Embedded();
embeddedImage.setImmediate(false);
embeddedImage.setWidth("80px");
embeddedImage.setHeight("100px");
embeddedImage.setSource(new ThemeResource(
"images/imageNotAvailable.png"));
embeddedImage.setType(1);
embeddedImage.setMimeType("image/png");
hlImage.addComponent(embeddedImage);
// btnClearImage
btnClearImage = new Button();
btnClearImage.setCaption("X");
btnClearImage.setImmediate(true);
btnClearImage.setWidth("-1px");
btnClearImage.setHeight("-1px");
hlImage.addComponent(btnClearImage);
hlImage.setComponentAlignment(btnClearImage, new Alignment(9));
return hlImage;
}
示例4: buildHorizontalLayout_1
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
// common part: create layout
horizontalLayout_1 = new HorizontalLayout();
horizontalLayout_1.setImmediate(false);
horizontalLayout_1.setWidth("100.0%");
horizontalLayout_1.setHeight("-1px");
horizontalLayout_1.setMargin(false);
// logoField
logoField = new Embedded();
logoField.setCaption("Logo");
logoField.setImmediate(false);
logoField.setWidth("70px");
logoField.setHeight("60px");
logoField
.setSource(new ThemeResource("img/component/embedded_icon.png"));
logoField.setType(1);
logoField.setMimeType("image/png");
horizontalLayout_1.addComponent(logoField);
// activeField
activeField = new CheckBox();
activeField.setCaption("Activo");
activeField.setImmediate(false);
activeField.setWidth("-1px");
activeField.setHeight("-1px");
activeField.setRequired(true);
horizontalLayout_1.addComponent(activeField);
horizontalLayout_1
.setComponentAlignment(activeField, new Alignment(34));
return horizontalLayout_1;
}
示例5: buildErrorHeaderLayout
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildErrorHeaderLayout() {
// common part: create layout
errorHeaderLayout = new AbsoluteLayout();
errorHeaderLayout.setImmediate(false);
errorHeaderLayout.setWidth("100.0%");
errorHeaderLayout.setHeight("100px");
errorHeaderLayout.setMargin(false);
// imageErrorImage
imageErrorImage = new Embedded();
imageErrorImage.setImmediate(false);
imageErrorImage.setWidth("60px");
imageErrorImage.setHeight("60px");
imageErrorImage.setSource(new ThemeResource(
"images/exclamation.png"));
imageErrorImage.setType(1);
imageErrorImage.setMimeType("image/png");
errorHeaderLayout.addComponent(imageErrorImage,
"top:20.0px;left:20.0px;");
// errorHeaderTittleLabel
errorHeaderTittleLabel = new Label();
errorHeaderTittleLabel.setImmediate(false);
errorHeaderTittleLabel.setWidth("100.0%");
errorHeaderTittleLabel.setHeight("100.0%");
errorHeaderTittleLabel.setValue("Error Header");
errorHeaderLayout.addComponent(errorHeaderTittleLabel,
"top:20.0px;right:36.0px;bottom:20.0px;left:118.0px;");
return errorHeaderLayout;
}
示例6: buildMainLayout
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
// mainLayout.setWidth("982px");
mainLayout.setWidth("100%");
mainLayout.setHeight("143px");
// top-level component properties
// setWidth("982px");
setWidth("100.0%");
setHeight("143px");
// headerImage
headerImage = new Embedded();
headerImage.setImmediate(false);
headerImage.setWidth("982px");
headerImage.setHeight("143px");
headerImage.setSource(new ThemeResource(
"img/component/embedded_icon.png"));
headerImage.setType(1);
headerImage.setMimeType("image/png");
mainLayout.addComponent(headerImage, "top:0.0px;left:0.0px;");
return mainLayout;
}
示例7: buildMainLayout
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
// mainLayout.setWidth("982px");
mainLayout.setHeight("70px");
// top-level component properties
// setWidth("982px");
setWidth("100.0%");
setHeight("70px");
// footerImage
footerImage = new Embedded();
footerImage.setImmediate(false);
footerImage.setWidth("982px");
footerImage.setHeight("70px");
footerImage.setSource(new ThemeResource(
"img/component/embedded_icon.png"));
footerImage.setType(1);
footerImage.setMimeType("image/png");
mainLayout.addComponent(footerImage, "top:0.0px;left:0.0px;");
return mainLayout;
}
示例8: buildHorizontalLayout_1
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
// common part: create layout
horizontalLayout_1 = new HorizontalLayout();
horizontalLayout_1.setImmediate(false);
horizontalLayout_1.setWidth("100.0%");
horizontalLayout_1.setHeight("40px");
horizontalLayout_1.setMargin(false);
// embedded_1
embedded_1 = new Embedded();
embedded_1.setImmediate(false);
embedded_1.setWidth("30px");
embedded_1.setHeight("30px");
embedded_1.setSource(new ThemeResource("img/att.png"));
embedded_1.setType(1);
embedded_1.setMimeType("image/png");
horizontalLayout_1.addComponent(embedded_1);
horizontalLayout_1.setComponentAlignment(embedded_1, new Alignment(33));
// caption
caption = new Label();
caption.setImmediate(false);
caption.setWidth("-1px");
caption.setHeight("-1px");
caption.setValue("Apache OpenAZ Admin Console");
horizontalLayout_1.addComponent(caption);
horizontalLayout_1.setExpandRatio(caption, 1.0f);
horizontalLayout_1.setComponentAlignment(caption, new Alignment(33));
// labelWelcome
labelWelcome = new Label();
labelWelcome.setImmediate(false);
labelWelcome.setWidth("-1px");
labelWelcome.setHeight("40px");
labelWelcome.setValue("Label");
horizontalLayout_1.addComponent(labelWelcome);
horizontalLayout_1.setComponentAlignment(labelWelcome,
new Alignment(34));
return horizontalLayout_1;
}
示例9: buildHorizontalLayout_1
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
// common part: create layout
horizontalLayout_1 = new HorizontalLayout();
horizontalLayout_1.setImmediate(false);
horizontalLayout_1.setWidth("100.0%");
horizontalLayout_1.setHeight("40px");
horizontalLayout_1.setMargin(false);
// embedded_1
embedded_1 = new Embedded();
embedded_1.setImmediate(false);
embedded_1.setWidth("30px");
embedded_1.setHeight("30px");
embedded_1.setSource(new ThemeResource("img/att.png"));
embedded_1.setType(1);
embedded_1.setMimeType("image/png");
horizontalLayout_1.addComponent(embedded_1);
horizontalLayout_1.setComponentAlignment(embedded_1, new Alignment(33));
// caption
caption = new Label();
caption.setImmediate(false);
caption.setWidth("-1px");
caption.setHeight("-1px");
caption.setValue("AT&T Policy Engine Admin Console");
horizontalLayout_1.addComponent(caption);
horizontalLayout_1.setExpandRatio(caption, 1.0f);
horizontalLayout_1.setComponentAlignment(caption, new Alignment(33));
// labelWelcome
labelWelcome = new Label();
labelWelcome.setImmediate(false);
labelWelcome.setWidth("-1px");
labelWelcome.setHeight("40px");
labelWelcome.setValue("Label");
horizontalLayout_1.addComponent(labelWelcome);
horizontalLayout_1.setComponentAlignment(labelWelcome,
new Alignment(34));
return horizontalLayout_1;
}
示例10: buildVerticalLayoutSecurity
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildVerticalLayoutSecurity() {
// common part: create layout
verticalLayoutSecurity = new VerticalLayout();
verticalLayoutSecurity.setImmediate(false);
verticalLayoutSecurity.setWidth("100.0%");
verticalLayoutSecurity.setHeight("100.0%");
verticalLayoutSecurity.setMargin(true);
verticalLayoutSecurity.setSpacing(true);
// embedded_1
applicationLogoEmbedded = new Embedded();
applicationLogoEmbedded.setImmediate(false);
applicationLogoEmbedded.setWidth("342px");
applicationLogoEmbedded.setHeight("102px");
applicationLogoEmbedded.setType(1);
applicationLogoEmbedded.setMimeType("image/png");
verticalLayoutSecurity.addComponent(applicationLogoEmbedded);
// usernameField
usernameField = new TextField();
usernameField.setCaption("Nombre de usuario");
usernameField.setImmediate(false);
usernameField.setWidth("100.0%");
usernameField.setHeight("-1px");
usernameField.setNullRepresentation(" ");
verticalLayoutSecurity.addComponent(usernameField);
// passwordField
passwordField = new PasswordField();
passwordField.setCaption("Clave de acceso");
passwordField.setImmediate(false);
passwordField.setWidth("100.0%");
passwordField.setHeight("-1px");
verticalLayoutSecurity.addComponent(passwordField);
// demoField
demoField = new Label();
demoField.setWidth("-1px");
demoField.setHeight("-1px");
demoField.setVisible(false);
demoField.setContentMode(Label.CONTENT_XHTML);
verticalLayoutSecurity.addComponent(demoField);
verticalLayoutSecurity.setComponentAlignment(demoField, Alignment.TOP_CENTER);
// versionField
versionField = new Label();
versionField.setWidth("-1px");
versionField.setHeight("-1px");
versionField.setContentMode(Label.CONTENT_XHTML);
verticalLayoutSecurity.addComponent(versionField);
verticalLayoutSecurity.setComponentAlignment(versionField, Alignment.TOP_CENTER);
return verticalLayoutSecurity;
}
示例11: buildHeaderHorizontalLayout
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildHeaderHorizontalLayout() {
// common part: create layout
headerHorizontalLayout = new HorizontalLayout();
headerHorizontalLayout.setImmediate(false);
headerHorizontalLayout.setWidth("100.0%");
headerHorizontalLayout.setHeight("100.0%");
headerHorizontalLayout.setMargin(true);
// imgLogo
imgLogo = new Embedded();
imgLogo.setImmediate(false);
imgLogo.setWidth("75px");
imgLogo.setHeight("75px");
imgLogo.setSource(new ThemeResource("../konekti/images/thk_logo.png"));
imgLogo.setType(1);
imgLogo.setMimeType("image/png");
headerHorizontalLayout.addComponent(imgLogo);
headerHorizontalLayout
.setComponentAlignment(imgLogo, new Alignment(33));
// headerVerticalLayout
headerVerticalLayout = buildHeaderVerticalLayout();
headerHorizontalLayout.addComponent(headerVerticalLayout);
// lblUser
lblUser = new Label();
lblUser.setStyleName("header-logon");
lblUser.setImmediate(false);
lblUser.setWidth("-1px");
lblUser.setHeight("-1px");
lblUser.setValue("Usuario:");
headerHorizontalLayout.addComponent(lblUser);
headerHorizontalLayout.setExpandRatio(lblUser, 1.0f);
headerHorizontalLayout.setComponentAlignment(lblUser, new Alignment(6));
// btnClose
btnClose = new Button();
btnClose.setCaption("Cerrar Sesión");
btnClose.setImmediate(true);
btnClose.setWidth("-1px");
btnClose.setHeight("-1px");
headerHorizontalLayout.addComponent(btnClose);
headerHorizontalLayout
.setComponentAlignment(btnClose, new Alignment(9));
return headerHorizontalLayout;
}
示例12: buildMainLayout
import com.vaadin.ui.Embedded; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalLayout buildMainLayout() {
// common part: create layout
mainLayout = new HorizontalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("40px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("100.0%");
setHeight("40px");
// menuBarLayout
menuBarLayout = new MenuBar();
menuBarLayout.setImmediate(false);
menuBarLayout.setWidth("100.0%");
menuBarLayout.setHeight("100.0%");
mainLayout.addComponent(menuBarLayout);
mainLayout.setExpandRatio(menuBarLayout, 1.0f);
mainLayout.setComponentAlignment(menuBarLayout, new Alignment(33));
// closeSessionButton
closeSessionButton = new Button();
closeSessionButton.setCaption("Cerrar sesión");
closeSessionButton.setImmediate(false);
closeSessionButton.setWidth("-1px");
closeSessionButton.setHeight("-1px");
mainLayout.addComponent(closeSessionButton);
mainLayout.setComponentAlignment(closeSessionButton, new Alignment(33));
// messagePopupButton
messagePopupButton = new PopupButton("Mensajes");
messagePopupButton.setImmediate(false);
messagePopupButton.setWidth("-1px");
messagePopupButton.setHeight("-1px");
mainLayout.addComponent(messagePopupButton);
mainLayout.setComponentAlignment(messagePopupButton, new Alignment(33));
// helpPopupButton
helpPopupButton = new PopupButton("Ayuda");
helpPopupButton.setImmediate(false);
helpPopupButton.setWidth("-1px");
helpPopupButton.setHeight("-1px");
mainLayout.addComponent(helpPopupButton);
mainLayout.setComponentAlignment(helpPopupButton, new Alignment(33));
// profilePopupButton
profilePopupButton = new PopupButton("Usuario");
profilePopupButton.setImmediate(false);
profilePopupButton.setWidth("-1px");
profilePopupButton.setHeight("-1px");
mainLayout.addComponent(profilePopupButton);
mainLayout.setComponentAlignment(profilePopupButton, new Alignment(33));
// applicationLogoEmbedded
applicationLogoEmbedded = new Embedded();
applicationLogoEmbedded.setImmediate(false);
applicationLogoEmbedded.setWidth("150px");
applicationLogoEmbedded.setHeight("40px");
applicationLogoEmbedded.setType(1);
applicationLogoEmbedded.setMimeType("image/png");
mainLayout.addComponent(applicationLogoEmbedded);
mainLayout.setComponentAlignment(applicationLogoEmbedded, new Alignment(33));
return mainLayout;
}