Java/Vaadin 10 Set FormLayout label of a Vertical layout
up vote
0
down vote
favorite
I want to set start at: of a Vertical Layout in the middle of DatePicker which in this case is the first component in VerticalLayout.
my code snippet
addFormItem(
new VerticalLayout() {{
add(
new DatePicker() {{
setRequired(true);
getBinder().forField(this)
....
}});
add(new Checkbox("Immediately start"));
}},
"Start at:"
);
I have tries a Div which wrap DatePicker and CheckBox. But checkbox only goes down when you screen is small but it will be displayed in the right of date picker if there is enough space.
Or Maybe another way to have the same behaviour..
java vaadin10
add a comment |
up vote
0
down vote
favorite
I want to set start at: of a Vertical Layout in the middle of DatePicker which in this case is the first component in VerticalLayout.
my code snippet
addFormItem(
new VerticalLayout() {{
add(
new DatePicker() {{
setRequired(true);
getBinder().forField(this)
....
}});
add(new Checkbox("Immediately start"));
}},
"Start at:"
);
I have tries a Div which wrap DatePicker and CheckBox. But checkbox only goes down when you screen is small but it will be displayed in the right of date picker if there is enough space.
Or Maybe another way to have the same behaviour..
java vaadin10
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to set start at: of a Vertical Layout in the middle of DatePicker which in this case is the first component in VerticalLayout.
my code snippet
addFormItem(
new VerticalLayout() {{
add(
new DatePicker() {{
setRequired(true);
getBinder().forField(this)
....
}});
add(new Checkbox("Immediately start"));
}},
"Start at:"
);
I have tries a Div which wrap DatePicker and CheckBox. But checkbox only goes down when you screen is small but it will be displayed in the right of date picker if there is enough space.
Or Maybe another way to have the same behaviour..
java vaadin10
I want to set start at: of a Vertical Layout in the middle of DatePicker which in this case is the first component in VerticalLayout.
my code snippet
addFormItem(
new VerticalLayout() {{
add(
new DatePicker() {{
setRequired(true);
getBinder().forField(this)
....
}});
add(new Checkbox("Immediately start"));
}},
"Start at:"
);
I have tries a Div which wrap DatePicker and CheckBox. But checkbox only goes down when you screen is small but it will be displayed in the right of date picker if there is enough space.
Or Maybe another way to have the same behaviour..
java vaadin10
java vaadin10
asked Nov 8 at 10:41
slawalata
5717
5717
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206022%2fjava-vaadin-10-set-formlayout-label-of-a-vertical-layout%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password