/** * Sets the delegate. If the * delegate is null, the default is created via the list's factory method. * Updates the folder/leaf icons. * * THINK: how to update? always override with this.icons, only * if renderer's icons are null, update this icons if they are not, * update all if only one is != null.... ?? * * @param delegate the delegate to use, if null the list's default is * created and used. */ public void setDelegateRenderer(TreeCellRenderer delegate) { if (delegate == null) { delegate = createDefaultCellRenderer(); } this.delegate = delegate; updateIcons(); }
/** * Sets the delegate. If the * delegate is null, the default is created via the list's factory method. * Updates the folder/leaf icons. * * THINK: how to update? always override with this.icons, only * if renderer's icons are null, update this icons if they are not, * update all if only one is != null.... ?? * * @param delegate the delegate to use, if null the list's default is * created and used. */ public void setDelegateRenderer(TreeCellRenderer delegate) { if (delegate == null) { delegate = createDefaultCellRenderer(); } this.delegate = delegate; updateIcons(); }
/** * Sets the delegate. If the * delegate is null, the default is created via the list's factory method. * Updates the folder/leaf icons. * * THINK: how to update? always override with this.icons, only * if renderer's icons are null, update this icons if they are not, * update all if only one is != null.... ?? * * @param delegate the delegate to use, if null the list's default is * created and used. */ public void setDelegateRenderer(TreeCellRenderer delegate) { if (delegate == null) { delegate = createDefaultCellRenderer(); } this.delegate = delegate; updateIcons(); }
/** * Sets the delegate. If the * delegate is null, the default is created via the list's factory method. * Updates the folder/leaf icons. * * THINK: how to update? always override with this.icons, only * if renderer's icons are null, update this icons if they are not, * update all if only one is != null.... ?? * * @param delegate the delegate to use, if null the list's default is * created and used. */ public void setDelegateRenderer(TreeCellRenderer delegate) { if (delegate == null) { delegate = createDefaultCellRenderer(); } this.delegate = delegate; updateIcons(); }
/** * Sets the delegate. If the * delegate is null, the default is created via the list's factory method. * Updates the folder/leaf icons. * * THINK: how to update? always override with this.icons, only * if renderer's icons are null, update this icons if they are not, * update all if only one is != null.... ?? * * @param delegate the delegate to use, if null the list's default is * created and used. */ public void setDelegateRenderer(TreeCellRenderer delegate) { if (delegate == null) { delegate = createDefaultCellRenderer(); } this.delegate = delegate; updateIcons(); }
setCellRenderer(createDefaultCellRenderer());
setCellRenderer(createDefaultCellRenderer());
setCellRenderer(createDefaultCellRenderer());
setCellRenderer(createDefaultCellRenderer());
setCellRenderer(createDefaultCellRenderer());