上传按钮不会渲染我希望vaadin

发布于 2025-02-10 20:39:00 字数 1101 浏览 3 评论 0原文

我不明白为什么上传按钮不在新行中。

这是我的代码 (主要从vaadin.com/docs/v7/framework/components/components-upload复制)

@SuppressWarnings("serial")
public class ApplicationLayout extends VerticalLayout implements View {   

    public ApplicationLayout() {
        
        
        ImageUploader receiver = new ImageUploader();
        Upload upload = new Upload(null, receiver);
        upload.setButtonCaption("Inizio Upload");
        upload.addSucceededListener(receiver);
        
        final HorizontalLayout uploadInfoLayout = new HorizontalLayout();
        uploadInfoLayout.addComponent(upload);
        
        addComponent(uploadInfoLayout);
        
    }

这就是现在的样子:

“在此处输入映像说明”

是否有一种将按钮“ inizio上传”下载下载的方法文本,如下图中:

”在此处输入图像描述”

谢谢

I've cannot understand why the upload button is not in a new line;

this is my code
(copied mostly from vaadin.com/docs/v7/framework/components/components-upload)

@SuppressWarnings("serial")
public class ApplicationLayout extends VerticalLayout implements View {   

    public ApplicationLayout() {
        
        
        ImageUploader receiver = new ImageUploader();
        Upload upload = new Upload(null, receiver);
        upload.setButtonCaption("Inizio Upload");
        upload.addSucceededListener(receiver);
        
        final HorizontalLayout uploadInfoLayout = new HorizontalLayout();
        uploadInfoLayout.addComponent(upload);
        
        addComponent(uploadInfoLayout);
        
    }

This is how is it looks like now:

enter image description here

Is there a way to put the button "Inizio Upload" below the text, like in the following picture:

enter image description here

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文