All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.pelle.mango.client.base.modules.dictionary.model.BaseTableModel Maven / Gradle / Ivy

The newest version!
package io.pelle.mango.client.base.modules.dictionary.model;

import io.pelle.mango.client.base.modules.dictionary.hooks.BaseTableHook;
import io.pelle.mango.client.base.modules.dictionary.hooks.DictionaryHookRegistry;
import io.pelle.mango.client.base.modules.dictionary.model.containers.IBaseContainerModel;
import io.pelle.mango.client.base.modules.dictionary.model.containers.IBaseTableModel;
import io.pelle.mango.client.base.modules.dictionary.model.controls.IBaseControlModel;
import io.pelle.mango.client.base.vo.IBaseVO;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public abstract class BaseTableModel extends BaseModel implements IBaseTableModel {

	private List columns = new ArrayList();

	private static final long serialVersionUID = 7452528927479882166L;

	private Integer visibleRows = DEFAULT_VISBLE_ROWS;

	private int paingSize = DEFAULT_PAGING_SIZE;

	public BaseTableModel(String name, IBaseModel parent) {
		super(name, parent);
	}

	@Override
	public Integer getVisibleRows() {
		return this.visibleRows;
	}

	public void setTableHook(BaseTableHook baseTableHook) {
		DictionaryHookRegistry.getInstance().addTableHook(this, baseTableHook);
	}

	@Override
	public List getChildren() {
		return Collections.emptyList();
	}

	@Override
	public List getControls() {
		return this.columns;
	}

	@Override
	public int getPagingSize() {
		return this.paingSize;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy