Class TreeTableCellEditor.TreeTableTextField

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants
Enclosing class:
TreeTableCellEditor

static class TreeTableCellEditor.TreeTableTextField extends JTextField
Component used by TreeTableCellEditor. The only thing this does is to override the reshape method, and to ALWAYS make the x location be offset.
  • Field Details

    • iconWidth

      private int iconWidth
    • column

      private int column
    • row

      private int row
    • table

      private JTable table
    • tree

      private JTree tree
  • Constructor Details

    • TreeTableTextField

      TreeTableTextField()
  • Method Details

    • init

      void init(int row, int column, JTable table, JTree tree, Component editorComponent)
    • updateIconWidth

      private void updateIconWidth(Component treeComponent)
      Parameters:
      treeComponent -
    • reshape

      public void reshape(int x, int y, int width, int height)

      Overridden to place the textfield in the node content boundaries, leaving the icon to the renderer.

      PENDING JW: insets?

      Overrides:
      reshape in class JComponent