org.netbeans.swing.outline 1.20

org.netbeans.swing.outline
Interface CheckRenderDataProvider

All Superinterfaces:
RenderDataProvider

public interface CheckRenderDataProvider
extends RenderDataProvider

An extension to RenderDataProvider adding a possibility to display a check box in the tree portion an Outline, next to the label.

Since:
1.4

Method Summary
 boolean isCheckable(Object o)
          Tell the renderer to display the check-box.
 boolean isCheckEnabled(Object o)
          Provide the enabled state of the check-box.
 Boolean isSelected(Object o)
          Provide the selected state of the check-box.
 void setSelected(Object o, Boolean selected)
          Called by the renderer when the check-box gets selected/unselected
 
Methods inherited from interface org.netbeans.swing.outline.RenderDataProvider
getBackground, getDisplayName, getForeground, getIcon, getTooltipText, isHtmlDisplayName
 

Method Detail

isCheckable

boolean isCheckable(Object o)
Tell the renderer to display the check-box.

Parameters:
o - the tree object
Returns:
true if the check-box should be displayed, false otherwise.

isCheckEnabled

boolean isCheckEnabled(Object o)
Provide the enabled state of the check-box.

Parameters:
o - the tree object
Returns:
true if the check-box should be enabled, false otherwise.

isSelected

Boolean isSelected(Object o)
Provide the selected state of the check-box.

Parameters:
o - the tree object
Returns:
true if the check-box should be selected, false if it should be unselected and null if the state is unknown.

setSelected

void setSelected(Object o,
                 Boolean selected)
Called by the renderer when the check-box gets selected/unselected

Parameters:
o - the tree object
selected - true if the check-box was selected, false if the check-box was unselected.

org.netbeans.swing.outline 1.20

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.