TavernerPOS - Source Code

Clone: 

git clone http://www.librarysmith.co.uk/tavernerPOS

 

package com.floreantpos.model;

import com.floreantpos.Messages;
import com.floreantpos.model.base.BasePrinterConfiguration;



public class PrinterConfiguration extends BasePrinterConfiguration {
	private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
	public PrinterConfiguration () {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public PrinterConfiguration (java.lang.Integer id) {
		super(id);
	}

/*[CONSTRUCTOR MARKER END]*/

	public final static Integer ID = Integer.valueOf(1);

	@Override
	public String getReceiptPrinterName() {
		if(super.getReceiptPrinterName() == null) {
			return Messages.getString("PrinterConfiguration.0"); //$NON-NLS-1$
		}
		return super.getReceiptPrinterName();
	}

	@Override
	public String getKitchenPrinterName() {
		if(super.getKitchenPrinterName() == null) {
			return Messages.getString("PrinterConfiguration.1"); //$NON-NLS-1$
		}
		return super.getKitchenPrinterName();
	}
}

Add comment
These comments are moderated so so won't be published until reviewed.