org.openide.explorer 6.22.1 1

org.openide.explorer.view
Interface CheckableNode


public interface CheckableNode

Node service that can be registered into Node's lookup, which adds a possibility to display a check box next to the node display name in the views that support it.

Since:
6.18

Method Summary
 boolean isCheckable()
          Tell the view to display a check-box for this node.
 boolean isCheckEnabled()
          Provide the enabled state of the check-box.
 Boolean isSelected()
          Provide the selected state of the check-box.
 void setSelected(Boolean selected)
          Called by the view when the check-box gets selected/unselected
 

Method Detail

isCheckable

boolean isCheckable()
Tell the view to display a check-box for this node.

Returns:
true if the check-box should be displayed, false otherwise.

isCheckEnabled

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

Returns:
true if the check-box should be enabled, false otherwise.

isSelected

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

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(Boolean selected)
Called by the view when the check-box gets selected/unselected

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

org.openide.explorer 6.22.1 1

Built on September 10 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.