package org.javarosa.formmanager.view.singlequestionscreen.screen;

import javax.microedition.lcdui.Command;

import org.javarosa.core.api.Constants;
import org.javarosa.core.services.locale.Localization;

import de.enough.polish.ui.FramedForm;
import de.enough.polish.ui.Item;
import de.enough.polish.ui.StringItem;
import de.enough.polish.util.Locale;

public class NewRepeatScreen extends FramedForm {

	public Command noCommand = new Command(Constants.ACTIVITY_CANCEL, Command.ITEM, 1);
	private Command yesCommand = new Command(Constants.ACTIVITY_COMPLETE, Command.ITEM, 1);

	public NewRepeatScreen() {
		super(Locale.get("view.repeat.addNew"));
		createView();
		addCommands();
	}

	/**
	 * Add initial view items to form
	 */
	protected void createView() {
		// #style button
		StringItem yesItem = new StringItem(null, Localization
				.get("button.Yes"), Item.BUTTON);
		yesItem.setDefaultCommand(yesCommand);
		// #style button
		StringItem noItem = new StringItem(null, Localization
				.get("button.No"), Item.BUTTON);
		noItem.setDefaultCommand(noCommand);

		this.append(yesItem);
		this.append(noItem);
	}

	/**
	 * Add generic commands
	 */
	private void addCommands() {
		this.addCommand(yesCommand);
		this.addCommand(noCommand);
	}
}

@@ -628,16 +628,37 @@
 %09%09super(
+%22Add new repeat?%22);//
 Locale.g

remove not working localisaion