package com.fzzy.d7;
|
|
|
import com.bstek.dorado.data.listener.GenericObjectListener;
|
import com.bstek.dorado.view.widget.form.autoform.AutoForm;
|
|
import java.util.HashMap;
|
import java.util.Map;
|
|
/**
|
* 添加监听全局的DataGrid的基本调整
|
*
|
* @author Andy
|
*
|
*/
|
public class AutoFormListener extends GenericObjectListener<AutoForm> {
|
|
|
@Override
|
public boolean beforeInit(AutoForm object) throws Exception {
|
object.setRowPadding(15);
|
object.setRowHeight(38);
|
//object.setLabelAlign(Align.right);
|
object.setLabelSeparator(":");
|
Map<String, Object> params = new HashMap<>();
|
//params.put("padding", "10px");
|
object.setStyle(params);
|
return true;
|
}
|
|
@Override
|
public void onInit(AutoForm object) throws Exception {
|
|
}
|
}
|