View Javadoc

1   /*
2    */
3   package org.apache.log4j.chainsaw;
4   
5   import javax.swing.JPanel;
6   
7   
8   /***
9    * All of the Preferences panels used in this class extend from
10   * this, it is used to provide standard L&F required by all.
11   * @author Paul Smith
12   *
13   */
14  public abstract class BasicPrefPanel extends JPanel {
15    private String title;
16  
17    protected BasicPrefPanel(String title) {
18      //    	setBorder(BorderFactory.createLineBorder(Color.red));
19      this.title = title;
20    }
21    /***
22     * @return Returns the title.
23     */
24    public final String getTitle()
25    {
26      return title;
27    }
28    /***
29     * @param title The title to set.
30     */
31    public final void setTitle(String title)
32    {
33      this.title = title;
34    }
35    
36    public String toString() {
37      return getTitle();
38    }
39  }