Revision 298 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.serv/org.gvsig.tools.swing.serv.field/src/main/java/org/gvsig/tools/swing/serv/field/component/date/JDateDynFieldComponentFactory.java

View differences:

JDateDynFieldComponentFactory.java
62 62
    /**
63 63
     * @param time
64 64
     */
65
    public JDateDynFieldComponentFactory(int type, String subType) {
65
    public JDateDynFieldComponentFactory(int type) {
66 66
        this.type = type;
67
        this.subType = subType;
67
        this.subType = null;
68 68
    }
69 69

  
70 70
    /**
71 71
     * @param time
72 72
     */
73
    public JDateDynFieldComponentFactory(int type) {
73
    public JDateDynFieldComponentFactory(int type, String subType) {
74 74
        this.type = type;
75
        this.subType = null;
75
        this.subType = subType;
76 76
    }
77 77

  
78
    public JDynFieldComponent createJDynFieldComponent(ValueField parent) throws ServiceException {
78
    public JDynFieldComponent createJDynFieldComponent(ValueField parent)
79
        throws ServiceException {
79 80
        return new JDateCalendarDynFieldComponent(parent);
80
//        
81
//        return new JDateDynFieldComponent(parent, dynField, dynField
82
//            .getSubtype());
81
        //        
82
        // return new JDateDynFieldComponent(parent, dynField, dynField
83
        // .getSubtype());
83 84
    }
84 85

  
85 86
    /*
......
88 89
     * @see
89 90
     * 
90 91
     * 
92
     * 
93
     * 
91 94
     * org.gvsig.tools.swing.spi.AbstractSwingServiceFactory#getFactoryDescription
92 95
     * ()
93 96
     */
......
115 118
     */
116 119
    @Override
117 120
    public Integer getFactoryType() {
118
        if (this.type == 0)
121
        if (this.type == 0) {
119 122
            return DataTypes.DATE;
123
        }
120 124
        return this.type;
121 125
    }
122 126

  

Also available in: Unified diff