@Test public void GetAsText() { editor.setValue(new Year(2000)); assertEquals("2000", editor.getAsText()); }
@Override public String getAsText() { Year year = (Year) getValue(); if (year == null) { return ""; } else { return Integer.toString(year.getYear()); } }
YearEditor extends PropertyEditorSupport { @Override public String getAsText() { Year year = (Year) getValue(); if (year == null) { return ""; } else { return Integer.toString(year.getYear()); } } }
YearEditor extends PropertyEditorSupport { @Override public String getAsText() { Year year = (Year) getValue(); if (year == null) { return ""; } else { return Integer.toString(year.getYear()); } }  }
YearEditor extends PropertyEditorSupport { @Override public String getAsText() { Year year = (Year) getValue(); if (year == null) { return ""; } else { return Integer.toString(year.getYear()); } }  @Override String getAsText(); @Override void setAsText(String text); }
YearEditor extends PropertyEditorSupport { @Override public String getAsText() { Year year = (Year) getValue(); if (year == null) { return ""; } else { return Integer.toString(year.getYear()); } }  @Override String getAsText(); @Override void setAsText(String text);  }