OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 18 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 156
Line 11... Line 11...
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.erp.action;
14
 package org.openconcerto.erp.action;
15
 
15
 
16
import org.openconcerto.sql.Configuration;
16
import org.openconcerto.erp.core.common.element.SocieteCommonSQLElement;
17
import org.openconcerto.sql.view.EditFrame;
17
import org.openconcerto.sql.PropsConfiguration;
18
 
18
 
19
import javax.swing.Action;
19
public class NouvelleSocieteAction extends CreateEditFrameAbstractAction<SocieteCommonSQLElement> {
20
import javax.swing.JFrame;
-
 
21
 
20
 
22
public class NouvelleSocieteAction extends CreateFrameAbstractAction {
-
 
23
 
-
 
24
    public NouvelleSocieteAction() {
21
    public NouvelleSocieteAction(final PropsConfiguration conf) {
25
        super();
-
 
26
        this.putValue(Action.NAME, "Nouvelle société");
22
        super(conf, SocieteCommonSQLElement.class);
27
    }
23
    }
28
 
24
 
29
    @Override
-
 
30
    public JFrame createFrame() {
-
 
31
        return new EditFrame(Configuration.getInstance().getDirectory().getElement("SOCIETE_COMMON"));
-
 
32
    }
-
 
33
}
25
}