Revision 2035 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.dynform/org.gvsig.tools.dynform.spi/src/main/java/org/gvsig/tools/dynform/spi/dynformfield/AbstractJDynFormField.java

View differences:

AbstractJDynFormField.java
161 161
    }
162 162

  
163 163
    @Override
164
    public String getSeparatorTitleToUseBefore() {
165
        String separatorTitle = this.getTagValueAsString(
166
                DynFormSPIManager.TAG_DYNFORM_SEPARATOR, 
167
                null
168
        );
169
        return separatorTitle;
170
    }
171
    
172
    @Override
173
    public boolean useEmptyLabel() {
174
        boolean useEmpty = getTagValueAsBoolean(
175
                DynFormSPIManager.TAG_DYNFORM_LABEL_EMPTY, 
176
                false
177
        );
178
        return useEmpty;
179
    }
180
    
181
    @Override
164 182
    public JComponent getJLabel() {
165 183
        if (this.jlabel == null) {
166 184
            this.jlabel = this.getComponentsFactory().getJLabel(definition, null);
167 185
            if( this.jlabel==null ) {
168 186
                this.jlabel = new JLabel();
169 187
            }
170
            if (!getTagValueAsBoolean(DynFormSPIManager.TAG_DYNFORM_LABEL_EMPTY, false)) {
188
            if (!this.useEmptyLabel() ) {
171 189
                this.jlabel.setText(this.getLabel());
172 190
            }
173 191
            this.jlabel.setLabelFor(this.contents);

Also available in: Unified diff