OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 93 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 93 Rev 180
Line 74... Line 74...
74
            comp.setEnabled(this.isEditable());
74
            comp.setEnabled(this.isEditable());
75
        }
75
        }
76
        return comp;
76
        return comp;
77
    }
77
    }
78
 
78
 
-
 
79
    public final InteractionMode and(InteractionMode m) {
-
 
80
        return from(this.isEnabled() && m.isEnabled(), this.isEditable() && m.isEditable());
-
 
81
    }
-
 
82
 
79
    /**
83
    /**
80
     * Try to infer the mode of the passed component. This method has special cases for known
84
     * Try to infer the mode of the passed component. This method has special cases for known
81
     * component (.e.g {@link JTextComponent}) otherwise generic components are presumed to not have
85
     * component (.e.g {@link JTextComponent}) otherwise generic components are presumed to not have
82
     * a {@link #READ_ONLY} mode. For complete control, implement {@link InteractionComponent}.
86
     * a {@link #READ_ONLY} mode. For complete control, implement {@link InteractionComponent}.
83
     * 
87
     *