MetaObject
- XML로 read/write 가능 - Object를 표시하는 방법은 JTable, JList 제공 - Object 입력/수정시 각 Object 필드는 JTextField, JPasswordFiled, JTextarea, JCheckBox, ImageIcon로 매핑 - Object를 추가/수정/삭제할 수 있는 기능를 가진 JPanel, JDialog 제공 - Preference용 JPanel, JDialog 제공 downloadpublic class Database implements MetaObject { public MetaField id = new MetaField("id", "Database Name", "", 0, false, false, MetaField.TEXT); public MetaField name = new MetaField("name", "Database Name", "", 10, true, true, MetaField.TEXT); public MetaField displayImage = new MetaField("displayImage", "Display Image", "", 20, true, false, MetaField.IMAGE); public MetaField url = new MetaField("url", "URL", "", 30, true, true, MetaField.TEXT); public MetaField driver = new MetaField("driver", "JDBC Driver", "", 20, true, true, MetaField.TEXT); public MetaField user = new MetaField("user", "User", "", 10, true, true, MetaField.TEXT); public MetaField password = new MetaField("password", "Password", "", 10, true, false, MetaField.PASSWORD); public MetaField description = new MetaField("description", "Description", "", 30, true, false, MetaField.TEXTAREA); public MetaField getKeyField() { return id; } public MetaField getDisplayImageField() { return displayImage; } }