package devopsdistilled.operp.client.business.sales.panes;

import javax.swing.JComponent;
import javax.swing.JPanel;

import devopsdistilled.operp.client.abstracts.EntityOperation;
import devopsdistilled.operp.client.abstracts.EntityPane;
import devopsdistilled.operp.client.business.sales.controllers.SaleDescController;
import devopsdistilled.operp.client.business.sales.panes.controllers.SaleDescPaneController;
import devopsdistilled.operp.client.business.sales.panes.models.observers.SaleDescPaneModelObserver;
import devopsdistilled.operp.server.data.entity.business.SaleDesc;

public class SaleDescPane extends
		EntityPane<SaleDesc, SaleDescController, SaleDescPaneController>
		implements SaleDescPaneModelObserver {

	private final JPanel pane;

	public SaleDescPane() {
		pane = new JPanel();
	}

	@Override
	public void resetComponents() {
		// TODO Auto-generated method stub

	}

	@Override
	public SaleDescController getEntityController() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public JComponent getPane() {
		return pane;
	}

	@Override
	public void updateEntity(SaleDesc entity, EntityOperation entityOperation) {
		// TODO Auto-generated method stub

	}

}

@@ -108,15 +108,144 @@
 ng.J
-Panel;%0A
+Label;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.JScrollPane;%0Aimport javax.swing.JTextField;%0A%0Aimport net.miginfocom.swing.MigLayout;
 %0Aimp
@@ -882,54 +882,904 @@
 ne;%0A
-%0A%09public SaleDescPane() %7B%0A%09%09pane = new JPanel(
+%09private final JTextField discountField;%0A%09private final JTextField amountField;%0A%0A%09public SaleDescPane() %7B%0A%09%09pane = new JPanel();%0A%09%09pane.setLayout(new MigLayout(%22%22, %22%5B%5D%5Bgrow%5D%22, %22%5B%5D%5B%5D%5B%5D%22));%0A%09%09%0A%09%09JPanel rowDescPanel = new JPanel();%0A%09%09pane.add(rowDescPanel, %22cell 0 0,grow%22);%0A%09%09rowDescPanel.setLayout(new MigLayout(%22%22, %22%5B%5D%22, %22%5B%5D%22));%0A%09%09%0A%09%09JScrollPane scrollPane = new JScrollPane();%0A%09%09pane.add(scrollPane, %22cell 1 0,grow%22);%0A%09%09%0A%09%09JLabel lblDiscount = new JLabel(%22Discount%22);%0A%09%09pane.add(lblDiscount, %22flowx,cell 1 1,alignx right%22);%0A%09%09%0A%09%09JLabel lblAmount = new JLabel(%22Amount%22);%0A%09%09pane.add(lblAmount, %22flowx,cell 1 2,alignx right%22);%0A%09%09%0A%09%09discountField = new JTextField();%0A%09%09pane.add(discountField, %22cell 1 1,alignx right%22);%0A%09%09discountField.setColumns(10);%0A%09%09%0A%09%09amountField = new JTextField();%0A%09%09amountField.setEditable(false);%0A%09%09pane.add(amountField, %22cell 1 2,alignx right%22);%0A%09%09amountField.setColumns(10
 );%0A%09

Create basic SaleDescPane UI