psmith      2003/12/12 02:31:37

  Modified:    src/java/org/apache/log4j/chainsaw
                        LogPanelPreferencePanel.java
  Log:
  inner class has been moved to top level.
  
  Revision  Changes    Path
  1.12      +0 -65     
jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogPanelPreferencePanel.java
  
  Index: LogPanelPreferencePanel.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogPanelPreferencePanel.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- LogPanelPreferencePanel.java      11 Dec 2003 22:31:29 -0000      1.11
  +++ LogPanelPreferencePanel.java      12 Dec 2003 10:31:37 -0000      1.12
  @@ -64,8 +64,6 @@
   import javax.swing.Box;
   import javax.swing.BoxLayout;
   import javax.swing.ButtonGroup;
  -import javax.swing.DefaultListModel;
  -import javax.swing.JCheckBox;
   import javax.swing.JFrame;
   import javax.swing.JLabel;
   import javax.swing.JList;
  @@ -73,9 +71,6 @@
   import javax.swing.JRadioButton;
   import javax.swing.JScrollPane;
   import javax.swing.JTextField;
  -import javax.swing.ListCellRenderer;
  -import javax.swing.UIManager;
  -import javax.swing.border.Border;
   import javax.swing.event.DocumentEvent;
   import javax.swing.event.DocumentListener;
   import javax.swing.tree.DefaultMutableTreeNode;
  @@ -91,15 +86,6 @@
    * @author Paul Smith
    */
   public class LogPanelPreferencePanel extends AbstractPreferencePanel {
  -     /**
  -      *
  -      */
  -     private class ModifiableListModel extends DefaultListModel {
  -             public void fireContentsChanged(){
  -                     fireContentsChanged(this,0, this.size());
  -             }
  -
  -     }
     private final LogPanelPreferenceModel committedPreferenceModel;
     private final LogPanelPreferenceModel uncommittedPreferenceModel =
       new LogPanelPreferenceModel();
  @@ -392,57 +378,6 @@
         add(Box.createVerticalGlue());
       }
   
  -  }
  -
  -     /**
  -      * A ListCellRenderer that display a check box if the value
  -      * has been "checked".
  -      * 
  -      * Borrowed heavily from the excellent book "Swing, 2nd Edition" by
  -      * Matthew Robinson  & Pavel Vorobiev.
  -      * 
  -      * @author Paul Smith
  -      *
  -      */
  -  public abstract class CheckListCellRenderer extends JCheckBox
  -    implements ListCellRenderer {
  -    private final Border noFocusBorder =
  -      BorderFactory.createEmptyBorder(1, 1, 1, 1);
  -
  -    /**
  -     *
  -     */
  -    public CheckListCellRenderer() {
  -      super();
  -      setOpaque(true);
  -      setBorder(noFocusBorder);
  -    }
  -
  -    /* (non-Javadoc)
  -     * @see 
javax.swing.ListCellRenderer#getListCellRendererComponent(javax.swing.JList, 
java.lang.Object, int, boolean, boolean)
  -     */
  -    public Component getListCellRendererComponent(
  -      JList list, Object value, int index, boolean isSelected,
  -      boolean cellHasFocus) {
  -      setText(value.toString());
  -      setBackground(
  -        isSelected ? list.getSelectionBackground() : list.getBackground());
  -      setForeground(
  -        isSelected ? list.getSelectionForeground() : list.getForeground());
  -      setFont(list.getFont());
  -      setBorder(
  -        cellHasFocus ? UIManager.getBorder("List.focusCellHighlightBorder")
  -                     : noFocusBorder);
  -
  -      setSelected(isSelected(value));
  -      return this;
  -    }
  -
  -     /**
  -      * @param value
  -      * @return
  -      */
  -     protected abstract boolean isSelected(Object value);
     }
   
        /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to