2006-12-13から1日間の記事一覧

ConfigurationFactory

汎用的に使えそうなのでメモ。 public class ConfigurationFactory { private static final String FILENAME = "xxxxx.properties"; private static Configuration singleton = null; public static Configuration getConfiguration() { if (singleton == nu…

Columnでメソッドを呼び出す

「new Column("xxxxx", "たいとる")」としても、xxxxxプロパティしかとれないので、getProperty()をオーバーライド。 Column column = new Column("date", "日付") { protected Object getProperty(Object row) { Foo foo = (Foo) row; return DateFormatUti…