jet.api
Class TableDetailInfo

java.lang.Object
  extended by jet.api.TableDetailInfo

public class TableDetailInfo
extends java.lang.Object


Constructor Summary
TableDetailInfo(java.util.Vector displayInfos, boolean isParallel, boolean isTileDetail, boolean isTileHorizontal)
           
TableDetailInfo(java.util.Vector displayInfos, int width, int height, boolean isParallel, boolean isTileDetail, boolean isTileHorizontal)
           
 
Method Summary
 boolean addDisplayInfo(DisplayFieldInfo o)
          Appends a display's information of this detail.
 void addDisplayInfo(int index, DisplayFieldInfo element)
          Inserts a display's information of the detail at the specified position.
 void clearDisplayInfos()
          Removes all of displays' information from the detail.
 DisplayFieldInfo getDisplayInfo(int index)
          Returns the DisplayFieldInfo at the specified position.
 java.util.Vector getDisplayInfos()
          Gets displays' information of this detail.
 double getHeight()
           
 double getWidth()
           
 boolean isParallel()
          Tests if this detail is parallel.
 boolean isTileDetail()
           
 boolean isTileHorizontal()
           
 boolean removeDisplayInfo(DisplayFieldInfo o)
          Removes the first occurrence of the DisplayFieldInfo.
 DisplayFieldInfo removeDisplayInfo(int index)
          Removes the DisplayFieldInfo at the specified position.
 void setDisplayInfos(java.util.Vector displayInfos)
          Sets displays' information of this detail.
 void setHeight(double height)
           
 void setParallel(boolean isParallel)
          Set detail to parallel or not.
 void setTileDetail(boolean isTileDetail)
           
 void setTileHorizontal(boolean isTileHorizontal)
           
 void setWidth(double width)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDetailInfo

public TableDetailInfo(java.util.Vector displayInfos,
                       boolean isParallel,
                       boolean isTileDetail,
                       boolean isTileHorizontal)

TableDetailInfo

public TableDetailInfo(java.util.Vector displayInfos,
                       int width,
                       int height,
                       boolean isParallel,
                       boolean isTileDetail,
                       boolean isTileHorizontal)
Method Detail

getDisplayInfos

public java.util.Vector getDisplayInfos()
Gets displays' information of this detail.

Returns:
Vector of DisplayFieldInfo.

setDisplayInfos

public void setDisplayInfos(java.util.Vector displayInfos)
Sets displays' information of this detail.


addDisplayInfo

public void addDisplayInfo(int index,
                           DisplayFieldInfo element)
Inserts a display's information of the detail at the specified position.

Parameters:
index - index at which the DisplayFieldInfo is to be inserted.
element - DisplayFieldInfo to be inserted.
Throws:
java.lang.ArrayIndexOutOfBoundsException - index is out of range (index < 0 || index > size()).

addDisplayInfo

public boolean addDisplayInfo(DisplayFieldInfo o)
Appends a display's information of this detail.

Parameters:
o - DisplayFieldInfo to be appended.
Returns:
true (as per the general contract of Collection.add).

clearDisplayInfos

public void clearDisplayInfos()
Removes all of displays' information from the detail.


getDisplayInfo

public DisplayFieldInfo getDisplayInfo(int index)
Returns the DisplayFieldInfo at the specified position.

Parameters:
index - index of DisplayFieldInfo to return.
Returns:
DisplayFieldInfo at the specified index
Throws:
java.lang.ArrayIndexOutOfBoundsException - index is out of range (index < 0 || index >= size()).

removeDisplayInfo

public DisplayFieldInfo removeDisplayInfo(int index)
Removes the DisplayFieldInfo at the specified position. shifts any subsequent DisplayFieldInfo to the left (subtracts one from their indices). Returns the DisplayFieldInfo that was removed.

Parameters:
index - the index of the DisplayFieldInfo to removed.
Returns:
DisplayFieldInfo that was removed
Throws:
java.lang.ArrayIndexOutOfBoundsException - index out of range (index < 0 || index >= size()).

removeDisplayInfo

public boolean removeDisplayInfo(DisplayFieldInfo o)
Removes the first occurrence of the DisplayFieldInfo. If the Vector does not contain the DisplayFieldInfo, it is unchanged. More formally, removes the DisplayFieldInfo with the lowest index i such that (o==null ? get(i)==null : o.equals(get(i))) (if such an DisplayFieldInfo exists).

Parameters:
o - DisplayFieldInfo to be removed, if present.
Returns:
true if the Vector contained the HeaderInfo.

isParallel

public boolean isParallel()
Tests if this detail is parallel.

Returns:
true if the datail section is a parallel section

setParallel

public void setParallel(boolean isParallel)
Set detail to parallel or not.

Parameters:
isParallel -

getWidth

public double getWidth()

setWidth

public void setWidth(double width)

getHeight

public double getHeight()

setHeight

public void setHeight(double height)

isTileHorizontal

public boolean isTileHorizontal()

setTileHorizontal

public void setTileHorizontal(boolean isTileHorizontal)

isTileDetail

public boolean isTileDetail()

setTileDetail

public void setTileDetail(boolean isTileDetail)