public class ViewSizing extends java.lang.Object implements Mergeable
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_columnWidth |
protected java.util.BitSet |
m_propertyUsedFlags |
protected int |
m_rowHeight |
| Constructor and Description |
|---|
ViewSizing()
Constructor that uses a default row height and column width.
|
ViewSizing(int rowHeight,
int columnWidth)
Constructor that specifies a particular row height and column width.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearUsedBits()
Sets all of the "used"
ViewSizing attributes to false. |
java.lang.Object |
clone()
Clones this
ViewSizing object. |
boolean |
equals(java.lang.Object o)
Indicates whether the specified object is equivalent to this
ViewSizing object. |
int |
getColumnWidth()
Retrieves the width for the columns of this object.
|
int |
getRowHeight()
Retrieves the row height property for this object.
|
boolean |
isAnythingOverridden()
Indicates whether any of the attributes of this
ViewSizing object has been explicitly set. |
boolean |
isColumnWidthUsed()
Indicates whether the
ColumnWidth attribute has been explicitly set. |
boolean |
isRowHeightUsed()
Indicates whether the
RowHeight attribute has been explicitly set. |
void |
merge(Mergeable from)
Merges the specified
ViewSizing object with this object. |
void |
setColumnWidth(int columnWidth)
Specifies the width for the columns of this object.
|
void |
setColumnWidthUsed(boolean used)
Specifies whether the
ColumnWidth attribute has been explicitly set. |
void |
setRowHeight(int rowHeight)
Specifies the row height for this object.
|
void |
setRowHeightUsed(boolean used)
Specifies whether the
RowHeight attribute has been explicitly set. |
protected int m_rowHeight
protected int m_columnWidth
protected java.util.BitSet m_propertyUsedFlags
public ViewSizing()
10.
The default column width is 10.
At this point, no attributes have been explicitly set.public ViewSizing(int rowHeight,
int columnWidth)
rowHeight - The initial value for the height of a row.columnWidth - The initial value for the width of a column.public boolean isAnythingOverridden()
ViewSizing object has been explicitly set.isAnythingOverridden in interface Mergeabletrue if any attribute has been explicitly set, false if the attributes have their original values.public java.lang.Object clone()
ViewSizing object.public void setRowHeight(int rowHeight)
setRowHeightUsed method to true.rowHeight - The row height for this object.public int getRowHeight()
public boolean isRowHeightUsed()
RowHeight attribute has been explicitly set.
When this method's return value is true, the attribute's value will be used in the merging process.true if the attribute has been explicitly set, false if it has not been explicitly set.public void setRowHeightUsed(boolean used)
RowHeight attribute has been explicitly set.
This method is set by the setRowHeight attribute.
When the parameter value of this method is set to true, the attribute's value will be used in the merging process.used - true if the attribute has been explicitly set, false if it has not been explicitly set.public void setColumnWidth(int columnWidth)
setColumnWidthUsed method to true.columnWidth - The width for the columns of this object.public int getColumnWidth()
public boolean isColumnWidthUsed()
ColumnWidth attribute has been explicitly set.
When the returns value of this method is true, the attribute's value will be used in the merging process.true if the attribute has been explicitly se, false if it has not been explicitly se.public void setColumnWidthUsed(boolean used)
ColumnWidth attribute has been explicitly set.
This method is set by the setColumnWidth attribute.
When the parameter value of this method is set to true, the attribute's value will be used in the merging process.used - true if the attribute has been explicitly set, false if it has not been explicitly set.public void merge(Mergeable from)
ViewSizing object with this object.
This method is called by the Rule classes.public boolean equals(java.lang.Object o)
ViewSizing object.
Objects are equivalent if they have the same attributes explicitly set and those attributes have the same values.equals in class java.lang.Objecto - The object that you want to compare with this ViewSizing object.true if they are equal, false if not, or if o is not a ViewSizing object.public void clearUsedBits()
ViewSizing attributes to false.
Immediately after you call this method, the IsAnythingOverridden
method returns false.