1 package jp.ac.aiit.xdf.component.swing.mappers;
3 import java.awt.FlowLayout;
6 import javax.swing.JPanel;
7 import javax.swing.border.Border;
9 import jp.ac.aiit.xdf.component.swing.attribute.AttributeProcessingUnit;
10 import jp.ac.aiit.xdf.component.swing.attribute.CommonAttributeStore;
11 import jp.ac.aiit.xdf.component.swing.attribute.GetterAttributeProcessor;
12 import jp.ac.aiit.xdf.component.swing.attribute.SetterAttributeProcessor;
13 import jp.ac.aiit.xdf.component.swing.typeconvert.BorderConverter;
14 import jp.ac.aiit.xdf.core.action.EventHandler;
17 * groupタグをSwingのJPanelにマッピングする
19 * @author Shunichi Takagi
21 public class JPanelMapper extends SwingLayoutingComponentMapperTemplate {
24 protected Map<String, AttributeProcessingUnit> initProcessingUnits() {
25 Map<String, AttributeProcessingUnit> result = CommonAttributeStore.commonAttributes(model);
26 result.put("border", new AttributeProcessingUnit(new SetterAttributeProcessor("setBorder", Border.class), new GetterAttributeProcessor("getBorder"), new BorderConverter()));
32 protected Object newComponent() {
33 JPanel p = new JPanel();
34 p.setLayout(new FlowLayout());
41 protected Map<String, EventHandler> intiProcessingAction() {
42 // TODO Auto-generated method stub