Clover coverage report -
Coverage timestamp: Sun Apr 18 2004 21:32:30 EDT
file stats: LOC: 84   Methods: 4
NCLOC: 22   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ListDialog.java - 0% 0% 0%
coverage
 1   
 /*
 2   
  * SimplyHTML, a word processor based on Java, HTML and CSS
 3   
  * Copyright (C) 2002 Ulrich Hilger
 4   
  *
 5   
  * This program is free software; you can redistribute it and/or
 6   
  * modify it under the terms of the GNU General Public License
 7   
  * as published by the Free Software Foundation; either version 2
 8   
  * of the License, or (at your option) any later version.
 9   
  *
 10   
  * This program is distributed in the hope that it will be useful,
 11   
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12   
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13   
  * GNU General Public License for more details.
 14   
  *
 15   
  * You should have received a copy of the GNU General Public License
 16   
  * along with this program; if not, write to the Free Software
 17   
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 18   
  */
 19   
 
 20   
 import java.awt.Frame;
 21   
 import java.awt.Container;
 22   
 import java.awt.BorderLayout;
 23   
 import javax.swing.text.AttributeSet;
 24   
 
 25   
 /**
 26   
  * A dialog for showing and manipulating list format.
 27   
  *
 28   
  * @author Ulrich Hilger
 29   
  * @author Light Development
 30   
  * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
 31   
  * @author <a href="mailto:info@lightdev.com">info@lightdev.com</a>
 32   
  * @author published under the terms and conditions of the
 33   
  *      GNU General Public License,
 34   
  *      for details see file gpl.txt in the distribution
 35   
  *      package of this software
 36   
  *
 37   
  * @version stage 11, April 27, 2003
 38   
  */
 39   
 
 40   
 public class ListDialog extends DialogShell {
 41   
 
 42   
   private ListPanel listPanel;
 43   
 
 44  0
   public ListDialog(Frame parent, String title) {
 45  0
     super(parent, title);
 46   
 
 47   
     // create a ListPanel and keep a reference for later use
 48  0
     listPanel = new ListPanel();
 49   
 
 50   
     // add to content pane of DialogShell
 51  0
     Container contentPane = super.getContentPane();
 52  0
     contentPane.add(listPanel, BorderLayout.CENTER);
 53   
 
 54   
     // cause optimal placement of all elements
 55  0
     pack();
 56   
   }
 57   
 
 58   
   /**
 59   
    * set the attributes this ListDialog shall represent
 60   
    *
 61   
    * @param a  the set of attributes to display list attributes from
 62   
    */
 63  0
   public void setListAttributes(AttributeSet a) {
 64  0
     listPanel.setValue(a);
 65   
   }
 66   
 
 67   
   /**
 68   
    * get the list attributes the ListDialog currently is set to.
 69   
    *
 70   
    * @return the set of list attributes this ListDialog currently represents
 71   
    */
 72  0
   public AttributeSet getListAttributes() {
 73  0
     return listPanel.getValue();
 74   
   }
 75   
 
 76   
   /**
 77   
    * get the list tag currently selected in this <code>ListDialog</code>
 78   
    *
 79   
    * @return the list tag currently selected or null, if no list is selected
 80   
    */
 81  0
   public String getListTag() {
 82  0
     return listPanel.getListTag();
 83   
   }
 84   
 }