amber.type.server
Class ComplexColumn

java.lang.Object
  |
  +--amber.type.server.ComplexItem
        |
        +--amber.type.server.ComplexColumn
All Implemented Interfaces:
java.io.Serializable

public class ComplexColumn
extends ComplexItem

This class contains information relating to the various columns in the ComplexList. The name, type, and size of the column is specified in this class.

Version:
1.0.0
Author:
Dr. David J. Knowles
See Also:
ComplexListHandler, Serialized Form

Field Summary
protected  int alignment
          The alignment of text in the column.
protected  int size
          The size of the column width in pixels.
 
Fields inherited from class amber.type.server.ComplexItem
data, ImageType, StringType, type
 
Constructor Summary
ComplexColumn()
          Default Constructor.
ComplexColumn(int type, java.lang.String data, int size)
          Initialising Constructor.
ComplexColumn(int type, java.lang.String data, int size, int alignment)
          Initialising Constructor.
 
Method Summary
 boolean equals(java.lang.Object other)
          This function checks to see if this object matches the input object.
 int getAlignment()
          Gets the data in the following variable: The alignment of text in the column.
 int getSize()
          Gets the data in the following variable: The size of the column width in pixels.
 void setAlignment(int data)
          Sets the data in the following variable: The alignment of text in the column.
 void setSize(int data)
          Sets the data in the following variable: The size of the column width in pixels.
 java.lang.String toString()
          This function returns the String form of the data.
 
Methods inherited from class amber.type.server.ComplexItem
getData, getType, setData, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

size

protected int size
The size of the column width in pixels.

alignment

protected int alignment
The alignment of text in the column.
Constructor Detail

ComplexColumn

public ComplexColumn()
Default Constructor.

ComplexColumn

public ComplexColumn(int type,
                     java.lang.String data,
                     int size)
Initialising Constructor.
Parameters:
type - This is the type of the corresponding string
data - This is the data. This can be an URL to an item
size - The size of the column width in pixels.

ComplexColumn

public ComplexColumn(int type,
                     java.lang.String data,
                     int size,
                     int alignment)
Initialising Constructor.
Parameters:
type - This is the type of the corresponding string
data - This is the data. This can be an URL to an item
size - The size of the column width in pixels.
alignment - The alignment of text in the column.
See Also:
ComplexList.LEFT, ComplexList.CENTER, ComplexList.RIGHT
Method Detail

getSize

public int getSize()
Gets the data in the following variable: The size of the column width in pixels.
Returns:
int containing the required information.

setSize

public void setSize(int data)
Sets the data in the following variable: The size of the column width in pixels.
Parameters:
data - int containing the data to set the variable to.

getAlignment

public int getAlignment()
Gets the data in the following variable: The alignment of text in the column.
Returns:
int containing the required information.
See Also:
ComplexList.LEFT, ComplexList.CENTER, ComplexList.RIGHT

setAlignment

public void setAlignment(int data)
Sets the data in the following variable: The alignment of text in the column.
Parameters:
data - int containing the data to set the variable to.
See Also:
ComplexList.LEFT, ComplexList.CENTER, ComplexList.RIGHT

equals

public boolean equals(java.lang.Object other)
This function checks to see if this object matches the input object.
Overrides:
equals in class ComplexItem
Parameters:
other - Object to compare with.
Returns:
the state of the comparison. true if the values match.

toString

public java.lang.String toString()
This function returns the String form of the data.
Overrides:
toString in class ComplexItem
Returns:
String containing the string version of this class.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.