|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_AD_PrintFormat
org.compiere.print.MPrintFormat
public class MPrintFormat
AD_PrintFormat - Print Format Model. (Add missing Items with PrintFormatUtil)
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_AD_PrintFormat |
|---|
accessLevel, Model, Table_ID, Table_Name, updatedMS |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MPrintFormat(Ctx ctx,
int AD_PrintFormat_ID,
String trxName)
Public Constructor. |
|
MPrintFormat(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
static MPrintFormat |
copy(Ctx ctx,
int from_AD_PrintFormat_ID,
int to_AD_PrintFormat_ID)
Copy existing Definition To Client |
static MPrintFormat |
copyToClient(Ctx ctx,
int AD_PrintFormat_ID,
int to_Client_ID)
Copy existing Definition To Client |
static MPrintFormat |
createFromReportView(Ctx ctx,
int AD_ReportView_ID,
String ReportName)
Create MPrintFormat for ReportView |
static MPrintFormat |
createFromTable(Ctx ctx,
int AD_Table_ID)
Create MPrintFormat for Table |
static MPrintFormat |
createFromTable(Ctx ctx,
int AD_Table_ID,
int AD_PrintFormat_ID)
Create MPrintFormat for Table |
static MPrintFormat |
get(Ctx ctx,
int AD_PrintFormat_ID,
boolean reload)
Get Format |
static MPrintFormat |
get(Ctx ctx,
int AD_ReportView_ID,
int AD_Table_ID)
Get (default) Printformat for Report View or Table |
int[] |
getAD_Column_IDs()
Get AD_Column_IDs of columns in Report |
MPrintFormatItem |
getItem(int index)
Get Print Format Item |
int |
getItemCount()
Get Item Count |
Language |
getLanguage()
Get Language |
int[] |
getOrderAD_Column_IDs()
Get AD_Column_ID of Order Columns |
MPrintTableFormat |
getTableFormat()
Get Table Format |
boolean |
isTranslationView()
Get Translation View use |
protected Object |
loadSpecial(ResultSet rs,
int index)
Load Special data (images, ..). |
static void |
main(String[] args)
Test |
protected String |
saveNewSpecial(Object value,
int index)
Save Special Data. |
void |
setAD_PrintTableFormat_ID(int AD_PrintTableFormat_ID)
Get Optional TableFormat |
void |
setIsTableBased(boolean tableBased)
Set Table based. |
protected void |
setItems(MPrintFormatItem[] items)
Set Items |
void |
setLanguage(Language language)
Set Language |
void |
setStandardHeaderFooter(boolean standardHeaderFooter)
Set Standard Header |
void |
setTranslation()
Set the translation of the Format Items to the original |
void |
setTranslationLanguage(Language language)
Set Translation View Language. |
void |
setTranslationViewQuery(Query query)
Update the Query to access the Translation View. |
String |
toString()
Sting Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MPrintFormat(Ctx ctx,
int AD_PrintFormat_ID,
String trxName)
ctx - contextAD_PrintFormat_ID - AD_PrintFormat_IDtrxName - transaction
public MPrintFormat(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public Language getLanguage()
public void setLanguage(Language language)
language - languagepublic int[] getOrderAD_Column_IDs()
public int[] getAD_Column_IDs()
protected void setItems(MPrintFormatItem[] items)
items - itemspublic int getItemCount()
public MPrintFormatItem getItem(int index)
index - index
public void setTranslation()
public void setStandardHeaderFooter(boolean standardHeaderFooter)
standardHeaderFooter - true if std headerpublic void setIsTableBased(boolean tableBased)
setIsTableBased in class X_AD_PrintFormattableBased - true if table basedpublic void setTranslationLanguage(Language language)
language - language (checked for base language)public boolean isTranslationView()
public void setTranslationViewQuery(Query query)
query - query to be updatedpublic void setAD_PrintTableFormat_ID(int AD_PrintTableFormat_ID)
setAD_PrintTableFormat_ID in class X_AD_PrintFormatAD_PrintTableFormat_ID - table formatpublic MPrintTableFormat getTableFormat()
public String toString()
toString in class X_AD_PrintFormat
protected Object loadSpecial(ResultSet rs,
int index)
throws SQLException
loadSpecial in class POrs - result setindex - zero based index
SQLException
protected String saveNewSpecial(Object value,
int index)
saveNewSpecial in class POvalue - valueindex - index
public static MPrintFormat createFromTable(Ctx ctx,
int AD_Table_ID)
ctx - contextAD_Table_ID - table
public static MPrintFormat createFromTable(Ctx ctx,
int AD_Table_ID,
int AD_PrintFormat_ID)
ctx - contextAD_Table_ID - tableAD_PrintFormat_ID - 0 or existing PrintFormat
public static MPrintFormat createFromReportView(Ctx ctx,
int AD_ReportView_ID,
String ReportName)
ctx - contextAD_ReportView_ID - ReportViewReportName - - optional Report Name
public static MPrintFormat copy(Ctx ctx,
int from_AD_PrintFormat_ID,
int to_AD_PrintFormat_ID)
ctx - contextfrom_AD_PrintFormat_ID - formatto_AD_PrintFormat_ID - format
public static MPrintFormat copyToClient(Ctx ctx,
int AD_PrintFormat_ID,
int to_Client_ID)
ctx - contextAD_PrintFormat_ID - formatto_Client_ID - to client
public static MPrintFormat get(Ctx ctx,
int AD_PrintFormat_ID,
boolean reload)
ctx - contextAD_PrintFormat_ID - idreload - refresh from disk
public static MPrintFormat get(Ctx ctx,
int AD_ReportView_ID,
int AD_Table_ID)
ctx - contextAD_ReportView_ID - id or 0AD_Table_ID - id or 0
public static void main(String[] args)
args - arga
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||