Package swing.jip

Source Code of swing.jip.JipForm

/*
* jipForm.java
*
* Created on 2009. oktober 22., 8:44
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package swing.jip;

import java.awt.FlowLayout;
import java.awt.GridBagLayout;
import java.util.EventObject;
import java.util.Vector;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import swing.dolgozo.DolgozoPanel;
import swing.form.Form;
import swing.form.FormUtil;
import system.util.Login;

/**
*
* @author laci
*/
public class JipForm extends Form{
 
// <editor-fold defaultstate="collapsed" desc="Konstruktor">
  /** Creates a new instance of jipForm */
  public JipForm(Login login) {
    super(login);
    initialize();
  }
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="inicializ�l�s">
 
  public void initialize() {
    setContentTitle(getFormResource("JipForm.ContentTitle"));
    initialize(getFormResource("JipForm.Name"), getFormResource("JipForm.Title"), getMainFrame(), true, null)
  }
 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="enabler">
 
  // TODO: befejezni
  public void enabler(EventObject e) {
   
  }
 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="reset">
 
  public void reset() {
    setValue(null);
    fill();
  }
 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="kitolt">
 
  // TODO: befejezni
  public void fill() {
   
  }
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="tkod">
 
  // TODO: befejezni
  public Integer getTkod() {
    return null;
  }
 
  public void setTkod(Integer mire) {
   
  }
 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="run">
 
  public boolean run() {
    getCancelButton().addActionListener(getDeactiveListener());
   
    return activate();
 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="FocusOrder">
 
  // TODO: befejezni
  public Vector getFocusOrder() {
    return new Vector();
  }
 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="Dolgozo">
 
  private DolgozoPanel dolgozoPanel;
 
  protected DolgozoPanel getDolgozoPanel() {
    if (dolgozoPanel == null) {
      dolgozoPanel = createDolgozoPanel();
    }
   
    return dolgozoPanel;
  }
 
  protected DolgozoPanel createDolgozoPanel() {
    DolgozoPanel temp = new DolgozoPanel(getLogin(),getFormResource("JipForm.DolgozoPanel"));
   
    return temp;
  }
 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="MainFrame">
 
  @Override
  protected JScrollPane createMainFrame() {
    JScrollPane temp = super.createMainFrame();
    JPanel foPanel = new JPanel(new GridBagLayout());
    JPanel gombPanel = new JPanel(new FlowLayout());
    getContent().add(getContentTitle(),FormUtil.newGBConstraints(0, 0, 1, 1, FormUtil.ANCHOR_CENTER, FormUtil.FILL_NONE, null));
    getContent().add(foPanel,FormUtil.newGBConstraints(0, 1, 1, 1, FormUtil.ANCHOR_CENTER, FormUtil.FILL_NONE, null));
    foPanel.add(getDolgozoPanel(),FormUtil.newGBConstraints(0, 0, 1, 1, FormUtil.ANCHOR_CENTER, FormUtil.FILL_NONE, null));
   
    getContent().add(gombPanel,FormUtil.newGBConstraints(0, 2, 1, 1, FormUtil.ANCHOR_CENTER, FormUtil.FILL_NONE, null));
    gombPanel.add(getOkButton());
    gombPanel.add(getCancelButton());

    return temp;
  }

 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="TESZT">
 
    public static void main(String[] args) {
        JipForm form = new JipForm(new Login());
    System.out.println(form.run());
   
    }
 
// </editor-fold>
 
// <editor-fold defaultstate="collapsed" desc="valid">
 
  public boolean valid() {
    return false;
  }
 
// </editor-fold>
 
}
TOP

Related Classes of swing.jip.JipForm

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.