<p>The following changes can break backward compatibility in applications using an earlier version of Vaadin:</p>
<ul>
- <li>TBA</li>
+ <li>Table.setColumnCollapsed throws IllegalStateException instead of IllegalAccessException is collapsing is not allowed.</li>
</ul>
<h3>Change Log, Future Releases, and Upgrading</h3>
* the propertyID identifying the column.
* @param collapsed
* the desired collapsedness.
- * @throws IllegalAccessException
+ * @throws IllegalStateException
+ * if column collapsing is not allowed
*/
public void setColumnCollapsed(Object propertyId, boolean collapsed)
- throws IllegalAccessException {
+ throws IllegalStateException {
if (!isColumnCollapsingAllowed()) {
- throw new IllegalAccessException("Column collapsing not allowed!");
+ throw new IllegalStateException("Column collapsing not allowed!");
}
if (collapsed) {
}\r
\r
public void handleAction(Action action, Object sender, Object target) {\r
- try {\r
- table.setColumnCollapsed("Col2",\r
- !table.isColumnCollapsed("Col2"));\r
- } catch (IllegalAccessException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
- }\r
+ table.setColumnCollapsed("Col2",\r
+ !table.isColumnCollapsed("Col2"));\r
\r
}\r
});\r
Button hide = new Button("Collapse", new ClickListener() {\r
\r
public void buttonClick(ClickEvent event) {\r
- try {\r
- table.setColumnCollapsed(tf.getValue(), true);\r
- } catch (IllegalAccessException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
- }\r
+ table.setColumnCollapsed(tf.getValue(), true);\r
}\r
\r
});\r
Button show = new Button("Show", new ClickListener() {\r
\r
public void buttonClick(ClickEvent event) {\r
- try {\r
- table.setColumnCollapsed(tf.getValue(), false);\r
- } catch (IllegalAccessException e) {\r
- // TODO Auto-generated catch block\r
- e.printStackTrace();\r
- }\r
+ table.setColumnCollapsed(tf.getValue(), false);\r
}\r
\r
});\r