|
||||||||||
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 Object
public Object getValue()
Cell
getValue
in interface Cell
public void setValue(Object value)
setValue
in interface Cell
value
- to assign to cellpublic int getColSpan()
Cell
getColSpan
in interface Cell
public void setColSpan(int value)
Cell
setColSpan
in interface Cell
value
- a number of spanned columnspublic int getRowSpan()
Cell
getRowSpan
in interface Cell
public void setRowSpan(int value)
Cell
setRowSpan
in interface Cell
value
- a number of spanned rowspublic Cell getOwner()
Cell
getOwner
in interface Cell
public void setOwner(Cell newOwner)
Cell
setOwner
in interface Cell
newOwner
- the owner of the cell, can be nullpublic boolean isChild()
Cell
isChild
in interface Cell
public boolean isSpan()
isSpan
in interface Cell
public boolean isNull()
Cell
isNull
in interface Cell
public Object getStyleId()
Cell
getStyleId
in interface Cell
public void setStyleId(Object index)
Cell
setStyleId
in interface Cell
index
- the CellStyle's idpublic int getExtFlags()
getExtFlags
in interface Cell
public void setExtFlags(int i)
setExtFlags
in interface Cell
public boolean isNotPrint()
Cell
isNotPrint
in interface Cell
public void setNotPrint(boolean b)
Cell
setNotPrint
in interface Cell
b
- if true the cell is not printedpublic Object clone()
clone
in interface Cell
clone
in class Object
public String getText()
getText
in interface Cell
public void setIcon(Icon icon)
Cell
setIcon
in interface Cell
icon
- the cell iconpublic void setImage(Image image)
Cell
setImage
in interface Cell
image
- the cell imagepublic Icon getIcon()
getIcon
in interface Cell
Cell.getIcon()
public Picture getPicture()
Cell
getPicture
in interface Cell
public void setPicture(Picture picture)
Cell
setPicture
in interface Cell
picture
- the cell picturepublic boolean isScaleIcon()
Cell
isScaleIcon
in interface Cell
public void setScaleIcon(boolean scale)
Cell
setScaleIcon
in interface Cell
scale
- scaleIcon propertypublic void setImageFormat(String format)
setImageFormat
in interface Cell
format
- the image's format e.g. "bmp", "png", "jpg"public String getImageFormat()
getImageFormat
in interface Cell
public String getContentType()
getContentType
in interface Cell
public void clear()
Cell
clear
in interface Cell
public Cell.Type getValueType()
getValueType
in interface Cell
public void setValueType(Cell.Type valueType)
setValueType
in interface Cell
valueType
- new type of the cell's valuepublic boolean isEditable()
Cell
isEditable
in interface Cell
public void setEditable(boolean b)
Cell
setEditable
in interface Cell
b
- if true the cell is editable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |