|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.type.server.ComplexLine
This class contains information about a single line in a complex list. It is used by the complex list to maintain an internal copy of information sent to the remote component.
ComplexItem,
ComplexListHandler| Field Summary | |
protected java.util.Vector |
data
This is the column information for the line. |
protected java.lang.Object |
lineObject
This is an object which is associated with this line. |
protected ComplexListHandler |
parentHandler
The ComplexList the node is inserted into. |
protected int |
type
This integer defines the nesting of each line. |
| Constructor Summary | |
ComplexLine()
Default Constructor. |
|
ComplexLine(int type)
Initialising Constructor. |
|
ComplexLine(java.util.Vector data,
int type)
Initialising Constructor. |
|
ComplexLine(java.util.Vector data,
int type,
java.lang.Object lineObject)
Initialising Constructor. |
|
| Method Summary | |
void |
addColumn(ComplexItem item)
Sets the data in the following variable: This is a column in the line. |
protected boolean |
compareEnumerations(java.util.Enumeration internal,
java.util.Enumeration other)
This function compares the data in the two enumerations returning the state of that comparison. |
boolean |
equals(java.lang.Object other)
This function checks to see if this object matches the input object. |
ComplexItem |
getColumn(int index)
Gets the data in the following variable: This is a column in the line. |
java.util.Vector |
getData()
Gets the data in the following variable: This is the column information for the line. |
java.lang.Object |
getLineObject()
Gets the data in the following variable: This is an object which is associated with this line. |
ComplexListHandler |
getParentHandler()
Gets the data in the following variable: The parent ComplexList for this ComplexLine object. |
int |
getType()
Gets the data in the following variable: This integer defines the nesting of each line. |
void |
insertColumn(ComplexItem item,
int index)
Inserts a column into the line. |
void |
removeColumn(int index)
Removes a column from the line. |
void |
replaceColumn(ComplexItem item,
int index)
Replaces a column in the line. |
void |
setData(java.util.Vector data)
Sets the data in the following variable: This is the column information for the line. |
void |
setLineObject(java.lang.Object object)
Sets the data in the following variable: This is an object which is associated with this line. |
void |
setParentHandler(ComplexListHandler data)
Sets the data in the following variable: The parent ComplexList for this ComplexLine object. |
void |
setType(int data)
Sets the data in the following variable: This integer defines the nesting of each line. |
java.lang.String |
toString()
This function returns the String form of the data. |
protected void |
updateHandler()
If this node is attached to a ComplexList it forces an update of the visual contents at the remote client. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ComplexListHandler parentHandler
protected java.util.Vector data
protected int type
protected java.lang.Object lineObject
| Constructor Detail |
public ComplexLine()
public ComplexLine(int type)
type - This integer defines the nesting of each line. Lines with higher types are considered children of lower type numbers.
public ComplexLine(java.util.Vector data,
int type)
data - This is the column information for the line. It is a Vector of ComplexItem's.type - This integer defines the nesting of each line. Lines with higher types are considered children of lower type numbers.
public ComplexLine(java.util.Vector data,
int type,
java.lang.Object lineObject)
data - This is the column information for the line. It is a Vector of ComplexItem's.type - This integer defines the nesting of each line. Lines with higher types are considered children of lower type numbers.lineObject - The non-displaying object which is associated with this line.| Method Detail |
protected void updateHandler()
throws ComponentHandlerException
ComponentHandlerException - containing messaging errors.public ComplexListHandler getParentHandler()
public java.util.Vector getData()
public java.lang.Object getLineObject()
public int getType()
public ComplexItem getColumn(int index)
index - int location of the column to get.
public void addColumn(ComplexItem item)
throws ComponentHandlerException
item - ComplexItem containing the data to add.ComponentHandlerException - should there
be an error updating the remote control.
public void insertColumn(ComplexItem item,
int index)
throws ComponentHandlerException
item - ComplexItem containing the data to set the variable to.ComponentHandlerException - should there
be an error updating the remote control.
public void replaceColumn(ComplexItem item,
int index)
throws ComponentHandlerException
item - ComplexItem containing the data to set the variable to.index - int index location of the column to replace.ComponentHandlerException - should there
be an error updating the remote control.
public void removeColumn(int index)
throws ComponentHandlerException
index - int index location of the column to remove.ComponentHandlerException - should there
be an error updating the remote control.public void setParentHandler(ComplexListHandler data)
data - ComplexListHandler containing the data to set the variable to.public void setLineObject(java.lang.Object object)
object - Object containing the data to set the variable to.
public void setData(java.util.Vector data)
throws ComponentHandlerException
data - Vector containing the data to set the variable to.ComponentHandlerException - should there
be an error updating the remote control.
public void setType(int data)
throws ComponentHandlerException
data - int containing the data to set the variable to.ComponentHandlerException - should there
be an error updating the remote control.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - Object to compare with.
protected boolean compareEnumerations(java.util.Enumeration internal,
java.util.Enumeration other)
internal - This is the Enumeration of the internal data and is
assumed to be an Enumeration of ComplexItems.other - This is an Enumeration of the data to compare it may
be ComplexItems or Strings.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||