Search in sources :

Example 1 with FieldList

use of pl.x3E.adInterface.FieldList in project adempiere by adempiere.

the class ADServiceImpl method fillTab.

private void fillTab(Tab t, GridTabVO to) {
    t.setADColumnID(to.AD_Column_ID);
    t.setADColumnSortOrderID(to.AD_ColumnSortOrder_ID);
    t.setADImageID(to.AD_Image_ID);
    t.setADProcessID(to.AD_Process_ID);
    t.setADTabID(to.AD_Tab_ID);
    t.setADTableID(to.AD_Table_ID);
    t.setADWindowID(to.AD_Window_ID);
    t.setDescription(to.Description);
    t.setName(to.Name);
    t.setIsSingleRow(to.IsSingleRow);
    t.setCommitWarning(to.CommitWarning);
    t.setHasTree(to.HasTree);
    t.setDisplayLogic(to.DisplayLogic);
    t.setHelp(to.Help);
    t.setIncludedTabID(to.Included_Tab_ID);
    t.setIsDeleteable(to.IsDeleteable);
    t.setIsHighVolume(to.IsHighVolume);
    t.setIsInsertRecord(to.IsInsertRecord);
    t.setIsReadOnly(to.IsReadOnly);
    t.setIsSecurityEnabled(to.IsSecurityEnabled);
    t.setIsSingleRow(to.IsSingleRow);
    t.setIsSortTab(to.IsSortTab);
    //t.setIsSoTrx( to.)
    t.setIsView(to.IsView);
    t.setReadOnlyLogic(to.ReadOnlyLogic);
    t.setTableName(to.TableName);
    t.setTabLevel(to.TabLevel);
    // ADEMPIERE/COMPIERE
    // adempiere
    ArrayList<GridFieldVO> Fields = to.getFields();
    if (Fields != null) {
        FieldList fl = t.addNewFields();
        for (int i = 0; i < Fields.size(); i++) {
            fillField(fl.addNewField(), (GridFieldVO) Fields.get(i));
        }
    }
}
Also used : GridFieldVO(org.compiere.model.GridFieldVO) FieldList(pl.x3E.adInterface.FieldList)

Aggregations

GridFieldVO (org.compiere.model.GridFieldVO)1 FieldList (pl.x3E.adInterface.FieldList)1