Class LegacyCheckBoxTreeCellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, TreeCellRenderer

public class LegacyCheckBoxTreeCellRenderer extends JPanel implements TreeCellRenderer, Serializable
Deprecated.
This class is deprecated and provided to support compatibility with LegacyTristateCheckBox. We will not provide support for this class. You likely want to use CheckBoxTreeCellRenderer.

Renderers an item in a tree using JCheckBox.

See Also:
  • Field Details

    • _checkBox

      protected LegacyTristateCheckBox _checkBox
      Deprecated.
      The checkbox that is used to paint the check box in cell renderer
    • _emptyBox

      protected JComponent _emptyBox
      Deprecated.
    • _protoType

      protected JCheckBox _protoType
      Deprecated.
    • _actualTreeRenderer

      protected TreeCellRenderer _actualTreeRenderer
      Deprecated.
      The label which appears after the check box.
  • Constructor Details

    • LegacyCheckBoxTreeCellRenderer

      public LegacyCheckBoxTreeCellRenderer()
      Deprecated.
      Constructs a default renderer object for an item in a list.
    • LegacyCheckBoxTreeCellRenderer

      public LegacyCheckBoxTreeCellRenderer(TreeCellRenderer renderer)
      Deprecated.
    • LegacyCheckBoxTreeCellRenderer

      public LegacyCheckBoxTreeCellRenderer(TreeCellRenderer renderer, LegacyTristateCheckBox checkBox)
      Deprecated.
  • Method Details

    • createCheckBox

      protected LegacyTristateCheckBox createCheckBox()
      Deprecated.
      Create the check box in the cell.

      By default, it creates a LegacyTristateCheckBox and set opaque to false.

      Returns:
      the check box instance.
    • getActualTreeRenderer

      public TreeCellRenderer getActualTreeRenderer()
      Deprecated.
    • setActualTreeRenderer

      public void setActualTreeRenderer(TreeCellRenderer actualTreeRenderer)
      Deprecated.
    • getTreeCellRendererComponent

      public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
      Deprecated.
      Specified by:
      getTreeCellRendererComponent in interface TreeCellRenderer
    • updateCheckBoxState

      protected void updateCheckBoxState(LegacyTristateCheckBox checkBox, TreePath path, LegacyCheckBoxTreeSelectionModel selectionModel)
      Deprecated.
      Updates the check box state based on the selection in the selection model. By default, we check if the path is selected. If yes, we mark the check box as TristateCheckBox.SELECTED. If not, we will check if the path is partially selected, if yes, we set the check box as null or TristateCheckBox.DONT_CARE to indicate the path is partially selected. Otherwise, we set it to TristateCheckBox.NOT_SELECTED.
      Parameters:
      checkBox - the TristateCheckBox for the particular tree path.
      path - the tree path.
      selectionModel - the CheckBoxTreeSelectionModel.
    • getToolTipText

      public String getToolTipText(MouseEvent event)
      Deprecated.
      Overrides:
      getToolTipText in class JComponent