42 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
43 |
|
|
44 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
45 |
|
import org.opengis.util.InternationalString; |
46 |
|
|
47 |
/** |
/** |
48 |
* Represents a {@link HashMap} of translations. toString() returns the |
* Represents a {@link HashMap} of translations. toString() returns the |
193 |
*/ |
*/ |
194 |
public void fromOneLine(final String oneLineCoded) { |
public void fromOneLine(final String oneLineCoded) { |
195 |
clear(); |
clear(); |
196 |
|
|
197 |
if ((oneLineCoded == null) || (oneLineCoded.equals(""))) { |
if ((oneLineCoded == null) || (oneLineCoded.equals(""))) { |
198 |
put(DEFAULT_KEY, ""); |
put(DEFAULT_KEY, ""); |
199 |
return; |
return; |
331 |
fireTranslationChangedEvents(lang); |
fireTranslationChangedEvents(lang); |
332 |
return result; |
return result; |
333 |
} |
} |
334 |
|
|
335 |
|
public void fromOneLine(InternationalString iString) { |
336 |
|
if (iString != null) |
337 |
|
fromOneLine(iString.toString()); |
338 |
|
else |
339 |
|
fromOneLine((String)null); |
340 |
|
} |
341 |
|
|
342 |
|
|
343 |
} |
} |