Java Code Examples for com.vaadin.ui.HorizontalLayout.setCaption()

The following are Jave code examples for showing how to use setCaption() of the com.vaadin.ui.HorizontalLayout class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: osc-core   File: ImportApplianceSoftwareVersionWindow.java   Source Code and License Vote up 5 votes
@Override
public void populateForm() {
    this.form.setMargin(true);
    this.form.setSizeUndefined();

    this.uploader = new ApplianceUploader();
    this.uploader.setSizeFull();
    this.uploader.getUpload().addSucceededListener(getUploadSucceededListener());

    HorizontalLayout layout = new HorizontalLayout();
    layout.addComponent(this.uploader);
    layout.setCaption(VmidcMessages.getString(VmidcMessages_.UPLOAD_APPLIANCE_CAPTION));

    this.form.addComponent(layout);
}
 
Example 2
Project: osc-core   File: PasswordWindow.java   Source Code and License Vote up 5 votes
@Override
public void populateForm() throws Exception {
	this.form.setMargin(true);
       this.form.setSizeUndefined();

       HorizontalLayout layout = new HorizontalLayout();
       this.passwordField = new PasswordField();
       this.passwordField.setRequired(true);

       layout.addComponent(this.passwordField);
       layout.setCaption(VmidcMessages.getString(VmidcMessages_.PASSWORD_CAPTION));

       this.form.addComponent(layout);
}