📄 x_ad_printtableformat.java
字号:
/** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2005 Jorg Janke */
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import org.compiere.util.*;
/** Generated Model for AD_PrintTableFormat
* @author Jorg Janke (generated)
* @version Release 2.5.3b - 2006-02-09 16:42:57.795 */
public class X_AD_PrintTableFormat extends PO
{
/** Standard Constructor */
public X_AD_PrintTableFormat (Properties ctx, int AD_PrintTableFormat_ID, String trxName)
{
super (ctx, AD_PrintTableFormat_ID, trxName);
/** if (AD_PrintTableFormat_ID == 0)
{
setAD_PrintTableFormat_ID (0);
setIsDefault (false);
setIsPaintBoundaryLines (false);
setIsPaintHLines (false);
setIsPaintHeaderLines (true); // Y
setIsPaintVLines (false);
setIsPrintFunctionSymbols (false);
setName (null);
}
*/
}
/** Load Constructor */
public X_AD_PrintTableFormat (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AD_Table_ID=523 */
public static final int Table_ID=523;
/** TableName=AD_PrintTableFormat */
public static final String Table_Name="AD_PrintTableFormat";
protected static KeyNamePair Model = new KeyNamePair(523,"AD_PrintTableFormat");
protected BigDecimal accessLevel = new BigDecimal(6);
/** AccessLevel 6 - System - Client */
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_AD_PrintTableFormat[").append(get_ID()).append("]");
return sb.toString();
}
/** Set Print Table Format.
Table Format in Reports */
public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID)
{
if (AD_PrintTableFormat_ID < 1) throw new IllegalArgumentException ("AD_PrintTableFormat_ID is mandatory.");
set_ValueNoCheck ("AD_PrintTableFormat_ID", new Integer(AD_PrintTableFormat_ID));
}
/** Get Print Table Format.
Table Format in Reports */
public int getAD_PrintTableFormat_ID()
{
Integer ii = (Integer)get_Value("AD_PrintTableFormat_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Description.
Optional short description of the record */
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
Description = Description.substring(0,254);
}
set_Value ("Description", Description);
}
/** Get Description.
Optional short description of the record */
public String getDescription()
{
return (String)get_Value("Description");
}
/** Set Footer Center.
Content of the center portion of the footer. */
public void setFooterCenter (String FooterCenter)
{
if (FooterCenter != null && FooterCenter.length() > 255)
{
log.warning("Length > 255 - truncated");
FooterCenter = FooterCenter.substring(0,254);
}
set_Value ("FooterCenter", FooterCenter);
}
/** Get Footer Center.
Content of the center portion of the footer. */
public String getFooterCenter()
{
return (String)get_Value("FooterCenter");
}
/** Set Footer Left.
Content of the left portion of the footer. */
public void setFooterLeft (String FooterLeft)
{
if (FooterLeft != null && FooterLeft.length() > 255)
{
log.warning("Length > 255 - truncated");
FooterLeft = FooterLeft.substring(0,254);
}
set_Value ("FooterLeft", FooterLeft);
}
/** Get Footer Left.
Content of the left portion of the footer. */
public String getFooterLeft()
{
return (String)get_Value("FooterLeft");
}
/** Set Footer Right.
Content of the right portion of the footer. */
public void setFooterRight (String FooterRight)
{
if (FooterRight != null && FooterRight.length() > 255)
{
log.warning("Length > 255 - truncated");
FooterRight = FooterRight.substring(0,254);
}
set_Value ("FooterRight", FooterRight);
}
/** Get Footer Right.
Content of the right portion of the footer. */
public String getFooterRight()
{
return (String)get_Value("FooterRight");
}
/** FunctBG_PrintColor_ID AD_Reference_ID=266 */
public static final int FUNCTBG_PRINTCOLOR_ID_AD_Reference_ID=266;
/** Set Function BG Color.
Function Background Color */
public void setFunctBG_PrintColor_ID (int FunctBG_PrintColor_ID)
{
if (FunctBG_PrintColor_ID <= 0) set_Value ("FunctBG_PrintColor_ID", null);
else
set_Value ("FunctBG_PrintColor_ID", new Integer(FunctBG_PrintColor_ID));
}
/** Get Function BG Color.
Function Background Color */
public int getFunctBG_PrintColor_ID()
{
Integer ii = (Integer)get_Value("FunctBG_PrintColor_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** FunctFG_PrintColor_ID AD_Reference_ID=266 */
public static final int FUNCTFG_PRINTCOLOR_ID_AD_Reference_ID=266;
/** Set Function Color.
Function Foreground Color */
public void setFunctFG_PrintColor_ID (int FunctFG_PrintColor_ID)
{
if (FunctFG_PrintColor_ID <= 0) set_Value ("FunctFG_PrintColor_ID", null);
else
set_Value ("FunctFG_PrintColor_ID", new Integer(FunctFG_PrintColor_ID));
}
/** Get Function Color.
Function Foreground Color */
public int getFunctFG_PrintColor_ID()
{
Integer ii = (Integer)get_Value("FunctFG_PrintColor_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Funct_PrintFont_ID AD_Reference_ID=267 */
public static final int FUNCT_PRINTFONT_ID_AD_Reference_ID=267;
/** Set Function Font.
Function row Font */
public void setFunct_PrintFont_ID (int Funct_PrintFont_ID)
{
if (Funct_PrintFont_ID <= 0) set_Value ("Funct_PrintFont_ID", null);
else
set_Value ("Funct_PrintFont_ID", new Integer(Funct_PrintFont_ID));
}
/** Get Function Font.
Function row Font */
public int getFunct_PrintFont_ID()
{
Integer ii = (Integer)get_Value("Funct_PrintFont_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** HdrLine_PrintColor_ID AD_Reference_ID=266 */
public static final int HDRLINE_PRINTCOLOR_ID_AD_Reference_ID=266;
/** Set Header Line Color.
Table header row line color */
public void setHdrLine_PrintColor_ID (int HdrLine_PrintColor_ID)
{
if (HdrLine_PrintColor_ID <= 0) set_Value ("HdrLine_PrintColor_ID", null);
else
set_Value ("HdrLine_PrintColor_ID", new Integer(HdrLine_PrintColor_ID));
}
/** Get Header Line Color.
Table header row line color */
public int getHdrLine_PrintColor_ID()
{
Integer ii = (Integer)get_Value("HdrLine_PrintColor_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Header Stroke.
Width of the Header Line Stroke */
public void setHdrStroke (BigDecimal HdrStroke)
{
set_Value ("HdrStroke", HdrStroke);
}
/** Get Header Stroke.
Width of the Header Line Stroke */
public BigDecimal getHdrStroke()
{
BigDecimal bd = (BigDecimal)get_Value("HdrStroke");
if (bd == null) return Env.ZERO;
return bd;
}
/** HdrStrokeType AD_Reference_ID=312 */
public static final int HDRSTROKETYPE_AD_Reference_ID=312;
/** Dash-Dotted Line = 2 */
public static final String HDRSTROKETYPE_Dash_DottedLine = "2";
/** Dashed Line = D */
public static final String HDRSTROKETYPE_DashedLine = "D";
/** Solid Line = S */
public static final String HDRSTROKETYPE_SolidLine = "S";
/** Dotted Line = d */
public static final String HDRSTROKETYPE_DottedLine = "d";
/** Set Header Stroke Type.
Type of the Header Line Stroke */
public void setHdrStrokeType (String HdrStrokeType)
{
if (HdrStrokeType == null) throw new IllegalArgumentException ("HdrStrokeType is mandatory");
if (HdrStrokeType == null || HdrStrokeType.equals("2") || HdrStrokeType.equals("D") || HdrStrokeType.equals("S") || HdrStrokeType.equals("d"));
else throw new IllegalArgumentException ("HdrStrokeType Invalid value - " + HdrStrokeType + " - Reference_ID=312 - 2 - D - S - d");
if (HdrStrokeType != null && HdrStrokeType.length() > 1)
{
log.warning("Length > 1 - truncated");
HdrStrokeType = HdrStrokeType.substring(0,0);
}
set_Value ("HdrStrokeType", HdrStrokeType);
}
/** Get Header Stroke Type.
Type of the Header Line Stroke */
public String getHdrStrokeType()
{
return (String)get_Value("HdrStrokeType");
}
/** HdrTextBG_PrintColor_ID AD_Reference_ID=266 */
public static final int HDRTEXTBG_PRINTCOLOR_ID_AD_Reference_ID=266;
/** Set Header Row BG Color.
Background color of header row */
public void setHdrTextBG_PrintColor_ID (int HdrTextBG_PrintColor_ID)
{
if (HdrTextBG_PrintColor_ID <= 0) set_Value ("HdrTextBG_PrintColor_ID", null);
else
set_Value ("HdrTextBG_PrintColor_ID", new Integer(HdrTextBG_PrintColor_ID));
}
/** Get Header Row BG Color.
Background color of header row */
public int getHdrTextBG_PrintColor_ID()
{
Integer ii = (Integer)get_Value("HdrTextBG_PrintColor_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** HdrTextFG_PrintColor_ID AD_Reference_ID=266 */
public static final int HDRTEXTFG_PRINTCOLOR_ID_AD_Reference_ID=266;
/** Set Header Row Color.
Foreground color if the table header row */
public void setHdrTextFG_PrintColor_ID (int HdrTextFG_PrintColor_ID)
{
if (HdrTextFG_PrintColor_ID <= 0) set_Value ("HdrTextFG_PrintColor_ID", null);
else
set_Value ("HdrTextFG_PrintColor_ID", new Integer(HdrTextFG_PrintColor_ID));
}
/** Get Header Row Color.
Foreground color if the table header row */
public int getHdrTextFG_PrintColor_ID()
{
Integer ii = (Integer)get_Value("HdrTextFG_PrintColor_ID");
if (ii == null) return 0;
return ii.intValue();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -