Class JTreeFormatter

All Implemented Interfaces:
ComponentFormatter

public class JTreeFormatter extends ComponentFormatterTemplate
Understands a formatter for JTrees.
  • Field Details

    • EMPTY

      private static final String[] EMPTY
    • SELECTION_MODES

      private static final IntEnum SELECTION_MODES
  • Constructor Details

    • JTreeFormatter

      public JTreeFormatter()
  • Method Details

    • doFormat

      protected String doFormat(Component c)
      Returns the String representation of the given Component, which should be a JTree (or subclass.)
      Specified by:
      doFormat in class ComponentFormatterTemplate
      Parameters:
      c - the given Component.
      Returns:
      the String representation of the given JTree.
    • selectionPaths

      private String[] selectionPaths(JTree tree)
    • selectionMode

      private String selectionMode(JTree tree)
    • targetType

      public Class<? extends Component> targetType()
      Indicates that this formatter supports JTree only.
      Returns:
      JTree.class.