Package org.compiere.print.layout
Class TableProperties
java.lang.Object
org.compiere.print.layout.TableProperties
Layout properties of table
- Author:
- hengsin
-
Constructor Summary
ConstructorsConstructorDescriptionTableProperties(ValueNamePair[] columnHeader, int[] columnMaxWidth, int[] columnMaxHeight, boolean[] fixedWidth, Boolean[] colSuppressRepeats, String[] columnJustification) -
Method Summary
Modifier and TypeMethodDescriptionBoolean[]Get suppress repeat setting of columnsGet column headersString[]Get justification setting of columnsint[]Get max height of columnsint[]Get max width of columnsboolean[]Get fixed width of columnsvoidsetColSuppressRepeats(Boolean[] colSuppressRepeats) Set suppress repeat setting of columnsvoidsetColumnHeader(ValueNamePair[] columnHeader) Set column headersvoidsetColumnJustification(String[] columnJustification) Set justification setting of columnsvoidsetColumnMaxHeight(int[] columnMaxHeight) Set max height of columnsvoidsetColumnMaxWidth(int[] columnMaxWidth) Set max width of columnsvoidsetFixedWidth(boolean[] fixedWidth) Set fixed width of columns
-
Constructor Details
-
TableProperties
public TableProperties(ValueNamePair[] columnHeader, int[] columnMaxWidth, int[] columnMaxHeight, boolean[] fixedWidth, Boolean[] colSuppressRepeats, String[] columnJustification) - Parameters:
columnHeader-columnMaxWidth-columnMaxHeight-fixedWidth-colSuppressRepeats-columnJustification-
-
-
Method Details
-
getColumnHeader
Get column headers- Returns:
- column headers
-
setColumnHeader
Set column headers- Parameters:
columnHeader-
-
getColumnMaxWidth
public int[] getColumnMaxWidth()Get max width of columns- Returns:
- max width for columns
-
setColumnMaxWidth
public void setColumnMaxWidth(int[] columnMaxWidth) Set max width of columns- Parameters:
columnMaxWidth-
-
getColumnMaxHeight
public int[] getColumnMaxHeight()Get max height of columns- Returns:
- max height for columns
-
setColumnMaxHeight
public void setColumnMaxHeight(int[] columnMaxHeight) Set max height of columns- Parameters:
columnMaxHeight-
-
getFixedWidth
public boolean[] getFixedWidth()Get fixed width of columns- Returns:
- fixed width option for columns
-
setFixedWidth
public void setFixedWidth(boolean[] fixedWidth) Set fixed width of columns- Parameters:
fixedWidth-
-
getColSuppressRepeats
Get suppress repeat setting of columns- Returns:
- suppress repeating value setting for columns
-
setColSuppressRepeats
Set suppress repeat setting of columns- Parameters:
colSuppressRepeats-
-
getColumnJustification
Get justification setting of columns- Returns:
- justification setting for columns
-
setColumnJustification
Set justification setting of columns- Parameters:
columnJustification-
-