Class Grid

java.lang.Object
ca.phon.ui.ipamap.io.Grid

public class Grid extends Object
A grid of IPA 'buttons'

Java class for grid complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="grid">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://phon.ling.mun.ca/ns/ipamap}cell" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="rows" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
       <attribute name="cols" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
       <attribute name="cellwidth" type="{http://phon.ling.mun.ca/ns/ipamap}posInt" default="10" />
       <attribute name="cellheight" type="{http://phon.ling.mun.ca/ns/ipamap}posInt" default="10" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • cell

      protected List<Cell> cell
    • name

      protected String name
    • rows

      protected int rows
    • cols

      protected int cols
    • cellwidth

      protected Integer cellwidth
    • cellheight

      protected Integer cellheight
  • Constructor Details

    • Grid

      public Grid()
  • Method Details

    • getCell

      public List<Cell> getCell()
      Gets the value of the cell property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the cell property.

      For example, to add a new item, do as follows:

          getCell().add(newItem);
       

      Objects of the following type(s) are allowed in the list Cell

    • getName

      public String getName()
      Gets the value of the name property.
      Returns:
      possible object is String
    • setName

      public void setName(String value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is String
    • getRows

      public int getRows()
      Gets the value of the rows property.
    • setRows

      public void setRows(int value)
      Sets the value of the rows property.
    • getCols

      public int getCols()
      Gets the value of the cols property.
    • setCols

      public void setCols(int value)
      Sets the value of the cols property.
    • getCellwidth

      public int getCellwidth()
      Gets the value of the cellwidth property.
      Returns:
      possible object is Integer
    • setCellwidth

      public void setCellwidth(Integer value)
      Sets the value of the cellwidth property.
      Parameters:
      value - allowed object is Integer
    • getCellheight

      public int getCellheight()
      Gets the value of the cellheight property.
      Returns:
      possible object is Integer
    • setCellheight

      public void setCellheight(Integer value)
      Sets the value of the cellheight property.
      Parameters:
      value - allowed object is Integer