After Width: | Height: | Size: 148 B |
After Width: | Height: | Size: 138 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 296 B |
After Width: | Height: | Size: 278 B |
After Width: | Height: | Size: 155 B |
After Width: | Height: | Size: 121 B |
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 263 B |
After Width: | Height: | Size: 211 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 191 B |
After Width: | Height: | Size: 709 B |
After Width: | Height: | Size: 359 B |
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 365 B |
After Width: | Height: | Size: 113 B |
After Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 339 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 686 B After Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 370 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 452 B After Width: | Height: | Size: 413 B |
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 503 B After Width: | Height: | Size: 372 B |
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 477 B |
After Width: | Height: | Size: 605 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 705 B After Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 606 B |
@ -1 +1,107 @@ |
|||||||
package com.fr.design.gui.core;
import javax.swing.Icon;
import com.fr.base.BaseUtils;
import com.fr.form.ui.ElementCaseEditor;
import com.fr.form.ui.Widget;
import com.fr.form.ui.container.WAbsoluteLayout;
import com.fr.form.ui.container.WBorderLayout;
import com.fr.form.ui.container.WCardLayout;
import com.fr.form.ui.container.WFitLayout;
import com.fr.form.ui.container.WHorizontalBoxLayout;
import com.fr.form.ui.container.WParameterLayout;
import com.fr.form.ui.container.WVerticalBoxLayout;
import com.fr.general.Inter;
/**
* Author : Shockway
* Date: 13-6-17
* Time: 上午10:40
*/
public class FormWidgetOption extends WidgetOption {
/**
* 返回名字
* @return 名字
*/
@Override
public String optionName() {
return null;
}
/**
* 返回图标
* @return 图标
*/
@Override
public Icon optionIcon() {
return null;
}
/**
* 组件类
* @return 类
*/
@Override
public Class<? extends Widget> widgetClass() {
return null;
}
/**
* 返回组件
* @return 控件
*/
@Override
public Widget createWidget() {
return null;
}
/*
* 表单容器
*/
public static WidgetOption[] getFormContainerInstance() {
return new WidgetOption[] { ABSOLUTELAYOUTCONTAINER, BORDERLAYOUTCONTAINER, HORIZONTALBOXLAYOUTCONTAINER, VERTICALBOXLAYOUTCONTAINER,
CARDLAYOUTCONTAINER, FITLAYOUTCONTAINER };
}
/**
* 表单工具栏上的布局
* @return 控件
*/
public static WidgetOption[] getFormLayoutInstance() {
return new WidgetOption[] {CARDLAYOUTCONTAINER, ABSOLUTELAYOUTCONTAINER};
}
public static final WidgetOption ABSOLUTELAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter
.getLocText("FR-Designer_Layout_Block_Absolute"), BaseUtils.readIcon("/com/fr/web/images/form/resources/layout_absolute_new.png"),
WAbsoluteLayout.class);
public static final WidgetOption BORDERLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter
.getLocText("FR-Designer_BorderLayout"), BaseUtils.readIcon("/com/fr/web/images/form/resources/layout_border.png"),
WBorderLayout.class);
public static final WidgetOption CARDLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter
.getLocText("FR-Designer_Layout_Block_Tab"), BaseUtils.readIcon("/com/fr/web/images/form/resources/card_layout_16.png"),
WCardLayout.class);
public static final WidgetOption HORIZONTALBOXLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter
.getLocText("FR-Designer_Layout-HBox"), BaseUtils.readIcon("/com/fr/web/images/form/resources/boxlayout_h_16.png"),
WHorizontalBoxLayout.class);
public static final WidgetOption VERTICALBOXLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter
.getLocText("FR-Designer_VerticalBoxLayout"), BaseUtils.readIcon("/com/fr/web/images/form/resources/boxlayout_v_16.png"),
WVerticalBoxLayout.class);
public static final WidgetOption FITLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter.getLocText("FR-Designer-Layout_Adaptive_Layout"),
BaseUtils.readIcon("/com/fr/web/images/form/resources/boxlayout_v_16.png"),
WFitLayout.class);
public static final WidgetOption PARAMETERCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter
.getLocText("FR-Designer_Para-Body"), BaseUtils.readIcon("/com/fr/web/images/form/resources/layout_parameter.png"),
WParameterLayout.class);
public static final WidgetOption ELEMENTCASE = WidgetOptionFactory.createByWidgetClass(Inter
.getLocText("FR-Designer_Form-Report"), BaseUtils.readIcon("/com/fr/web/images/form/resources/report_16.png"),
ElementCaseEditor.class);
} |
package com.fr.design.gui.core; |
||||||
|
|
||||||
|
import javax.swing.Icon; |
||||||
|
|
||||||
|
import com.fr.base.BaseUtils; |
||||||
|
import com.fr.form.ui.ElementCaseEditor; |
||||||
|
import com.fr.form.ui.Widget; |
||||||
|
import com.fr.form.ui.container.WAbsoluteLayout; |
||||||
|
import com.fr.form.ui.container.WBorderLayout; |
||||||
|
import com.fr.form.ui.container.WCardLayout; |
||||||
|
import com.fr.form.ui.container.WFitLayout; |
||||||
|
import com.fr.form.ui.container.WHorizontalBoxLayout; |
||||||
|
import com.fr.form.ui.container.WParameterLayout; |
||||||
|
import com.fr.form.ui.container.WVerticalBoxLayout; |
||||||
|
import com.fr.general.Inter; |
||||||
|
|
||||||
|
/** |
||||||
|
* Author : Shockway |
||||||
|
* Date: 13-6-17 |
||||||
|
* Time: 上午10:40 |
||||||
|
*/ |
||||||
|
public class FormWidgetOption extends WidgetOption { |
||||||
|
|
||||||
|
/** |
||||||
|
* 返回名字 |
||||||
|
* @return 名字 |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public String optionName() { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 返回图标 |
||||||
|
* @return 图标 |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public Icon optionIcon() { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 组件类 |
||||||
|
* @return 类 |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public Class<? extends Widget> widgetClass() { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 返回组件 |
||||||
|
* @return 控件 |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public Widget createWidget() { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
/* |
||||||
|
* 表单容器 |
||||||
|
*/ |
||||||
|
public static WidgetOption[] getFormContainerInstance() { |
||||||
|
return new WidgetOption[] { ABSOLUTELAYOUTCONTAINER, BORDERLAYOUTCONTAINER, HORIZONTALBOXLAYOUTCONTAINER, VERTICALBOXLAYOUTCONTAINER, |
||||||
|
CARDLAYOUTCONTAINER, FITLAYOUTCONTAINER }; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 表单工具栏上的布局 |
||||||
|
* @return 控件 |
||||||
|
*/ |
||||||
|
public static WidgetOption[] getFormLayoutInstance() { |
||||||
|
return new WidgetOption[] {CARDLAYOUTCONTAINER, ABSOLUTELAYOUTCONTAINER}; |
||||||
|
} |
||||||
|
|
||||||
|
public static final WidgetOption ABSOLUTELAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter |
||||||
|
.getLocText("FR-Designer_Layout_Block_Absolute"), BaseUtils.readIcon("/com/fr/design/images/buttonicon/layout_absolute_new.png"), |
||||||
|
WAbsoluteLayout.class); |
||||||
|
|
||||||
|
public static final WidgetOption BORDERLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter |
||||||
|
.getLocText("FR-Designer_BorderLayout"), BaseUtils.readIcon("/com/fr/web/images/form/resources/layout_border.png"), |
||||||
|
WBorderLayout.class); |
||||||
|
|
||||||
|
public static final WidgetOption CARDLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter |
||||||
|
.getLocText("FR-Designer_Layout_Block_Tab"), BaseUtils.readIcon("/com/fr/design/images/buttonicon/card_layout_16.png"), |
||||||
|
WCardLayout.class); |
||||||
|
|
||||||
|
public static final WidgetOption HORIZONTALBOXLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter |
||||||
|
.getLocText("FR-Designer_Layout-HBox"), BaseUtils.readIcon("/com/fr/web/images/form/resources/boxlayout_h_16.png"), |
||||||
|
WHorizontalBoxLayout.class); |
||||||
|
|
||||||
|
public static final WidgetOption VERTICALBOXLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter |
||||||
|
.getLocText("FR-Designer_VerticalBoxLayout"), BaseUtils.readIcon("/com/fr/web/images/form/resources/boxlayout_v_16.png"), |
||||||
|
WVerticalBoxLayout.class); |
||||||
|
|
||||||
|
public static final WidgetOption FITLAYOUTCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter.getLocText("FR-Designer-Layout_Adaptive_Layout"), |
||||||
|
BaseUtils.readIcon("/com/fr/web/images/form/resources/boxlayout_v_16.png"), |
||||||
|
WFitLayout.class); |
||||||
|
|
||||||
|
public static final WidgetOption PARAMETERCONTAINER = WidgetOptionFactory.createByWidgetClass(Inter |
||||||
|
.getLocText("FR-Designer_Para-Body"), BaseUtils.readIcon("/com/fr/web/images/form/resources/layout_parameter.png"), |
||||||
|
WParameterLayout.class); |
||||||
|
|
||||||
|
public static final WidgetOption ELEMENTCASE = WidgetOptionFactory.createByWidgetClass(Inter |
||||||
|
.getLocText("FR-Designer_Form-Report"), BaseUtils.readIcon("/com/fr/design/images/buttonicon/report_16.png"), |
||||||
|
ElementCaseEditor.class); |
||||||
|
} |