Revision 270 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.serv/org.gvsig.tools.swing.serv.jform/src/main/java/org/gvsig/tools/swing/serv/jform/StringJDynObjectComponent.java

View differences:

StringJDynObjectComponent.java
51 51
 * @author 2010- C?sar Ordi?ana - gvSIG team
52 52
 */
53 53
public class StringJDynObjectComponent extends AbstractDynObjectComponent
54
	implements JDynObjectComponent {
54
    implements JDynObjectComponent {
55 55

  
56 56
    private static final long serialVersionUID = 5716325904557339463L;
57 57
    private JPanel panel;
......
61 61
     * @see JDynObjectView#JDynObjectView(DynObject).
62 62
     */
63 63
    public StringJDynObjectComponent(DynObject dynObject, DynObjectModel model)
64
	    throws ServiceException {
65
	super(dynObject, model);
66
	this.initUI();
64
        throws ServiceException {
65
        super(dynObject, model);
66
        this.initUI();
67 67
    }
68 68

  
69 69
    /*
......
74 74
     * (org.gvsig.tools.swing.api.dynobject.ValueChangedListener)
75 75
     */
76 76
    public void addValueChangedListener(ValueChangedListener listener) {
77
	// TODO Auto-generated method stub
77
        // TODO Auto-generated method stub
78 78

  
79 79
    }
80 80

  
......
83 83
     * 
84 84
     * @see org.gvsig.tools.swing.api.dynobject.JComponent#getComponent()
85 85
     */
86
	public JComponent asJComponent() {
87
	return panel;
86
    public JComponent asJComponent() {
87
        return panel;
88 88
    }
89 89

  
90 90
    /*
......
96 96
     */
97 97
    @Override
98 98
    public Object getValue() {
99
	// TODO Auto-generated method stub
100
	return null;
99
        // TODO Auto-generated method stub
100
        return null;
101 101
    }
102 102

  
103 103
    /*
104 104
     * (non-Javadoc)
105 105
     * 
106 106
     * @see
107
     * 
107 108
     * org.gvsig.tools.swing.api.dynobject.ValueChangedListener#handleValueChanged
108 109
     * (org.gvsig.tools.swing.api.dynobject.dynfield.JDynFieldComponent)
109 110
     */
110 111
    public void handleValueChanged(JDynFieldComponent field) {
111
	// TODO Auto-generated method stub
112
        // TODO Auto-generated method stub
112 113

  
113 114
    }
114 115

  
115 116
    private void initUI() {
116
	panel = new JPanel();
117
	panel.setLayout(new BorderLayout());
118
	JLabel label = new JLabel("<html><pre>".concat(
119
		this.getDynObject().toString()).concat("</pre></html>"));
120
	panel.add(label, BorderLayout.CENTER);
117
        panel = new JPanel();
118
        panel.setLayout(new BorderLayout());
119
        JLabel label =
120
            new JLabel("<html><pre>".concat(this.getDynObject().toString())
121
                .concat("</pre></html>"));
122
        panel.add(label, BorderLayout.CENTER);
121 123
    }
122 124

  
123 125
    /*
124 126
     * (non-Javadoc)
125 127
     * 
126 128
     * @see
129
     * 
127 130
     * org.gvsig.tools.swing.api.dynobject.dynfield.JDynFieldComponent#isMandatory
128 131
     * ()
129 132
     */
130 133
    public boolean isMandatory() {
131
	// TODO Auto-generated method stub
132
	return false;
134
        // TODO Auto-generated method stub
135
        return false;
133 136
    }
134 137

  
135 138
    /*
......
141 144
     */
142 145
    @Override
143 146
    protected boolean isValid(JDynFieldComponent component) {
144
	// TODO Auto-generated method stub
145
	return false;
147
        // TODO Auto-generated method stub
148
        return false;
146 149
    }
147 150

  
148 151
    /*
......
152 155
     * org.gvsig.tools.swing.api.dynobject.JDynObjectComponent#requestFocus()
153 156
     */
154 157
    public void requestFocus() {
155
	// TODO Auto-generated method stub
158
        // TODO Auto-generated method stub
156 159

  
157 160
    }
158 161

  
159 162
    @Override
160 163
    public void saveStatus() {
161
	// Nothing to do, as this component is not able to edit the DynObject
162
	// data.
164
        // Nothing to do, as this component is not able to edit the DynObject
165
        // data.
163 166
    }
164 167

  
165 168
    /*
......
170 173
     * (java.lang.Object)
171 174
     */
172 175
    public void setValue(Object value) {
173
	// TODO Auto-generated method stub
176
        // TODO Auto-generated method stub
174 177

  
175 178
    }
176
}
179
}

Also available in: Unified diff