blob: a8dabb8652e41c68f7431ac260f03b3aa756279e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
@VaadinApache2LicenseForJavaFiles@
*/
package com.vaadin.terminal.gwt.client;
import com.google.gwt.user.client.ui.FlowPanel;
public class VCaptionWrapper extends FlowPanel {
public static final String CLASSNAME = "v-captionwrapper";
VCaption caption;
ComponentConnector wrappedConnector;
/**
* Creates a new caption wrapper panel.
*
* @param toBeWrapped
* paintable that the caption is associated with, not null
* @param client
* ApplicationConnection
*/
public VCaptionWrapper(ComponentConnector toBeWrapped,
ApplicationConnection client) {
caption = new VCaption(toBeWrapped, client);
add(caption);
wrappedConnector = toBeWrapped;
add(wrappedConnector.getWidget());
setStyleName(CLASSNAME);
}
public void updateCaption() {
caption.updateCaption();
}
public ComponentConnector getWrappedConnector() {
return wrappedConnector;
}
}
|