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
|
public class Preference extends PopupPanel {
public Preference() {
super(true);
// PopupPanel is a SimplePanel, so you have to set it's widget property to
// whatever you want its contents to be.
setWidget(new Label("Preferences"));
final AbsolutePanel absolutePanel = new AbsolutePanel();
setWidget(absolutePanel);
absolutePanel.setSize("100%", "100%");
final Label codecLabel = new Label("Codec");
absolutePanel.add(codecLabel, 52, 79);
final TextBox textBox = new TextBox();
absolutePanel.add(textBox, 154, 79);
final Button button = new Button();
absolutePanel.add(button, 138, 259);
button.addClickListener(new ClickListener() {
public void onClick(final Widget sender) {
Window.alert("fermerpopupPanel");
}
});
button.setText("Valider");
}
} |
Partager