Skip to content

Commit

Permalink
v0.2.1: Add deprecated methods for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bekce committed Mar 16, 2017
1 parent c4c91bc commit a64d975
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.sebworks</groupId>
<artifactId>vaadstrap</artifactId>
<packaging>jar</packaging>
<version>0.2</version>
<version>0.2.1</version>
<name>VaadStrap</name>
<description>Bootstrap Grid System for Vaadin</description>

Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/sebworks/vaadstrap/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ public Row addNewRow() {
return row;
}

/**
* @deprecated use {@link #addNewRow()}
*/
@Deprecated
public Row addRow() {
return addNewRow();
}

/**
* Add given row to the container
* @param row row to add
Expand Down
15 changes: 12 additions & 3 deletions src/main/java/com/sebworks/vaadstrap/Row.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,19 @@ public Col addNewCol(Style... styles) {
}

/**
* Add given col to this row
* @param col col to add
* @return this
* @deprecated use {@link #addNewCol(Style...)}
*/
@Deprecated
public Col addCol(Style... styles) {
return addNewCol(styles);
}


/**
* Add given col to this row
* @param col col to add
* @return this
*/
public Row addCol(Col col){
addComponent(col);
return this;
Expand Down

0 comments on commit a64d975

Please sign in to comment.