com.arctorus.documents.table
Class Column

java.lang.Object
  extended by com.arctorus.documents.table.Column

public final class Column
extends java.lang.Object

Table column. Default width of a column is 48pt.


Field Summary
static Column NULL
          NULL column.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 boolean equalsContent(Column column)
          Indicates whether the content of the specified column (width) is "equal to" the content of this column.
 int getColumnIndex()
          Get zero based index of a column in a table.
 java.lang.String getColumnName()
          Get column name as column index value converted to letters.
 float getWidth()
          Get width of a column.
 int hashCode()
          Returns a hash code value for the object.
 void setWidth(float width)
          Set new width of a column.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final Column NULL
NULL column.

Method Detail

getWidth

public float getWidth()
Get width of a column.


setWidth

public void setWidth(float width)
Set new width of a column.

Parameters:
width - new column width.

getColumnIndex

public int getColumnIndex()
Get zero based index of a column in a table.


getColumnName

public java.lang.String getColumnName()
Get column name as column index value converted to letters.


hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object

equalsContent

public boolean equalsContent(Column column)
Indicates whether the content of the specified column (width) is "equal to" the content of this column.

Parameters:
column - column to compare with this one.