Class Grid
java.lang.Object
ca.phon.ui.ipamap.io.Grid
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCell()Gets the value of the cell property.intGets the value of the cellheight property.intGets the value of the cellwidth property.intgetCols()Gets the value of the cols property.getName()Gets the value of the name property.intgetRows()Gets the value of the rows property.voidsetCellheight(Integer value) Sets the value of the cellheight property.voidsetCellwidth(Integer value) Sets the value of the cellwidth property.voidsetCols(int value) Sets the value of the cols property.voidSets the value of the name property.voidsetRows(int value) Sets the value of the rows property.
-
Field Details
-
cell
-
name
-
rows
protected int rows -
cols
protected int cols -
cellwidth
-
cellheight
-
-
Constructor Details
-
Grid
public Grid()
-
-
Method Details
-
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
setmethod 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
-
setName
-
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
-
getCellheight
public int getCellheight()Gets the value of the cellheight property.- Returns:
- possible object is
Integer
-
setCellheight
-