mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
Tree: support wide cell renderer (issue #922)
This commit is contained in:
@@ -29,19 +29,37 @@ public class FlatTree
|
||||
implements FlatComponentExtension, FlatStyleableComponent
|
||||
{
|
||||
/**
|
||||
* Returns if the tree shows a wide selection
|
||||
* Returns whether tree shows a wide selection
|
||||
*/
|
||||
public boolean isWideSelection() {
|
||||
return getClientPropertyBoolean( TREE_WIDE_SELECTION, "Tree.wideSelection" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets if the tree shows a wide selection
|
||||
* Specifies whether tree shows a wide selection
|
||||
*/
|
||||
public void setWideSelection( boolean wideSelection ) {
|
||||
putClientProperty( TREE_WIDE_SELECTION, wideSelection );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether tree uses a wide cell renderer.
|
||||
*
|
||||
* @since 3.6
|
||||
*/
|
||||
public boolean isWideCellRenderer() {
|
||||
return getClientPropertyBoolean( TREE_WIDE_CELL_RENDERER, "Tree.wideCellRenderer" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies whether tree uses a wide cell renderer.
|
||||
*
|
||||
* @since 3.6
|
||||
*/
|
||||
public void setWideCellRenderer( boolean wideCellRenderer ) {
|
||||
putClientProperty( TREE_WIDE_CELL_RENDERER, wideCellRenderer );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether tree item selection is painted. Default is {@code true}.
|
||||
* If set to {@code false}, then the tree cell renderer is responsible for painting selection.
|
||||
|
||||
Reference in New Issue
Block a user