* @param <E>
* the type of {@link Bundle} to edit
*/
public class ConfigItem<E extends Enum<E>> extends JPanel {
private static final long serialVersionUID = 1L;
* @param <E>
* the type of {@link Bundle} to edit
*/
public class ConfigItem<E extends Enum<E>> extends JPanel {
private static final long serialVersionUID = 1L;
private String value;
private JTextField valueField;
public ConfigItem(Class<E> type, Bundle<E> bundle, E id) {
private String value;
private JTextField valueField;
public ConfigItem(Class<E> type, Bundle<E> bundle, E id) {
this.setLayout(new BorderLayout());
this.setBorder(new EmptyBorder(2, 10, 2, 10));
this.setLayout(new BorderLayout());
this.setBorder(new EmptyBorder(2, 10, 2, 10));
String name = id.toString();
if (name.length() > 1) {
name = name.substring(0, 1) + name.substring(1).toLowerCase();
String name = id.toString();
if (name.length() > 1) {
name = name.substring(0, 1) + name.substring(1).toLowerCase();
nameLabel.setPreferredSize(new Dimension(400, 0));
this.add(nameLabel, BorderLayout.WEST);
nameLabel.setPreferredSize(new Dimension(400, 0));
this.add(nameLabel, BorderLayout.WEST);