|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cell
The interface of the cell
Nested Class Summary | |
---|---|
static class |
Cell.Type
|
Field Summary | |
---|---|
static String |
EMPTY_STRING
|
static long |
serialVersionUID
|
static String |
TEXT_HTML
|
static String |
TEXT_PLAIN
|
Method Summary | |
---|---|
void |
clear()
Sets all properties by default |
Object |
clone()
|
int |
getColSpan()
Returns a number of spanned columns for the cell |
String |
getContentType()
|
int |
getExtFlags()
|
Icon |
getIcon()
Deprecated. use getPicture() |
String |
getImageFormat()
|
Cell |
getOwner()
Returns the owner of the cell, can be null |
Picture |
getPicture()
Returns the picture of the cell |
int |
getRowSpan()
Returns a number of spanned rows for the cell |
Object |
getStyleId()
Key of the CellStyle in the map of the CellStyles |
String |
getText()
|
Object |
getValue()
Returns the value for the cell |
Cell.Type |
getValueType()
|
boolean |
isChild()
Returns true if the cell has an owner |
boolean |
isEditable()
Default true |
boolean |
isNotPrint()
Returns true if the cell is not printed |
boolean |
isNull()
Determines if the cell is null |
boolean |
isScaleIcon()
Determines whether the icons are scaled |
boolean |
isSpan()
|
void |
setColSpan(int value)
Sets a number of spanned columns for the cell |
void |
setEditable(boolean b)
Sets the editable property, which must be false to disable edit of the cells |
void |
setExtFlags(int i)
|
void |
setIcon(Icon icon)
Sets an icon to the cell |
void |
setImage(Image image)
Sets an icon to the cell |
void |
setImageFormat(String format)
|
void |
setNotPrint(boolean b)
Sets the notPrint property, which must be true to disable printing of the cells |
void |
setOwner(Cell cell)
Sets the owner of the cell |
void |
setPicture(Picture picture)
Sets an picture to the cell |
void |
setRowSpan(int value)
Sets a number of spanned rows for the cell |
void |
setScaleIcon(boolean scale)
Sets a scale of the icon. |
void |
setStyleId(Object id)
Sets the CellStyle's id for the cell |
void |
setValue(Object value)
|
void |
setValueType(Cell.Type valueType)
|
Field Detail |
---|
static final long serialVersionUID
static final String TEXT_PLAIN
static final String TEXT_HTML
static final String EMPTY_STRING
Method Detail |
---|
Object getValue()
void setValue(Object value)
value
- to assign to cellString getText()
Object getStyleId()
void setStyleId(Object id)
id
- the CellStyle's idint getRowSpan()
void setRowSpan(int value)
value
- a number of spanned rowsint getColSpan()
void setColSpan(int value)
value
- a number of spanned columnsboolean isChild()
boolean isSpan()
Cell getOwner()
void setOwner(Cell cell)
cell
- the owner of the cell, can be nullboolean isNull()
int getExtFlags()
void setExtFlags(int i)
boolean isNotPrint()
void setNotPrint(boolean b)
b
- if true the cell is not printedObject clone()
void setIcon(Icon icon)
icon
- the cell iconvoid setImage(Image image)
image
- the cell imageIcon getIcon()
Picture getPicture()
void setPicture(Picture picture)
picture
- the cell picturevoid setScaleIcon(boolean scale)
scale
- scaleIcon propertyboolean isScaleIcon()
void setImageFormat(String format)
format
- the image's format e.g. "bmp", "png", "jpg"String getImageFormat()
String getContentType()
void clear()
Cell.Type getValueType()
void setValueType(Cell.Type valueType)
valueType
- new type of the cell's valueboolean isEditable()
void setEditable(boolean b)
b
- if true the cell is editable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |