Skip to content

Removed usage of deprecated ColumnLayout constructors #1736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public WMultiFileWidgetAjaxExample() {
paramsLayout.addField("Readonly", readonly);

WPanel split = new WPanel();
split.setLayout(new ColumnLayout(new int[]{50, 50}, 12, 0));
split.setLayout(new ColumnLayout(new int[]{50, 50}, Size.LARGE, Size.ZERO));
split.setHtmlClass(HtmlClassProperties.RESPOND);
add(split);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private void addResponsiveExample() {
+ "The columns have width and alignment and there is also a hgap and a vgap."));
WPanel panel = new WPanel();
panel.setLayout(new ColumnLayout(new int[]{33, 33, 33},
new Alignment[]{Alignment.LEFT, Alignment.CENTER, Alignment.RIGHT}, 12, 18));
new Alignment[]{Alignment.LEFT, Alignment.CENTER, Alignment.RIGHT}, Size.LARGE, Size.XL));
panel.setHtmlClass(HtmlClassProperties.RESPOND);
add(panel);
panel.add(new BoxComponent("Left"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public class TreePicker extends WContainer {
/**
* column hgap.
*/
private static final int COL_HGAP = 12;
private static final Size COL_HGAP = Size.LARGE;
/**
* column vgap.
*/
private static final int COL_VGAP = 0;
private static final Size COL_VGAP = Size.ZERO;

/**
* Creates a TreePicker.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public void executeOnValid(final ActionEvent event) {

// Table layouts
root.add(tablePanel);
tableLayout.setLayout(new ColumnLayout(new int[]{50, 50}, 6, 6));
tableLayout.setLayout(new ColumnLayout(new int[]{50, 50}, Size.MEDIUM, Size.MEDIUM));
tableLayout.setMargin(new Margin(Size.LARGE, null, Size.LARGE, null));
tableLayout.setVisible(false);
tablePanel.add(tableLayout);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private void addAntiPatternExamples() {
WTextField myField = new WTextField();
WLabel myFieldLabel = new WLabel("I am not the label for my nested text field", myField);
nestingErrorPanel = new WPanel();
nestingErrorPanel.setLayout(new ColumnLayout(new int[]{50, 50}, 12, 6));
nestingErrorPanel.setLayout(new ColumnLayout(new int[]{50, 50}, Size.LARGE, Size.MEDIUM));
errorLayoutPanel.add(nestingErrorPanel);
nestingErrorPanel.add(myFieldLabel);
nestingErrorPanel.add(myField);
Expand Down