AbsLayout.java 1.21 KB

/*
 * Copyright (c) People Technologies Co., Ltd. 2019-2022. All rights reserved.
 */

package com.wd.display.comp.layoutdata;

import android.text.TextUtils;

public abstract class AbsLayout {

    /**
     * 页面id
     */
    private String id;

    private String blockDesc;

    private boolean showBlock =  true;

    /**
     * 记录楼层已展示的组件数量
     */
    private int displayItemCount = 0;

    public String getId() {
        return TextUtils.isEmpty(this.id) ? "" : this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBlockDesc() {
        return blockDesc;
    }

    public int getDisplayItemCount() {
        return displayItemCount;
    }

    public void setDisplayItemCount(int displayItemCount) {
        this.displayItemCount = displayItemCount;
    }

    public void setBlockDesc(String blockDesc) {
        this.blockDesc = blockDesc;
    }

    public boolean isShowBlock() {
        return showBlock;
    }

    public void setShowBlock(boolean showBlock) {
        this.showBlock = showBlock;
    }

    /**
     * getLayoutPresenter
     * 
     * @return getLayoutPresenter
     */
    public abstract ILayoutPresenter getLayoutPresenter();

}