本文整理汇总了Java中com.vaadin.ui.ListSelect.setHeight方法的典型用法代码示例。如果您正苦于以下问题:Java ListSelect.setHeight方法的具体用法?Java ListSelect.setHeight怎么用?Java ListSelect.setHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.ListSelect
的用法示例。
在下文中一共展示了ListSelect.setHeight方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addList
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
private void addList( AbsoluteLayout mainLayout ) {
ListSelect list = new ListSelect();
list.setWidth( "100%" );
list.setHeight( "420px" );
list.setNullSelectionAllowed( false );
list.setImmediate( true );
list.addValueChangeListener( new Property.ValueChangeListener() {
@Override
public void valueChange( Property.ValueChangeEvent event ) {
Object value = event.getProperty().getValue();
if ( value != null ) {
close();
selectedUser = ( String ) value;
showUser( ( String ) value );
}
}
});
loadData( list );
mainLayout.addComponent( list, "left: 0px; top: 0px;" );
}
示例2: buildMainLayout
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// listSelectPDPGroup
listSelectPDPGroup = new ListSelect();
listSelectPDPGroup.setImmediate(false);
listSelectPDPGroup.setWidth("-1px");
listSelectPDPGroup.setHeight("-1px");
listSelectPDPGroup.setInvalidAllowed(false);
listSelectPDPGroup.setRequired(true);
mainLayout.addComponent(listSelectPDPGroup);
mainLayout.setExpandRatio(listSelectPDPGroup, 1.0f);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
示例3: buildMainLayout
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// horizontalLayout_2
horizontalLayout_2 = buildHorizontalLayout_2();
mainLayout.addComponent(horizontalLayout_2);
// listSelectAttribute
listSelectAttribute = new ListSelect();
listSelectAttribute.setCaption("Dictionary Attributes");
listSelectAttribute.setImmediate(false);
listSelectAttribute.setWidth("100.0%");
listSelectAttribute.setHeight("-1px");
listSelectAttribute.setInvalidAllowed(false);
listSelectAttribute.setRequired(true);
mainLayout.addComponent(listSelectAttribute);
mainLayout.setExpandRatio(listSelectAttribute, 1.0f);
return mainLayout;
}
示例4: createDashboardSelector
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
private void createDashboardSelector()
{
dashBoardSelector = new ListSelect();
dashBoardSelector.setHeight("100%");
dashBoardSelector.setWidth("300");
// dashBoardSelector.setItemCaptionPropertyId(Tblportallayout_.name.getName());
// dashBoardSelector.setItemCaptionMode(ItemCaptionMode.PROPERTY);
container = new BeanItemContainer<>(Tblportallayout.class);
loadDashboardList();
dashBoardSelector.setContainerDataSource(container);
dashBoardSelector.setNullSelectionAllowed(false);
dashBoardSelector.addValueChangeListener(new ValueChangeListener()
{
private static final long serialVersionUID = 2850017605363067882L;
@Override
public void valueChange(ValueChangeEvent event)
{
if (!loading)
{
Tblportallayout portalLayout = (Tblportallayout) event.getProperty().getValue();
if (portalLayout != null)
{
portalLayout = JpaBaseDao.getGenericDao(Tblportallayout.class).findByEntityId(portalLayout);
createDashboard(portalLayout);
closeToolBar();
}
}
}
});
}
示例5: buildMainLayout
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// butCrearCompetencia
butCrearCompetencia = new Button();
butCrearCompetencia.setCaption("Crear Competencia");
butCrearCompetencia.setImmediate(false);
butCrearCompetencia.setWidth("-1px");
butCrearCompetencia.setHeight("-1px");
mainLayout.addComponent(butCrearCompetencia, "top:40.0px;left:80.0px;");
// butEditarCompetencia
butEditarCompetencia = new Button();
butEditarCompetencia.setCaption("Editar Competencia");
butEditarCompetencia.setImmediate(false);
butEditarCompetencia.setWidth("-1px");
butEditarCompetencia.setHeight("-1px");
mainLayout.addComponent(butEditarCompetencia,
"top:40.0px;left:240.0px;");
// listSelect_1
listSelect_1 = new ListSelect();
listSelect_1.setImmediate(false);
listSelect_1.setWidth("500px");
listSelect_1.setHeight("200px");
mainLayout.addComponent(listSelect_1, "top:100.0px;left:80.0px;");
return mainLayout;
}
示例6: actualizar
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
public void actualizar( List<RolBO> roles )
{
for( RolBO rol : roles )
{
ListSelect l = new ListSelect( rol.getNombre( ) );
l.setWidth("100%");
l.setHeight("100%");
tstRoles.addTab( l );
}
mostrarEvaluadoresDisponibles( ( ListSelect )tstRoles.getSelectedTab( ) );
}
示例7: buildMainLayout
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// listSelectVariables
listSelectVariables = new ListSelect();
listSelectVariables.setCaption("Defined Variables");
listSelectVariables.setImmediate(false);
listSelectVariables.setWidth("100.0%");
listSelectVariables.setHeight("-1px");
mainLayout.addComponent(listSelectVariables);
mainLayout.setExpandRatio(listSelectVariables, 1.0f);
// textFieldVariable
textFieldVariable = new TextField();
textFieldVariable.setCaption("Variable");
textFieldVariable.setImmediate(false);
textFieldVariable.setWidth("-1px");
textFieldVariable.setHeight("-1px");
textFieldVariable.setInvalidAllowed(false);
textFieldVariable.setRequired(true);
textFieldVariable.setInputPrompt("Eg. \"12345\" or \"myVariable1\"");
mainLayout.addComponent(textFieldVariable);
mainLayout.setExpandRatio(textFieldVariable, 1.0f);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
示例8: buildMainLayout
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
// top-level component properties
setWidth("-1px");
setHeight("-1px");
// labelID
labelID = new Label();
labelID.setCaption("Policy Set ID");
labelID.setImmediate(false);
labelID.setWidth("100.0%");
labelID.setHeight("-1px");
labelID.setValue("Label");
mainLayout.addComponent(labelID);
// textFieldVersion
textFieldVersion = new TextField();
textFieldVersion.setCaption("Version");
textFieldVersion.setImmediate(false);
textFieldVersion
.setDescription("The format is numbers only separated by decimal point.");
textFieldVersion.setWidth("-1px");
textFieldVersion.setHeight("-1px");
textFieldVersion.setInvalidAllowed(false);
textFieldVersion.setRequired(true);
textFieldVersion.setInputPrompt("Eg. 1 or 1.0 or 1.0.0 etc.");
mainLayout.addComponent(textFieldVersion);
// listSelectAlgorithm
listSelectAlgorithm = new ListSelect();
listSelectAlgorithm.setCaption("Policy Combining Algorithm");
listSelectAlgorithm.setImmediate(false);
listSelectAlgorithm.setWidth("100.0%");
listSelectAlgorithm.setHeight("-1px");
listSelectAlgorithm.setInvalidAllowed(false);
listSelectAlgorithm.setRequired(true);
mainLayout.addComponent(listSelectAlgorithm);
// textAreaDescription
textAreaDescription = new TextArea();
textAreaDescription.setCaption("Description");
textAreaDescription.setImmediate(false);
textAreaDescription.setWidth("100.0%");
textAreaDescription.setHeight("-1px");
mainLayout.addComponent(textAreaDescription);
mainLayout.setExpandRatio(textAreaDescription, 1.0f);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Save");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
示例9: buildMainLayout
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// btnGuardar
btnGuardar = new Button();
btnGuardar.setCaption("Guardar");
btnGuardar.setImmediate(true);
btnGuardar.setWidth("-1px");
btnGuardar.setHeight("-1px");
mainLayout.addComponent(btnGuardar, "top:20.0px;left:10.0px;");
// lblEvaluadores
lblEvaluadores = new Label();
lblEvaluadores.setImmediate(false);
lblEvaluadores.setWidth("-1px");
lblEvaluadores.setHeight("-1px");
lblEvaluadores.setValue("Evaluadores:");
mainLayout.addComponent(lblEvaluadores, "top:80.0px;left:30.0px;");
// btnAgregar
btnAgregar = new Button();
btnAgregar.setCaption(">");
btnAgregar.setImmediate(true);
btnAgregar.setWidth("-1px");
btnAgregar.setHeight("-1px");
mainLayout.addComponent(btnAgregar, "top:160.0px;left:204.0px;");
// btnRemover
btnRemover = new Button();
btnRemover.setCaption("<");
btnRemover.setImmediate(true);
btnRemover.setWidth("-1px");
btnRemover.setHeight("-1px");
mainLayout.addComponent(btnRemover, "top:234.0px;left:204.0px;");
// lblRoles
lblRoles = new Label();
lblRoles.setImmediate(false);
lblRoles.setWidth("-1px");
lblRoles.setHeight("-1px");
lblRoles.setValue("Roles:");
mainLayout.addComponent(lblRoles, "top:80.0px;left:280.0px;");
// tstRoles
tstRoles = new TabSheet();
tstRoles.setImmediate(false);
tstRoles.setWidth("410px");
tstRoles.setHeight("246px");
mainLayout.addComponent(tstRoles, "top:114.0px;left:280.0px;");
// lstEvaluadores
lstEvaluadores = new ListSelect();
lstEvaluadores.setImmediate(false);
lstEvaluadores.setWidth("140px");
lstEvaluadores.setHeight("246px");
mainLayout.addComponent(lstEvaluadores, "top:114.0px;left:20.0px;");
return mainLayout;
}
示例10: buildMainLayout
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// lstResultados
lstResultados = new ListSelect();
lstResultados.setImmediate(false);
lstResultados.setWidth("420px");
lstResultados.setHeight("146px");
mainLayout.addComponent(lstResultados, "top:100.0px;left:40.0px;");
// lblResultados
lblResultados = new Label();
lblResultados.setImmediate(false);
lblResultados.setWidth("-1px");
lblResultados.setHeight("-1px");
lblResultados.setValue("Resultados de aprendizaje:");
mainLayout.addComponent(lblResultados, "top:22.0px;left:40.0px;");
// btnCrear
btnCrear = new Button();
btnCrear.setCaption("Crear Rúbria");
btnCrear.setImmediate(false);
btnCrear.setWidth("-1px");
btnCrear.setHeight("-1px");
mainLayout.addComponent(btnCrear, "top:60.0px;left:40.0px;");
// btnEditar
btnEditar = new Button();
btnEditar.setCaption("Editar Rúbrica");
btnEditar.setImmediate(false);
btnEditar.setWidth("-1px");
btnEditar.setHeight("-1px");
mainLayout.addComponent(btnEditar, "top:60.0px;left:160.0px;");
return mainLayout;
}
示例11: RUpload
import com.vaadin.ui.ListSelect; //导入方法依赖的package包/类
/**
* Contruct an upload element for R (implemented as Vaadin CustomComponent).
*
* @param caption
* String caption or null
* @param R
* the corresponding RSession to upload the files to
*/
public RUpload(String caption, RContainer R) {
/* Create the RUpload custom component */
super.setSizeUndefined();
root = new Panel(caption);
root.setWidth("90ex");
setCompositionRoot(root);
HorizontalLayout hbox = new HorizontalLayout();
hbox.setWidth("100%");
/* Create the Upload component */
final Upload upload = new Upload("Choose file", this);
upload.setButtonCaption("Submit");
/* Listen for events regarding the success of upload. */
upload.addSucceededListener(this);
upload.addFailedListener(this);
hbox.addComponent(upload);
Label hfill = new Label();
hbox.addComponent(hfill);
hbox.setExpandRatio(hfill, 1.0f);
remove = new Button("Remove", new Button.ClickListener() {
private static final long serialVersionUID = 1L;
public void buttonClick(ClickEvent event) {
String current = getSelection();
if (current != null) {
/* Delete the file */
delete(current);
/* Update the lists and the notification area */
int i = fileNames.indexOf(current);
fileNames.remove(i);
mimeTypes.remove(i);
uploadedFiles.removeItem(current);
/* Gray out the button, if this was the last item */
if (fileNames.isEmpty()) {
remove.setEnabled(false);
}
}
}
});
hbox.addComponent(remove);
remove.setEnabled(false);
hbox.setComponentAlignment(remove, Alignment.BOTTOM_RIGHT);
/* Notification area for already uploaded files */
uploadedFiles = new ListSelect("Already submitted files");
uploadedFiles.setMultiSelect(false);
uploadedFiles.setNullSelectionAllowed(false);
uploadedFiles.setHeight("4em");
uploadedFiles.setWidth("100%");
// Changed for Vaadin 7, not tested!!
VerticalLayout vbox = new VerticalLayout();
vbox.addComponent(hbox);
vbox.addComponent(uploadedFiles);
root.setContent(vbox);
/* Bind the component to the given R session */
this.R = R;
}