Revision 2853

View differences:

org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.dynform/org.gvsig.tools.dynform.services/src/main/java/org/gvsig/tools/dynform/services/dynformfield/Date/JDynFormFieldDate.java
80 80
    @Override
81 81
    public void setReadOnly(boolean readonly) {
82 82
        JComponent theJlabel = this.getJLabel();
83
        if( theJlabel !=null ) {
83
        if( this.jlabel != null ) {
84
            this.jlabel.setEnabled(!readonly);
85
        } else if( theJlabel !=null ) {
84 86
            theJlabel.setEnabled(!readonly);
85 87
        }
86 88
        this.readOnly = readonly;
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.dynform/org.gvsig.tools.dynform.services/src/main/java/org/gvsig/tools/dynform/services/dynformfield/Bytearray/JDynFormFieldBytearray.java
28 28
import java.awt.event.FocusListener;
29 29
import java.util.Objects;
30 30
import javax.swing.JButton;
31
import javax.swing.JComponent;
31 32
import javax.swing.JPanel;
32 33
import javax.swing.JTextField;
33 34
import javax.swing.event.ChangeEvent;
......
65 66

  
66 67
    @Override
67 68
    public void setReadOnly(boolean readonly) {
68
//        super.setReadOnly(readonly);
69
        JComponent theJlabel = this.getJLabel();
70
        if( this.jlabel != null ) {
71
            this.jlabel.setEnabled(!readonly);
72
        } else if( theJlabel !=null ) {
73
            theJlabel.setEnabled(!readonly);
74
        }
69 75
        this.readOnly = readonly;
70 76
//        if (this.contents != null) {
71 77
//            this.contents.setEnabled(true);
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.dynform/org.gvsig.tools.dynform.services/src/main/java/org/gvsig/tools/dynform/services/dynformfield/Timestamp/JDynFormFieldTimestamp.java
70 70

  
71 71
    @Override
72 72
    public void setReadOnly(boolean readonly) {
73
        JComponent theJlabel = this.getJLabel();
74
        if( this.jlabel != null ) {
75
            this.jlabel.setEnabled(!readonly);
76
        } else if( theJlabel !=null ) {
77
            theJlabel.setEnabled(!readonly);
78
        }
73 79
        this.readonly = readonly;
74 80
        if (this.contents != null) {
75 81
            if (readonly) {

Also available in: Unified diff