[0] | 1 | package cz.frantovo.superPostak; |
---|
| 2 | |
---|
| 3 | import cz.frantovo.postak.InternetAddressKomu; |
---|
[5] | 4 | import cz.frantovo.postak.Nastaveni; |
---|
[0] | 5 | import java.util.Collection; |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * |
---|
| 9 | * @author fiki |
---|
| 10 | */ |
---|
| 11 | public class ZobrazovacAdres extends javax.swing.JDialog { |
---|
[3] | 12 | |
---|
| 13 | private static final long serialVersionUID = 5084215476284985170L; |
---|
| 14 | |
---|
[0] | 15 | /** Creates new form ZobrazovacAdres */ |
---|
| 16 | public ZobrazovacAdres(java.awt.Frame parent, boolean modal) { |
---|
| 17 | super(parent, modal); |
---|
| 18 | initComponents(); |
---|
[3] | 19 | panelAdres.setEditovatelny(false); |
---|
[0] | 20 | } |
---|
[3] | 21 | |
---|
[0] | 22 | public void setAdresy(Collection<InternetAddressKomu> adresy) { |
---|
| 23 | panelAdres.setAdresy(adresy); |
---|
[3] | 24 | } |
---|
| 25 | |
---|
[5] | 26 | public void setNastaveni(Nastaveni n) { |
---|
| 27 | panelAdres.setNastaveni(n); |
---|
| 28 | } |
---|
| 29 | |
---|
[0] | 30 | /** This method is called from within the constructor to |
---|
| 31 | * initialize the form. |
---|
| 32 | * WARNING: Do NOT modify this code. The content of this method is |
---|
| 33 | * always regenerated by the Form Editor. |
---|
| 34 | */ |
---|
| 35 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
---|
| 36 | private void initComponents() { |
---|
| 37 | |
---|
| 38 | panelAdres = new cz.frantovo.superPostak.PanelPrijemcu(); |
---|
| 39 | |
---|
| 40 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); |
---|
| 41 | setTitle("Seznam adres"); |
---|
| 42 | |
---|
| 43 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); |
---|
| 44 | getContentPane().setLayout(layout); |
---|
| 45 | layout.setHorizontalGroup( |
---|
| 46 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
---|
| 47 | .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 422, Short.MAX_VALUE) |
---|
| 48 | ); |
---|
| 49 | layout.setVerticalGroup( |
---|
| 50 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
---|
| 51 | .addComponent(panelAdres, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE) |
---|
| 52 | ); |
---|
| 53 | |
---|
| 54 | pack(); |
---|
| 55 | }// </editor-fold>//GEN-END:initComponents |
---|
[3] | 56 | |
---|
[0] | 57 | /** |
---|
| 58 | * @param args the command line arguments |
---|
| 59 | */ |
---|
| 60 | public static void main(String args[]) { |
---|
| 61 | java.awt.EventQueue.invokeLater(new Runnable() { |
---|
[3] | 62 | |
---|
[0] | 63 | public void run() { |
---|
| 64 | ZobrazovacAdres dialog = new ZobrazovacAdres(new javax.swing.JFrame(), true); |
---|
| 65 | dialog.addWindowListener(new java.awt.event.WindowAdapter() { |
---|
[3] | 66 | |
---|
| 67 | @Override |
---|
[0] | 68 | public void windowClosing(java.awt.event.WindowEvent e) { |
---|
| 69 | System.exit(0); |
---|
| 70 | } |
---|
| 71 | }); |
---|
| 72 | dialog.setVisible(true); |
---|
| 73 | } |
---|
| 74 | }); |
---|
| 75 | } |
---|
| 76 | // Variables declaration - do not modify//GEN-BEGIN:variables |
---|
| 77 | private cz.frantovo.superPostak.PanelPrijemcu panelAdres; |
---|
| 78 | // End of variables declaration//GEN-END:variables |
---|
| 79 | } |
---|