Package org.compiere.print
Class MPrintTableFormat
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_AD_PrintTableFormat
org.compiere.print.MPrintTableFormat
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_AD_PrintTableFormat
,I_Persistent
,Evaluatee
,ImmutablePOSupport
Table Print Format
- Version:
- $Id: MPrintTableFormat.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke, victor.perez@e-evolution.com, e-Evolution
- BF [ 2011567 ] Implement Background Image for Document printed
- https://sourceforge.net/p/adempiere/feature-requests/477/
- See Also:
-
Field Summary
Fields inherited from class org.compiere.model.X_AD_PrintTableFormat
HDRSTROKETYPE_AD_Reference_ID, HDRSTROKETYPE_Dash_DottedLine, HDRSTROKETYPE_DashedLine, HDRSTROKETYPE_DottedLine, HDRSTROKETYPE_SolidLine, LINESTROKETYPE_AD_Reference_ID, LINESTROKETYPE_Dash_DottedLine, LINESTROKETYPE_DashedLine, LINESTROKETYPE_DottedLine, LINESTROKETYPE_SolidLine
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, UUID_NEW_RECORD, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
Fields inherited from interface org.compiere.model.I_AD_PrintTableFormat
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Image_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_PrintTableFormat_ID, COLUMNNAME_AD_PrintTableFormat_UU, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Description, COLUMNNAME_FooterCenter, COLUMNNAME_FooterLeft, COLUMNNAME_FooterRight, COLUMNNAME_Funct_PrintFont_ID, COLUMNNAME_FunctBG_PrintColor_ID, COLUMNNAME_FunctFG_PrintColor_ID, COLUMNNAME_Hdr_PrintFont_ID, COLUMNNAME_HdrLine_PrintColor_ID, COLUMNNAME_HdrStroke, COLUMNNAME_HdrStrokeType, COLUMNNAME_HdrTextBG_PrintColor_ID, COLUMNNAME_HdrTextFG_PrintColor_ID, COLUMNNAME_HeaderCenter, COLUMNNAME_HeaderLeft, COLUMNNAME_HeaderRight, COLUMNNAME_ImageIsAttached, COLUMNNAME_ImageURL, COLUMNNAME_IsActive, COLUMNNAME_IsDefault, COLUMNNAME_IsMultiLineHeader, COLUMNNAME_IsPaintBoundaryLines, COLUMNNAME_IsPaintHeaderLines, COLUMNNAME_IsPaintHLines, COLUMNNAME_IsPaintVLines, COLUMNNAME_IsPrintFunctionSymbols, COLUMNNAME_Line_PrintColor_ID, COLUMNNAME_LineStroke, COLUMNNAME_LineStrokeType, COLUMNNAME_Name, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMPrintTableFormat
(Properties ctx, int AD_PrintTableFormat_ID, String trxName) Standard ConstructorMPrintTableFormat
(Properties ctx, String AD_PrintTableFormat_UU, String trxName) UUID based ConstructorMPrintTableFormat
(Properties ctx, ResultSet rs, String trxName) Load ConstructorMPrintTableFormat
(Properties ctx, MPrintTableFormat copy) MPrintTableFormat
(Properties ctx, MPrintTableFormat copy, String trxName) -
Method Summary
Modifier and TypeMethodDescriptionstatic MPrintTableFormat
get
(Properties ctx, int AD_PrintTableFormat_ID, int AD_PrintFont_ID) Get Table Formatstatic MPrintTableFormat
get
(Properties ctx, int AD_PrintTableFormat_ID, Font standard_font) Get Table Format.static MPrintTableFormat
getDefault
(Properties ctx) Get Default Table Format.Get Function FontGet Function BG ColorGet Function FG ColorGet Header Stroke for horizontal LinesGet Table Header FontGet Header StrokeGet Header BG ColorGet Header ForegroundGet Header Line ColorGet Horizontal Line Color.Get Horizontal Line Stroke - (same DB line column)getImage()
Get the ImageGet the ImageGet Horizontal Stroke for Lines -Get Page Footer FontGet Page Footer BG_ColorGet PageFooter FG_ColorGet Top Page Header FontGet Page Header BG_ColorGet Page Header FG_ColorGet Parameter ColorGet Parameter FontGet Standard FontGet Vertical Line Color.Get Vertical Line Stroke | (same DB line column)Get Vertical Stroke for Lines |mark PO as immutablevoid
setStandard_Font
(Font standardFont) Set Standard Font to derive other fonts if not definedMethods inherited from class org.compiere.model.X_AD_PrintTableFormat
get_AccessLevel, getAD_Image, getAD_Image_ID, getAD_PrintTableFormat_ID, getAD_PrintTableFormat_UU, getDescription, getFooterCenter, getFooterLeft, getFooterRight, getFunct_PrintFont, getFunct_PrintFont_ID, getFunctBG_PrintColor, getFunctBG_PrintColor_ID, getFunctFG_PrintColor, getFunctFG_PrintColor_ID, getHdr_PrintFont, getHdr_PrintFont_ID, getHdrLine_PrintColor, getHdrLine_PrintColor_ID, getHdrStrokeType, getHdrTextBG_PrintColor, getHdrTextBG_PrintColor_ID, getHdrTextFG_PrintColor, getHdrTextFG_PrintColor_ID, getHeaderCenter, getHeaderLeft, getHeaderRight, getImageURL, getKeyNamePair, getLine_PrintColor, getLine_PrintColor_ID, getLineStrokeType, getName, initPO, isDefault, isImageIsAttached, isMultiLineHeader, isPaintBoundaryLines, isPaintHeaderLines, isPaintHLines, isPaintVLines, isPrintFunctionSymbols, setAD_Image_ID, setAD_PrintTableFormat_ID, setAD_PrintTableFormat_UU, setDescription, setFooterCenter, setFooterLeft, setFooterRight, setFunct_PrintFont_ID, setFunctBG_PrintColor_ID, setFunctFG_PrintColor_ID, setHdr_PrintFont_ID, setHdrLine_PrintColor_ID, setHdrStroke, setHdrStrokeType, setHdrTextBG_PrintColor_ID, setHdrTextFG_PrintColor_ID, setHeaderCenter, setHeaderLeft, setHeaderRight, setImageIsAttached, setImageURL, setIsDefault, setIsMultiLineHeader, setIsPaintBoundaryLines, setIsPaintHeaderLines, setIsPaintHLines, setIsPaintVLines, setIsPrintFunctionSymbols, setLine_PrintColor_ID, setLineStroke, setLineStrokeType, setName, toString
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, toInsertSQL, unlock, update_Tree, validForeignKeys
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.compiere.model.I_AD_PrintTableFormat
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
Methods inherited from interface org.compiere.model.I_Persistent
save
-
Constructor Details
-
MPrintTableFormat
UUID based Constructor- Parameters:
ctx
- ContextAD_PrintTableFormat_UU
- UUID keytrxName
- Transaction
-
MPrintTableFormat
Standard Constructor- Parameters:
ctx
- contextAD_PrintTableFormat_ID
- table formattrxName
- transaction
-
MPrintTableFormat
Load Constructor- Parameters:
ctx
- contextrs
- result settrxName
- transaction
-
MPrintTableFormat
- Parameters:
copy
-
-
MPrintTableFormat
- Parameters:
ctx
-copy
-
-
MPrintTableFormat
- Parameters:
ctx
-copy
-trxName
-
-
-
Method Details
-
setStandard_Font
Set Standard Font to derive other fonts if not defined- Parameters:
standardFont
- standard font
-
getStandard_Font
Get Standard Font- Returns:
- standard font
-
getHeader_Font
Get Table Header Font- Returns:
- table header font or Bold standard font
-
getHeaderFG_Color
Get Header Foreground- Returns:
- color or blue black
-
getHeaderBG_Color
Get Header BG Color- Returns:
- color or cyan
-
getHeaderLine_Color
Get Header Line Color- Returns:
- color or blue black
-
getHeader_Stroke
Get Header Stroke- Returns:
- Header Stroke (default solid 2pt)
-
getHdrStroke
Get Header Stroke for horizontal Lines- Specified by:
getHdrStroke
in interfaceI_AD_PrintTableFormat
- Overrides:
getHdrStroke
in classX_AD_PrintTableFormat
- Returns:
- stroke in pt (default 2)
-
getFunct_Font
Get Function Font- Returns:
- function font or BoldItalic standard font
-
getFunctBG_Color
Get Function BG Color- Returns:
- color or white
-
getFunctFG_Color
Get Function FG Color- Returns:
- color or green dark
-
getParameter_Font
Get Parameter Font- Returns:
- Italic standard font
-
getParameter_Color
Get Parameter Color- Returns:
- dark gray
-
getPageHeader_Font
Get Top Page Header Font- Returns:
- Bold standard font
-
getPageHeaderFG_Color
Get Page Header FG_Color- Returns:
- color or blue black
-
getPageHeaderBG_Color
Get Page Header BG_Color- Returns:
- color or white
-
getHLine_Color
Get Horizontal Line Color. (one db attribute for line color)- Returns:
- color or gray light
-
getVLine_Color
Get Vertical Line Color. (one db attribute for line color)- Returns:
- color or gray light
-
getHLine_Stroke
Get Horizontal Line Stroke - (same DB line column)- Returns:
- solid line baded on line width (default solid 1p)
-
getVLine_Stroke
Get Vertical Line Stroke | (same DB line column)- Returns:
- line based on line (1/2 of) width and stroke (default dotted 1/2p
-
getLineStroke
Get Horizontal Stroke for Lines -- Specified by:
getLineStroke
in interfaceI_AD_PrintTableFormat
- Overrides:
getLineStroke
in classX_AD_PrintTableFormat
- Returns:
- stroke in pt (default 1)
-
getVLineStroke
Get Vertical Stroke for Lines |- Returns:
- stroke in pt (default 1)
-
get
Get Table Format.- Parameters:
ctx
- contextAD_PrintTableFormat_ID
- table formatstandard_font
- standard font- Returns:
- Table Format
-
get
public static MPrintTableFormat get(Properties ctx, int AD_PrintTableFormat_ID, int AD_PrintFont_ID) Get Table Format- Parameters:
ctx
- contextAD_PrintTableFormat_ID
- table formatAD_PrintFont_ID
- standard font- Returns:
- Table Format
-
getDefault
Get Default Table Format.- Parameters:
ctx
- context- Returns:
- Default Table Format (need to set standard font)
-
getImage
Get the Image- Returns:
- image
-
getImageWaterMark
Get the Image- Returns:
- image
-
markImmutable
Description copied from interface:ImmutablePOSupport
mark PO as immutable- Specified by:
markImmutable
in interfaceImmutablePOSupport
- Returns:
- PO
-