summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorKnoobie <Knoobie@gmx.de>2017-09-21 10:52:41 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-21 11:52:41 +0300
commita166d6f52bf99d7616959f8e16b3972ed6b074d0 (patch)
tree7433ab3b971fec5316761077d5542fcf0c6cad54 /client
parent867006d2f81aa813c36f614fc6f1b98a5937c5f3 (diff)
downloadvaadin-framework-a166d6f52bf99d7616959f8e16b3972ed6b074d0.tar.gz
vaadin-framework-a166d6f52bf99d7616959f8e16b3972ed6b074d0.zip
Add Upload#setButtonStyleName (#10044)
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/upload/UploadConnector.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/upload/UploadConnector.java b/client/src/main/java/com/vaadin/client/ui/upload/UploadConnector.java
index 73c672c370..5b5c4a60e4 100644
--- a/client/src/main/java/com/vaadin/client/ui/upload/UploadConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/upload/UploadConnector.java
@@ -78,6 +78,10 @@ public class UploadConnector extends AbstractComponentConnector
if (uidl.hasAttribute("buttoncaption")) {
getWidget().submitButton
.setText(uidl.getStringAttribute("buttoncaption"));
+ if (uidl.hasAttribute("buttonstylename")) {
+ getWidget().submitButton
+ .setStyleName(uidl.getStringAttribute("buttonstylename"));
+ }
getWidget().submitButton.setVisible(true);
} else {
getWidget().submitButton.setVisible(false);