Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard
 
66f0c834c28b40aeac91b173d6def82e24c3b02b
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
package gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Frame;

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

import domain.Owner;
import domain.RuralHouse;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.util.Vector;
import javax.swing.JLabel;
import java.awt.Color;
import java.awt.Font;

public class HousesRelatedOwnerGUI extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private Owner owner;
	/**
	 * Create the frame.
	 */
	public HousesRelatedOwnerGUI(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 btnCreateHouses = new JButton("Create Houses");
		btnCreateHouses.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				Frame a = new RequestNewHouseGUI(owner);
				a.setVisible(true);
			}
		});
		
		JButton btnModifyHouses = new JButton("Modify Houses");
		btnModifyHouses.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				Frame a = new ModifyHouseGUI(owner);
				a.setVisible(true);
				
			}
		});
		
		JButton btnDeleteHouses = new JButton("Delete Houses");
		btnDeleteHouses.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Frame a = new RequestDeleteHouseGUI(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(btnDeleteHouses, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE)
						.addComponent(btnModifyHouses, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE)
						.addComponent(btnCreateHouses, GroupLayout.DEFAULT_SIZE, 1125, Short.MAX_VALUE))
					.addGap(121))
		);
		gl_contentPane.setVerticalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addGap(88)
					.addComponent(btnCreateHouses, GroupLayout.PREFERRED_SIZE, 58, GroupLayout.PREFERRED_SIZE)
					.addGap(40)
					.addComponent(btnModifyHouses, GroupLayout.PREFERRED_SIZE, 57, GroupLayout.PREFERRED_SIZE)
					.addGap(39)
					.addComponent(btnDeleteHouses, GroupLayout.PREFERRED_SIZE, 54, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(394, Short.MAX_VALUE))
		);
		contentPane.setLayout(gl_contentPane);
	}
}

Commits for RRRRHHHH_CoderuralHouses/src/gui/HousesRelatedOwnerGUI.java

Diff revisions: vs.
Revision Author Commited Message
66f0c8 ... Diff Diff Eneko Pinzolas Murua Sun 12 Apr, 2015 18:11:42 +0000

Model modified so that owners now request for a new house insetion or a house removal. Furthermore, all Administrator GUI and bussines logic create. However, Login GUI and BussinesLogic are to be modified so that they integrate Admin identification.

5ad0cc ... Diff Diff Eneko Pinzolas Murua Wed 01 Apr, 2015 17:46:59 +0000

ModifyHouseGUI created and its link from HouseRelatedOwnerGUI reestablished

5c77c5 ... Diff Diff Eneko Pinzolas Murua Tue 10 Mar, 2015 12:52:32 +0000

for testing purpouses

a92725 ... Diff Diff pinene picture pinene Fri 06 Mar, 2015 09:41:12 +0000

implemented lacking GUIs and corrected errors

7b7027 ... pinene picture pinene Thu 05 Mar, 2015 12:22:00 +0000

Owner related new GUI created, some of them are disabled until corresponding logic is created.