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


Java PasswordField.setHeight方法代码示例

本文整理汇总了Java中com.vaadin.ui.PasswordField.setHeight方法的典型用法代码示例。如果您正苦于以下问题:Java PasswordField.setHeight方法的具体用法?Java PasswordField.setHeight怎么用?Java PasswordField.setHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.ui.PasswordField的用法示例。


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

示例1: buildMainLayout

import com.vaadin.ui.PasswordField; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("-1px");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(false);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// comboBoxConnectionType
	comboBoxConnectionType = new ComboBox();
	comboBoxConnectionType.setCaption("Type of SQL Connection");
	comboBoxConnectionType.setImmediate(false);
	comboBoxConnectionType.setWidth("-1px");
	comboBoxConnectionType.setHeight("-1px");
	mainLayout.addComponent(comboBoxConnectionType);
	
	// textFieldDataSource
	textFieldDataSource = new TextField();
	textFieldDataSource.setCaption("Data Source");
	textFieldDataSource.setImmediate(false);
	textFieldDataSource.setWidth("-1px");
	textFieldDataSource.setHeight("-1px");
	mainLayout.addComponent(textFieldDataSource);
	mainLayout.setExpandRatio(textFieldDataSource, 1.0f);
	
	// comboBoxSQLDriver
	comboBoxSQLDriver = new ComboBox();
	comboBoxSQLDriver.setCaption("JDBC Driver");
	comboBoxSQLDriver.setImmediate(false);
	comboBoxSQLDriver.setWidth("-1px");
	comboBoxSQLDriver.setHeight("-1px");
	mainLayout.addComponent(comboBoxSQLDriver);
	mainLayout.setExpandRatio(comboBoxSQLDriver, 1.0f);
	
	// textFieldConnectionURL
	textFieldConnectionURL = new TextField();
	textFieldConnectionURL.setCaption("Connection URL");
	textFieldConnectionURL.setImmediate(false);
	textFieldConnectionURL.setWidth("-1px");
	textFieldConnectionURL.setHeight("-1px");
	mainLayout.addComponent(textFieldConnectionURL);
	mainLayout.setExpandRatio(textFieldConnectionURL, 1.0f);
	
	// textFieldUser
	textFieldUser = new TextField();
	textFieldUser.setCaption("User");
	textFieldUser.setImmediate(false);
	textFieldUser.setWidth("-1px");
	textFieldUser.setHeight("-1px");
	mainLayout.addComponent(textFieldUser);
	mainLayout.setExpandRatio(textFieldUser, 1.0f);
	
	// textFieldPassword
	textFieldPassword = new PasswordField();
	textFieldPassword.setCaption("Password");
	textFieldPassword.setImmediate(false);
	textFieldPassword.setWidth("-1px");
	textFieldPassword.setHeight("-1px");
	mainLayout.addComponent(textFieldPassword);
	mainLayout.setExpandRatio(textFieldPassword, 1.0f);
	
	// buttonTest
	buttonTest = new Button();
	buttonTest.setCaption("Test Connection");
	buttonTest.setImmediate(true);
	buttonTest.setWidth("-1px");
	buttonTest.setHeight("-1px");
	mainLayout.addComponent(buttonTest);
	mainLayout.setComponentAlignment(buttonTest, new Alignment(48));
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:79,代码来源:SQLPIPConfigurationComponent.java

示例2: buildMainLayout

import com.vaadin.ui.PasswordField; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("700px");
	mainLayout.setHeight("440px");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("700px");
	setHeight("440px");
	
	// activeField
	activeField = new CheckBox();
	activeField.setCaption("Activo");
	activeField.setImmediate(false);
	activeField.setWidth("-1px");
	activeField.setHeight("-1px");
	activeField.setTabIndex(1);
	activeField.setRequired(true);
	mainLayout.addComponent(activeField, "top:14.0px;left:507.0px;");
	
	// commentField
	commentField = new TextField();
	commentField.setCaption("Comentario");
	commentField.setImmediate(false);
	commentField.setWidth("540px");
	commentField.setHeight("160px");
	commentField.setTabIndex(3);
	mainLayout.addComponent(commentField, "top:100.0px;left:20.0px;");
	
	// passwordField
	passwordField = new PasswordField();
	passwordField.setCaption("Clave");
	passwordField.setImmediate(false);
	passwordField.setWidth("160px");
	passwordField.setHeight("-1px");
	passwordField.setTabIndex(2);
	passwordField.setRequired(true);
	mainLayout.addComponent(passwordField, "top:56.0px;left:20.0px;");
	
	// usernameField
	usernameField = new TextField();
	usernameField.setCaption("Nombre usuario");
	usernameField.setImmediate(false);
	usernameField.setWidth("160px");
	usernameField.setHeight("-1px");
	usernameField.setRequired(true);
	mainLayout.addComponent(usernameField, "top:17.0px;left:20.0px;");
	
	// rolesField
	rolesField = new Table();
	rolesField.setCaption("Roles");
	rolesField.setImmediate(false);
	rolesField.setWidth("501px");
	rolesField.setHeight("140px");
	mainLayout.addComponent(rolesField, "top:281.0px;left:19.0px;");
	
	// brnAdd
	brnAdd = new Button();
	brnAdd.setCaption("+");
	brnAdd.setImmediate(true);
	brnAdd.setWidth("-1px");
	brnAdd.setHeight("-1px");
	mainLayout.addComponent(brnAdd, "top:283.0px;left:525.0px;");
	
	// btnRemove
	btnRemove = new Button();
	btnRemove.setCaption("-");
	btnRemove.setImmediate(true);
	btnRemove.setWidth("-1px");
	btnRemove.setHeight("-1px");
	mainLayout.addComponent(btnRemove, "top:320.0px;left:525.0px;");
	
	return mainLayout;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:78,代码来源:UserViewForm.java

示例3: buildVerticalLayoutSecurity

import com.vaadin.ui.PasswordField; //导入方法依赖的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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:56,代码来源:LoginViewForm.java

示例4: buildVerticalLayout_1

import com.vaadin.ui.PasswordField; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
	// common part: create layout
	verticalPasswordLayout = new VerticalLayout();
	verticalPasswordLayout.setImmediate(false);
	verticalPasswordLayout.setWidth("100.0%");
	verticalPasswordLayout.setHeight("100.0%");
	verticalPasswordLayout.setMargin(true);
	verticalPasswordLayout.setSpacing(true);
	
	// currentPasswordField
	currentPasswordField = new PasswordField();
	currentPasswordField.setCaption("Contraseña actual");
	currentPasswordField.setImmediate(true);
	currentPasswordField.setWidth("100.0%");
	currentPasswordField.setHeight("-1px");
	verticalPasswordLayout.addComponent(currentPasswordField);
	
	// newPasswordField
	newPasswordField = new PasswordField();
	newPasswordField.setCaption("Nueva Contraseña");
	newPasswordField.setImmediate(true);
	newPasswordField.setWidth("100.0%");
	newPasswordField.setHeight("-1px");
	verticalPasswordLayout.addComponent(newPasswordField);
	
	// confirmPasswordField
	confirmPasswordField = new PasswordField();
	confirmPasswordField.setCaption("Confirmar contraseña");
	confirmPasswordField.setImmediate(true);
	confirmPasswordField.setWidth("100.0%");
	confirmPasswordField.setHeight("-1px");
	confirmPasswordField.addListener(new ValueChangeListener() {	
		@Override
		public void valueChange(ValueChangeEvent event) {
			if (confirmPasswordField.getValue() != null)
				applyPasswordChangebutton.setEnabled(true);
			else
				applyPasswordChangebutton.setEnabled(false);
		}
	});
	
	verticalPasswordLayout.addComponent(confirmPasswordField);
	
	// horizontalLayout_1
	horizontalPasswordLayout = buildHorizontalLayout_1();
	verticalPasswordLayout.addComponent(horizontalPasswordLayout);
	verticalPasswordLayout.setExpandRatio(horizontalPasswordLayout, 1.0f);
	verticalPasswordLayout.setComponentAlignment(horizontalPasswordLayout,
			new Alignment(6));
	
	return verticalPasswordLayout;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:54,代码来源:PasswordChangeViewForm.java

示例5: buildMainLayout

import com.vaadin.ui.PasswordField; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("340px");
	mainLayout.setHeight("180px");
	
	// top-level component properties
	setWidth("340px");
	setHeight("180px");
	
	// usernameField
	fieldUsuario = new TextField();
	fieldUsuario.setImmediate(false);
	fieldUsuario.setWidth("210px");
	fieldUsuario.setHeight("-1px");
	mainLayout.addComponent(fieldUsuario, "top:20.0px;left:100.0px;");
	
	// usernameLabel
	labelUsuario = new Label();
	labelUsuario.setImmediate(false);
	labelUsuario.setWidth("-1px");
	labelUsuario.setHeight("-1px");
	labelUsuario.setValue("Username:");
	mainLayout.addComponent(labelUsuario, "top:22.0px;left:20.0px;");
	
	// passwordField
	fieldContraseña = new PasswordField();
	fieldContraseña.setImmediate(false);
	fieldContraseña.setWidth("210px");
	fieldContraseña.setHeight("-1px");
	mainLayout.addComponent(fieldContraseña, "top:56.0px;left:100.0px;");
	
	// passwordLabel
	labelContraseña = new Label();
	labelContraseña.setImmediate(false);
	labelContraseña.setWidth("-1px");
	labelContraseña.setHeight("-1px");
	labelContraseña.setValue("Password:");
	mainLayout.addComponent(labelContraseña, "top:60.0px;left:20.0px;");
	
	// loginButton
	botonIniciarSesion = new Button();
	botonIniciarSesion.setCaption("Sign in");
	botonIniciarSesion.setImmediate(true);
	botonIniciarSesion.setWidth("-1px");
	botonIniciarSesion.setHeight("-1px");
	mainLayout.addComponent(botonIniciarSesion, "top:94.0px;left:209.0px;");
	
	// errorLabel
	labelError = new Label();
	labelError.setImmediate(false);
	labelError.setWidth("-1px");
	labelError.setHeight("-1px");
	mainLayout.addComponent(labelError, "top:142.0px;left:20.0px;");
	
	return mainLayout;
}
 
开发者ID:unicesi,项目名称:academ,代码行数:60,代码来源:FormularioInicioSesion.java

示例6: buildMainLayout

import com.vaadin.ui.PasswordField; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("340px");
	mainLayout.setHeight("180px");
	
	// top-level component properties
	setWidth("340px");
	setHeight("180px");
	
	// fieldUsuario
	fieldUsuario = new TextField();
	fieldUsuario.setImmediate(false);
	fieldUsuario.setWidth("210px");
	fieldUsuario.setHeight("-1px");
	mainLayout.addComponent(fieldUsuario, "top:20.0px;left:100.0px;");
	
	// labelUsuario
	labelUsuario = new Label();
	labelUsuario.setImmediate(false);
	labelUsuario.setWidth("-1px");
	labelUsuario.setHeight("-1px");
	labelUsuario.setValue("Usuario:");
	mainLayout.addComponent(labelUsuario, "top:22.0px;left:20.0px;");
	
	// fieldPassword
	fieldContraseña = new PasswordField();
	fieldContraseña.setImmediate(false);
	fieldContraseña.setWidth("210px");
	fieldContraseña.setHeight("-1px");
	mainLayout.addComponent(fieldContraseña, "top:56.0px;left:100.0px;");
	
	// labelContrasea
	labelPassword = new Label();
	labelPassword.setImmediate(false);
	labelPassword.setWidth("-1px");
	labelPassword.setHeight("-1px");
	labelPassword.setValue("Contraseña:");
	mainLayout.addComponent(labelPassword, "top:60.0px;left:20.0px;");
	
	// botonIniciarSesion
	buttonIniciarSesion = new Button();
	buttonIniciarSesion.setCaption("Iniciar Sesión");
	buttonIniciarSesion.setImmediate(true);
	buttonIniciarSesion.setWidth("101px");
	buttonIniciarSesion.setHeight("-1px");
	mainLayout.addComponent(buttonIniciarSesion, "top:94.0px;right:30.0px;");
	
	// labelError
	labelError = new Label();
	labelError.setImmediate(false);
	labelError.setWidth("-1px");
	labelError.setHeight("-1px");
	labelError.setValue("Label");
	mainLayout.addComponent(labelError, "top:142.0px;left:20.0px;");
	
	return mainLayout;
}
 
开发者ID:unicesi,项目名称:academ,代码行数:61,代码来源:FormularioInicioSesion.java


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