You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
932 B
42 lines
932 B
package com.fr.design.mainframe.cell; |
|
|
|
import com.fr.design.gui.frpane.AttributeChangeListener; |
|
import com.fr.design.mainframe.AbstractAttrPane; |
|
|
|
/** |
|
* 右侧单元格元素面板抽象类 |
|
* |
|
* @author yaoh.wu |
|
* @version 2017年7月25日 |
|
* @since 9.0 |
|
*/ |
|
public abstract class AbstractDSCellEditorPane extends AbstractAttrPane { |
|
|
|
private static final int FIXED_HEIGHT = 200; |
|
|
|
/** |
|
* 从面板拿数据保存 |
|
*/ |
|
public abstract void update(); |
|
|
|
/** |
|
* 更新面板数据 |
|
*/ |
|
public abstract void populate(); |
|
|
|
|
|
/** |
|
* 释放tc |
|
*/ |
|
protected abstract void release(); |
|
|
|
protected abstract AttributeChangeListener getAttributeChangeListener(); |
|
|
|
public void addAttributeChangeListener() { |
|
this.addAttributeChangeListener(getAttributeChangeListener()); |
|
} |
|
|
|
protected int getMaxHeight() { |
|
return Math.max(super.getMaxHeight() - FIXED_HEIGHT, 0); |
|
} |
|
}
|
|
|