View Javadoc

1   package fr.ove.openmath.jome.model;
2   
3   import java.util.*;
4   import fr.ove.openmath.jome.model.*;
5   import fr.ove.openmath.jome.model.events.ModelEvent;
6   
7   /***
8   *
9   * @author © 1999 DIRAT Laurent
10  * @version 2.0  28/06/1999
11  */
12  public class Liste extends NaryOperator2 {
13      /***
14      * Is the "enclosure" of the list visible ? 
15      */
16      private boolean isVisible = true;
17      
18      /***
19      * Is the list displayed vertically or horizontally ?
20      */
21      private boolean isVertical = false;
22      
23      /***
24      * The Constructor.
25      * 
26      */
27      public Liste() {
28          setTheOperator("{");
29          setEnding("}");
30      }
31      
32      /***
33      * Returns <CODE>true</CODE> if the curly brackets around the elements have to be displayed.
34      * <CODE>false</CODE> otherwise.
35      */
36      public boolean isVisible() {
37          return isVisible;
38      }
39      
40      /***
41      * Sets if the curly brackets around the elements have to be displayed.
42      * @param isVisible <CODE>true</CODE> if we want it. <CODE>false</CODE> otherwise.
43      */
44      public void setIsVisible(boolean isVisible) {
45          this.isVisible = isVisible;
46      }
47  
48      /***
49      * Returns <CODE>true</CODE> if the list is displayed vertically.
50      * <CODE>false</CODE> otherwise.
51      */
52      public boolean isVertical() {
53          return isVertical;
54      }
55      
56      /***
57      * Sets if the list is displayed vertically.
58      * @param isVertical <CODE>true</CODE> if we want it. <CODE>false</CODE> otherwise.
59      */
60      public void setIsVertical(boolean isVertical) {
61          this.isVertical = isVertical;
62      }
63  }