|
ExcelAccessor Bean Suite | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.excelaccessor.ExcelFormatModel
The ExcelFormatModel bean together with the ExcelFormat bean lets you to access and modify some of these properties from Java code. You can imagine the ExcelFormatModel bean as a two dimensional Java array. The elements of the array are ExcelFormat beans. You can fill the ExcelFormatModel bean from an Excel worksheet via the ExcelRange or ExcelCell beans, as these beans have an excelFormatModel property.
ExcelFormat,
ExcelCell,
ExcelRange, Serialized Form| Field Summary | |
protected java.beans.PropertyChangeSupport |
propertyChange
|
| Constructor Summary | |
ExcelFormatModel()
ExcelFormatModel constructor comment. |
|
| Method Summary | |
void |
addExcelFormat(int row,
int col,
ExcelFormat pExcelFormat)
Adds the argument ExcelFormat bean to the model to the specified position. |
void |
addExcelFormatListener(ExcelFormatListener newListener)
Adds an eventlistener to the bean. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field. |
void |
fireFilledModel(ExcelFormatEvent event)
Method to support listener events. |
void |
firePropertyChange(java.beans.PropertyChangeEvent evt)
The firePropertyChange method was generated to support the propertyChange field. |
void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
The firePropertyChange method was generated to support the propertyChange field. |
void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
The firePropertyChange method was generated to support the propertyChange field. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
The firePropertyChange method was generated to support the propertyChange field. |
void |
fireSavedModel(ExcelFormatEvent event)
Method to support listener events. |
java.lang.String |
getAboutThisBean()
Gets the aboutThisBean property (java.lang.String) value. |
java.awt.Color |
getColor(int row,
int col)
Delegates the getColor query to the ExcelFormat bean situated in the specified position. |
double |
getColorAsDouble(int row,
int col)
Delegates the getColorAsDouble query to the ExcelFormat bean situated in the specified position. |
int |
getColumnCount()
Gets the columncount property. |
ExcelFormat |
getExcelFormat(int row,
int col)
Gets the ExcelFormat bean situated in the specified position. |
int |
getFontStyle(int row,
int col)
Delegates the getFontStyle query to the ExcelFormat bean situated in the specified position. |
java.lang.String |
getName(int row,
int col)
Delegates the getName query to the ExcelFormat bean situated in the specified position. |
java.lang.String |
getNumberFormat(int row,
int col)
Delegates the getNumberFormat query to the ExcelFormat bean situated in the specified position. |
protected java.beans.PropertyChangeSupport |
getPropertyChange()
Accessor for the propertyChange field. |
int |
getRowCount()
Gets the rowcount property. |
int |
getSize(int row,
int col)
Delegates the getSize query to the ExcelFormat bean situated in the specified position. |
int |
getUnderline(int row,
int col)
Delegates the getUnderline query to the ExcelFormat bean situated in the specified position. |
boolean |
hasListeners(java.lang.String propertyName)
The hasListeners method was generated to support the propertyChange field. |
void |
initialize()
Initializes the model. |
boolean |
isBold(int row,
int col)
Delegates the isBold query to the ExcelFormat bean situated in the specified position. |
boolean |
isInitialized()
Checks whether the model is in initialized state. |
boolean |
isItalic(int row,
int col)
Delegates the isItalic query to the ExcelFormat bean situated in the specified position. |
void |
removeExcelFormatListener(ExcelFormatListener newListener)
Removes a listener from the bean. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field. |
void |
setAboutThisBean(java.lang.String aboutThisBean)
Sets the aboutThisBean property (java.lang.String) value. |
void |
setAllColor(java.awt.Color pColor)
Sets the color property for all the ExcelFormat beans contained by the model. |
void |
setAllColor(double pColorValue)
Sets the color property for all the ExcelFormat beans contained by the model. |
void |
setAllFontStyle(int pStyle)
Sets the fontstyle property for all the ExcelFormat beans contained by the model. |
void |
setAllName(java.lang.String pName)
Sets the name property for all the ExcelFormat beans contained by the model. |
void |
setAllNumberFormat(java.lang.String pNumberFormat)
Sets the numberformat property for all the ExcelFormat beans contained by the model. |
void |
setAllSize(int pSize)
Sets the size property for all the ExcelFormat beans contained by the model. |
void |
setAllUnderline(int pUnderline)
Sets the underline property for all the ExcelFormat beans contained by the model. |
void |
setBold(int row,
int col,
boolean pBold)
Delegates the setBold query to the ExcelFormat bean situated in the specified position. |
void |
setColor(int row,
int col,
java.awt.Color pColor)
Delegates the setColor query to the ExcelFormat bean situated in the specified position. |
void |
setColor(int row,
int col,
double pColorValue)
Delegates the setColor query to the ExcelFormat bean situated in the specified position. |
void |
setColumnCount(int newColumnCount)
Sets the columncount property. |
void |
setFontStyle(int row,
int col,
int pStyle)
Delegates the setFontStyle query to the ExcelFormat bean situated in the specified position. |
void |
setItalic(int row,
int col,
boolean pItalic)
Delegates the setItalic query to the ExcelFormat bean situated in the specified position. |
void |
setName(int row,
int col,
java.lang.String pName)
Delegates the setName query to the ExcelFormat bean situated in the specified position. |
void |
setNumberFormat(int row,
int col,
java.lang.String pNumberFormat)
Delegates the setNumberFormat query to the ExcelFormat bean situated in the specified position. |
void |
setRowCount(int newRowCount)
Sets the rowcount property. |
void |
setSize(int row,
int col,
int pSize)
Delegates the setSize query to the ExcelFormat bean situated in the specified position. |
void |
setUnderline(int row,
int col,
int pUnderline)
Delegates the setUnderline query to the ExcelFormat bean situated in the specified position. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected transient java.beans.PropertyChangeSupport propertyChange
| Constructor Detail |
public ExcelFormatModel()
| Method Detail |
public void addExcelFormat(int row,
int col,
ExcelFormat pExcelFormat)
throws ExcelAccessorException
row - intcol - intpExcelFormat - com.ibm.excelaccessor.ExcelFormatExcelAccessorException - If the row or col argument value is out
of the model dimension boundaries, the ExcelAccessorException is thrown.public void addExcelFormatListener(ExcelFormatListener newListener)
newListener - com.ibm.excelaccessor.ExcelFormatListenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
public void fireFilledModel(ExcelFormatEvent event)
event - com.ibm.excelaccessor.event.ExcelFormatEventpublic void firePropertyChange(java.beans.PropertyChangeEvent evt)
public void firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
public void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
public void firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
public void fireSavedModel(ExcelFormatEvent event)
event - com.ibm.excelaccessor.event.ExcelFormatEventpublic java.lang.String getAboutThisBean()
setAboutThisBean(java.lang.String)
public java.awt.Color getColor(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public double getColorAsDouble(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.public int getColumnCount()
public ExcelFormat getExcelFormat(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public int getFontStyle(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public java.lang.String getName(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public java.lang.String getNumberFormat(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.protected java.beans.PropertyChangeSupport getPropertyChange()
public int getRowCount()
public int getSize(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public int getUnderline(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.public boolean hasListeners(java.lang.String propertyName)
public void initialize()
throws ExcelAccessorException
ExcelAccessorException - Exception is thrown when the rowcount or
columncount value of the model is less than 1.
public boolean isBold(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public boolean isItalic(int row,
int col)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.public void removeExcelFormatListener(ExcelFormatListener newListener)
newListener - com.ibm.excelaccessor.ExcelFormatListenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
public void setAboutThisBean(java.lang.String aboutThisBean)
aboutThisBean - The new value for the property.getAboutThisBean()
public void setAllColor(double pColorValue)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the model is
not in initialized state.
public void setAllColor(java.awt.Color pColor)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the model is
not in initialized state.
public void setAllFontStyle(int pStyle)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the model is
not in initialized state.
public void setAllName(java.lang.String pName)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the model is
not in initialized state.
public void setAllNumberFormat(java.lang.String pNumberFormat)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the model is
not in initialized state.
public void setAllSize(int pSize)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the model is
not in initialized state.
public void setAllUnderline(int pUnderline)
throws ExcelAccessorException
row - intcol - intExcelAccessorException - Exception is thrown when the model is
not in initialized state.
public void setBold(int row,
int col,
boolean pBold)
throws ExcelAccessorException
row - intcol - intpBold - booleanExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public void setColor(int row,
int col,
double pColorValue)
throws ExcelAccessorException
row - intcol - intpColorValue - doubleExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public void setColor(int row,
int col,
java.awt.Color pColor)
throws ExcelAccessorException
row - intcol - intpColor - java.awt.ColorExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.public void setColumnCount(int newColumnCount)
newColumnCount - int
public void setFontStyle(int row,
int col,
int pStyle)
throws ExcelAccessorException
row - intcol - intpStyle - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public void setItalic(int row,
int col,
boolean pItalic)
throws ExcelAccessorException
row - intcol - intpItalic - booleanExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public void setName(int row,
int col,
java.lang.String pName)
throws ExcelAccessorException
row - intcol - intpName - java.lang.StringExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public void setNumberFormat(int row,
int col,
java.lang.String pNumberFormat)
throws ExcelAccessorException
row - intcol - intpNumberFormat - java.lang.StringExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.public void setRowCount(int newRowCount)
newRowCount - int
public void setSize(int row,
int col,
int pSize)
throws ExcelAccessorException
row - intcol - intpSize - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.
public void setUnderline(int row,
int col,
int pUnderline)
throws ExcelAccessorException
row - intcol - intpUnderline - intExcelAccessorException - Exception is thrown when the indexes are
out of the model boundaries or when the model is not in initialized state.public boolean isInitialized()
|
ExcelAccessor Bean Suite | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||