View Javadoc
1   /*******************************************************************************
2    * Copyhacked (H) 2012-2025.
3    * This program and the accompanying materials
4    * are made available under no term at all, use it like
5    * you want, but share and discuss it
6    * every time possible with every body.
7    *
8    * Contributors:
9    *      ron190 at ymail dot com - initial implementation
10   *******************************************************************************/
11  package com.jsql.view.swing.text;
12  
13  import javax.swing.*;
14  
15  /**
16   * Decorate a swing component.
17   * @param <T> Component like JTextField or JTextArea to decorate
18   */
19  @FunctionalInterface
20  interface DecoratorJComponent<T extends JComponent> {
21      
22      /**
23       * Get back the decorated component.
24       * @return Proxyfied component
25       */
26      T getProxy();
27  }