|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdbreport.model.ReportCell
public class ReportCell
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jdbreport.model.Cell |
|---|
Cell.Type |
| Field Summary | |
|---|---|
static HashMap<Class<?>,CellValueInfo> |
defaultValuesByClass
|
| Fields inherited from interface jdbreport.model.Cell |
|---|
EMPTY_STRING, TEXT_HTML, TEXT_PLAIN |
| Constructor Summary | |
|---|---|
ReportCell()
Creates a new instance of ReportCell |
|
ReportCell(Object value)
|
|
| 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 getPricture() |
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 |
static void |
setDefaultCellValueClass(Class<?> valueClass,
Class<?> cellValueClass,
String rendererClass,
String editorClass)
Adds or removes default cell values |
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 newOwner)
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 index)
Sets the CellStyle's id for the cell |
void |
setValue(Object value)
|
void |
setValueType(Cell.Type valueType)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static HashMap<Class<?>,CellValueInfo> defaultValuesByClass
| Constructor Detail |
|---|
public ReportCell()
public ReportCell(Object value)
| Method Detail |
|---|
public static void setDefaultCellValueClass(Class<?> valueClass,
Class<?> cellValueClass,
String rendererClass,
String editorClass)
valueClass - cellValueClass - editorClass - rendererClass - public String toString()
toString in class Objectpublic Object getValue()
Cell
getValue in interface Cellpublic void setValue(Object value)
setValue in interface Cellvalue - to assign to cellpublic int getColSpan()
Cell
getColSpan in interface Cellpublic void setColSpan(int value)
Cell
setColSpan in interface Cellvalue - a number of spanned columnspublic int getRowSpan()
Cell
getRowSpan in interface Cellpublic void setRowSpan(int value)
Cell
setRowSpan in interface Cellvalue - a number of spanned rowspublic Cell getOwner()
Cell
getOwner in interface Cellpublic void setOwner(Cell newOwner)
Cell
setOwner in interface CellnewOwner - the owner of the cell, can be nullpublic boolean isChild()
Cell
isChild in interface Cellpublic boolean isSpan()
isSpan in interface Cellpublic boolean isNull()
Cell
isNull in interface Cellpublic Object getStyleId()
Cell
getStyleId in interface Cellpublic void setStyleId(Object index)
Cell
setStyleId in interface Cellindex - the CellStyle's idpublic int getExtFlags()
getExtFlags in interface Cellpublic void setExtFlags(int i)
setExtFlags in interface Cellpublic boolean isNotPrint()
Cell
isNotPrint in interface Cellpublic void setNotPrint(boolean b)
Cell
setNotPrint in interface Cellb - if true the cell is not printedpublic Object clone()
clone in interface Cellclone in class Objectpublic String getText()
getText in interface Cellpublic void setIcon(Icon icon)
Cell
setIcon in interface Cellicon - the cell iconpublic void setImage(Image image)
Cell
setImage in interface Cellimage - the cell imagepublic Icon getIcon()
getIcon in interface CellCell.getIcon()public Picture getPicture()
Cell
getPicture in interface Cellpublic void setPicture(Picture picture)
Cell
setPicture in interface Cellpicture - the cell picturepublic boolean isScaleIcon()
Cell
isScaleIcon in interface Cellpublic void setScaleIcon(boolean scale)
Cell
setScaleIcon in interface Cellscale - scaleIcon propertypublic void setImageFormat(String format)
setImageFormat in interface Cellformat - the image's format e.g. "bmp", "png", "jpg"public String getImageFormat()
getImageFormat in interface Cellpublic String getContentType()
getContentType in interface Cellpublic void clear()
Cell
clear in interface Cellpublic Cell.Type getValueType()
getValueType in interface Cellpublic void setValueType(Cell.Type valueType)
setValueType in interface CellvalueType - new type of the cell's valuepublic boolean isEditable()
Cell
isEditable in interface Cellpublic void setEditable(boolean b)
Cell
setEditable in interface Cellb - if true the cell is editable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||