Interface CellRendererReader

All Known Implementing Classes:
BasicCellRendererReader

@RunsInCurrentThread public interface CellRendererReader
Understands reading the value of a Component that used as a cell renderer.

Note: methods in this interface are not executed in the event dispatch thread (EDT.) Clients are responsible for invoking them in the EDT.

  • Method Summary

    Modifier and Type
    Method
    Description
    Reads the value in the given cell renderer component, or returns null if the component is not recognized by this reader.
  • Method Details

    • valueFrom

      String valueFrom(Component c)
      Reads the value in the given cell renderer component, or returns null if the component is not recognized by this reader.

      Note: Implementations of this method should not use the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Parameters:
      c - the given cell renderer component.
      Returns:
      the value of the given Component, or null if the renderer belongs to an unknown component type.