Columns extends AbstractCssProperty<Columns> implements StateChangeInformer<CssProperty> { public void setAsInitial() { setCssValue(INITIAL); } Columns();  Columns(final String cssValue);  Columns(final Columns columns); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override Columns setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); ColumnWidth getColumnWidth(); ColumnCount getColumnCount(); Columns setColumnWidth(final ColumnWidth columnWidth); Columns setColumnCount(final ColumnCount columnCount); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; }
@Test public void testSetAsInitial() { Columns columns = new Columns(); final ColumnWidth columnWidth = columns.getColumnWidth(); assertNotNull(columnWidth); final ColumnCount columnCount = columns.getColumnCount(); assertNotNull(columnWidth); assertTrue(columnWidth.isAlreadyInUse()); assertTrue(columnCount.isAlreadyInUse()); columns.setAsInitial(); assertEquals(Columns.INITIAL, columns.getCssValue()); assertNull(columns.getColumnWidth()); assertNull(columns.getColumnCount()); assertFalse(columnWidth.isAlreadyInUse()); assertFalse(columnCount.isAlreadyInUse()); }