|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.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 |
|---|
JASPERPROCESS_ID_AD_Reference_ID |
| 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, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MPrintFormat(Properties ctx,
int AD_PrintFormat_ID,
String trxName)
Public Constructor. |
|
MPrintFormat(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
static MPrintFormat |
copy(Properties ctx,
int from_AD_PrintFormat_ID,
int to_AD_PrintFormat_ID)
Copy existing Definition To Client |
static MPrintFormat |
copyToClient(Properties ctx,
int AD_PrintFormat_ID,
int to_Client_ID)
Copy existing Definition To Client |
static MPrintFormat |
createFromReportView(Properties ctx,
int AD_ReportView_ID,
String ReportName)
Create MPrintFormat for ReportView |
static MPrintFormat |
createFromTable(Properties ctx,
int AD_Table_ID)
Create MPrintFormat for Table |
static MPrintFormat |
createFromTable(Properties ctx,
int AD_Table_ID,
int AD_PrintFormat_ID)
Create MPrintFormat for Table |
static void |
deleteFromCache(int AD_PrintFormat_ID)
Delete Format from Cache |
static MPrintFormat |
get(Properties ctx,
int AD_PrintFormat_ID,
boolean readFromDisk)
Get Format |
static MPrintFormat |
get(Properties ctx,
int AD_ReportView_ID,
int AD_Table_ID)
Get (default) Printformat for Report View or Table |
static RowSet |
getAccessiblePrintFormats(int AD_Table_ID,
int AD_Client_ID,
String trxName)
|
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 |
static int |
getPrintFormat_ID(String formatName,
int AD_Table_ID,
int AD_Client_ID)
Get ID of Print Format use Name |
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. |
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(MQuery query)
Update the Query to access the Translation View. |
String |
toString()
Sting Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MPrintFormat(Properties ctx,
int AD_PrintFormat_ID,
String trxName)
ctx - contextAD_PrintFormat_ID - AD_PrintFormat_IDtrxName - transaction
public MPrintFormat(Properties 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()
public 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 interface I_AD_PrintFormatsetIsTableBased 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(MQuery query)
query - query to be updatedpublic void setAD_PrintTableFormat_ID(int AD_PrintTableFormat_ID)
setAD_PrintTableFormat_ID in interface I_AD_PrintFormatsetAD_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(Properties ctx,
int AD_Table_ID)
ctx - contextAD_Table_ID - table
public static MPrintFormat createFromTable(Properties ctx,
int AD_Table_ID,
int AD_PrintFormat_ID)
ctx - contextAD_Table_ID - tableAD_PrintFormat_ID - 0 or existing PrintFormat
public static MPrintFormat createFromReportView(Properties ctx,
int AD_ReportView_ID,
String ReportName)
ctx - contextAD_ReportView_ID - ReportViewReportName - - optional Report Name
public static MPrintFormat copy(Properties 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(Properties ctx,
int AD_PrintFormat_ID,
int to_Client_ID)
ctx - contextAD_PrintFormat_ID - formatto_Client_ID - to client
public static MPrintFormat get(Properties ctx,
int AD_PrintFormat_ID,
boolean readFromDisk)
ctx - contextAD_PrintFormat_ID - idreadFromDisk - refresh from disk
public static MPrintFormat get(Properties ctx,
int AD_ReportView_ID,
int AD_Table_ID)
ctx - contextAD_ReportView_ID - id or 0AD_Table_ID - id or 0
public static void deleteFromCache(int AD_PrintFormat_ID)
AD_PrintFormat_ID - id
public static int getPrintFormat_ID(String formatName,
int AD_Table_ID,
int AD_Client_ID)
String - formatNameAD_Table_ID - AD_Client_ID -
public static RowSet getAccessiblePrintFormats(int AD_Table_ID,
int AD_Client_ID,
String trxName)
AD_Table_ID - AD_Client_ID - use -1 to retrieve from all clienttrxName - public static void main(String[] args)
args - arga
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||