422 } 423 424 @Override public StyleableProperty<Number> getStyleableProperty(TreeTableRow<?> n) { 425 final TreeTableRowSkin<?> skin = (TreeTableRowSkin<?>) n.getSkin(); 426 return (StyleableProperty<Number>)(WritableValue<Number>)skin.indentProperty(); 427 } 428 }; 429 430 private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES; 431 static { 432 final List<CssMetaData<? extends Styleable, ?>> styleables = 433 new ArrayList<CssMetaData<? extends Styleable, ?>>(CellSkinBase.getClassCssMetaData()); 434 styleables.add(INDENT); 435 STYLEABLES = Collections.unmodifiableList(styleables); 436 } 437 } 438 439 /** 440 * Returns the CssMetaData associated with this class, which may include the 441 * CssMetaData of its superclasses. 442 */ 443 public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { 444 return StyleableProperties.STYLEABLES; 445 } 446 447 /** 448 * {@inheritDoc} 449 */ 450 @Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { 451 return getClassCssMetaData(); 452 } 453 454 455 /** {@inheritDoc} */ 456 @Override protected Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) { 457 final TreeTableView<T> treeTableView = getSkinnable().getTreeTableView(); 458 switch (attribute) { 459 case SELECTED_ITEMS: { 460 // FIXME this could be optimised to iterate over cellsMap only 461 // (selectedCells could be big, cellsMap is much smaller) | 422 } 423 424 @Override public StyleableProperty<Number> getStyleableProperty(TreeTableRow<?> n) { 425 final TreeTableRowSkin<?> skin = (TreeTableRowSkin<?>) n.getSkin(); 426 return (StyleableProperty<Number>)(WritableValue<Number>)skin.indentProperty(); 427 } 428 }; 429 430 private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES; 431 static { 432 final List<CssMetaData<? extends Styleable, ?>> styleables = 433 new ArrayList<CssMetaData<? extends Styleable, ?>>(CellSkinBase.getClassCssMetaData()); 434 styleables.add(INDENT); 435 STYLEABLES = Collections.unmodifiableList(styleables); 436 } 437 } 438 439 /** 440 * Returns the CssMetaData associated with this class, which may include the 441 * CssMetaData of its superclasses. 442 * @return the CssMetaData associated with this class, which may include the 443 * CssMetaData of its superclasses 444 */ 445 public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { 446 return StyleableProperties.STYLEABLES; 447 } 448 449 /** 450 * {@inheritDoc} 451 */ 452 @Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { 453 return getClassCssMetaData(); 454 } 455 456 457 /** {@inheritDoc} */ 458 @Override protected Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) { 459 final TreeTableView<T> treeTableView = getSkinnable().getTreeTableView(); 460 switch (attribute) { 461 case SELECTED_ITEMS: { 462 // FIXME this could be optimised to iterate over cellsMap only 463 // (selectedCells could be big, cellsMap is much smaller) |