Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard
 
076d768e70e04655a2c343f46d0808c16a27130c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package gui;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.rmi.Naming;
import java.rmi.RemoteException;

import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import common.HouseInterface;

import configuration.___IntNames;
import domain.Owner;

public class OffersRelatedOwnerGUI extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private Owner owner;
	/**
	 * Create the frame.
	 */
	public OffersRelatedOwnerGUI(Owner o) {
		this.getContentPane().setLayout(null);
		owner = o;
		setBounds(100, 100, 450, 562);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		
		JButton btnCreateOffers = new JButton("Create Offers");
		btnCreateOffers.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				HouseInterface houseM=null;
				try {
					houseM = (HouseInterface) Naming
							.lookup(___IntNames.HouseManager);
				} catch (Exception e1) {
					System.out.println("Error accessing remote authentication: "
							+ e1.toString());
				}
				Frame a = null;
				try {
					a = new AddOffersGUI(houseM.getHouses(owner, null, null, 0, 0, 0, 0, 0));
				} catch (RemoteException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				a.setVisible(true);
			}
		});
		
		JButton btnModifyOffers = new JButton("Modify Offers");
		btnModifyOffers.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				Frame a = new ModifyOfferGUI(owner);
				a.setVisible(true);
				
			}
		});
		
		JButton btnDeleteOffers = new JButton("Delete Offers");
		btnDeleteOffers.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Frame a = new DeleteOfferGUI(owner);
				a.setVisible(true);
			}
		});
		GroupLayout gl_contentPane = new GroupLayout(contentPane);
		gl_contentPane.setHorizontalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addGap(110)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING)
						.addComponent(btnDeleteOffers, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE)
						.addComponent(btnModifyOffers, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE)
						.addComponent(btnCreateOffers, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE))
					.addGap(121))
		);
		gl_contentPane.setVerticalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addGap(88)
					.addComponent(btnCreateOffers, GroupLayout.PREFERRED_SIZE, 58, GroupLayout.PREFERRED_SIZE)
					.addGap(40)
					.addComponent(btnModifyOffers, GroupLayout.PREFERRED_SIZE, 57, GroupLayout.PREFERRED_SIZE)
					.addGap(39)
					.addComponent(btnDeleteOffers, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(394, Short.MAX_VALUE))
		);
		contentPane.setLayout(gl_contentPane);
	}
}

Commits for RRRRHHHH_CoderuralHouses client/src/gui/OffersRelatedOwnerGUI.java

Diff revisions: vs.
Revision Author Commited Message
076d76 ... Diff Diff camjan Fri 22 May, 2015 22:22:23 +0000

The bug found in the presentation that we forgot to review has been fixed

ad3773 ... Diff Diff pinene picture pinene Tue 19 May, 2015 18:01:40 +0000

data now is gotten using queries

4f8bcc ... epinzolas001 Mon 18 May, 2015 09:49:54 +0000

Merge conflicts solutioned