|
|
|
package com.fr.design.mainframe;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.svg.IconUtils;
|
|
|
|
import com.fr.design.gui.core.WidgetOption;
|
|
|
|
import com.fr.design.gui.core.WidgetOptionFactory;
|
|
|
|
import com.fr.design.gui.itable.PropertyGroup;
|
|
|
|
import com.fr.design.designer.properties.WidgetPropertyTable;
|
|
|
|
import com.fr.form.parameter.FormSubmitButton;
|
|
|
|
|
|
|
|
|
|
|
|
public class FormTargetMode extends FormDesignerModeForSpecial<FormDesigner> {
|
|
|
|
|
|
|
|
public FormTargetMode(FormDesigner t) {
|
|
|
|
super(t);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取预定义的查询按钮
|
|
|
|
*/
|
|
|
|
public WidgetOption[] getPredefinedWidgetOptions() {
|
|
|
|
return new WidgetOption[]{
|
|
|
|
WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Query_Button"),
|
|
|
|
"/com/fr/web/images/form/resources/preview_16", FormSubmitButton.class)};
|
|
|
|
}
|
|
|
|
|
|
|
|
public ArrayList<PropertyGroup> createRootDesignerPropertyGroup() {
|
|
|
|
return WidgetPropertyTable.getCreatorPropertyGroup(this.getTarget(), this.getTarget().getRootComponent());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isFormParameterEditor() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getMinDesignHeight() {
|
|
|
|
return getTarget().getTarget().getContainer().getMinDesignSize().height;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getMinDesignWidth() {
|
|
|
|
return getTarget().getTarget().getContainer().getMinDesignSize().width;
|
|
|
|
}
|
|
|
|
}
|