/*
* Copyright (c) 2010 Bjrn Darri Sigursson
*
* This file is part of Sonav.
*
* Sonav is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.jminor.sonav.beans.ui;
import org.jminor.common.ui.layout.FlexibleGridLayout;
import org.jminor.framework.client.model.EntityEditModel;
import org.jminor.framework.client.ui.EntityEditPanel;
import org.jminor.sonav.domain.Sonav;
import javax.swing.JTextField;
/**
* An edit panel for Rule Profiles.
*/
public final class RuleProfileEditPanel extends EntityEditPanel {
/**
* Instantiates a new RuleProfileEditPanel.
* @param editModel the edit model to base this edit panel on.
*/
public RuleProfileEditPanel(final EntityEditModel editModel) {
super(editModel);
}
/** {@inheritDoc} */
protected void initializeUI() {
setInitialFocusComponentKey(Sonav.RULES_PROFILES_NAME);
final JTextField txtName = createTextField(Sonav.RULES_PROFILES_NAME);
txtName.setColumns(18);
final JTextField txtLanguage = createTextField(Sonav.RULES_PROFILES_LANGUAGE);
txtLanguage.setColumns(18);
setLayout(new FlexibleGridLayout(2, 1, 5, 5, true, false));
addPropertyPanel(Sonav.RULES_PROFILES_NAME);
addPropertyPanel(Sonav.RULES_PROFILES_LANGUAGE);
}
}
|