Package ca.phon.ui.ipamap.io
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCell()
Gets the value of the cell property.int
Gets the value of the cellheight property.int
Gets the value of the cellwidth property.int
getCols()
Gets the value of the cols property.getName()
Gets the value of the name property.int
getRows()
Gets the value of the rows property.void
setCellheight
(Integer value) Sets the value of the cellheight property.void
setCellwidth
(Integer value) Sets the value of the cellwidth property.void
setCols
(int value) Sets the value of the cols property.void
Sets the value of the name property.void
setRows
(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
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
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value
- allowed object isString
-
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
Sets the value of the cellwidth property.- Parameters:
value
- allowed object isInteger
-
getCellheight
public int getCellheight()Gets the value of the cellheight property.- Returns:
- possible object is
Integer
-
setCellheight
Sets the value of the cellheight property.- Parameters:
value
- allowed object isInteger
-