text stringlengths 3 1.18M |
|---|
package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing... |
package vista;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import modelo.Ingrediente;
public class VentanaListadoIngredienteModeloTabla extends AbstractTableModel {
private static String[] titulos = {"Codigo del Ingrediente", "Nombre", "Existencia"}... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import javax.swing.JOptionPane;
public class ProductoDAO {
public ProductoDAO() {
super();
}
public void registrarProducto(Producto producto) {
... |
package modelo;
import java.sql.*;
public class Conexion {
// La descripcion del driver de la BD
private static String driver = "org.postgresql.Driver";
// La direccion URL de la BD
private static String url = "jdbc:postgresql://localhost:5432/";
// El nombre de la BD
priv... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class OrdenDAO {
public OrdenDAO() {
super();
}
public void registrarOrden(Orden orden) {
String tiraSQL = "INSERT INTO orden "+
"(codigoorden, codigocli... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class DetalleCompraDAO {
public DetalleCompraDAO() {
super();
}
public void registrarDetalleCompra(DetalleCompra detallecompra) {
String tiraSQL = "INSERT INTO de... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JOptionPane;
public class ClienteDAO {
public ClienteDAO() {
super();
}
public void registrarCliente(Cliente cliente) {
String tiraSQL = "INSERT I... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
public class CompraDAO {
public CompraDAO() {
super();
}
public void registrarCompra(Compra compra) {
String tiraSQL = "INSERT INTO compra "+
... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
public class CategoriaDAO {
public CategoriaDAO() {
super();
}
public void registrarCategoria(Categoria categoria) {
String tiraSQL = "INSERT I... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class DetalleOrdenDAO {
public DetalleOrdenDAO() {
super();
}
public void registrarDetalleOrden(DetalleOrden detalleorden) {
String tiraSQL = "INSERT INTO detalle... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class DetalleProductoDAO {
public DetalleProductoDAO() {
super();
}
public void registrarDetalleProducto(DetalleProducto detalleproducto) {
String tiraSQL = "INSE... |
package modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
public class IngredienteDAO {
public IngredienteDAO() {
super();
}
public void registrarIngrediente(Ingrediente ingrediente) {
String tiraSQL... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
*Este es un OVNI que ayuda al jugador a distraer a Mom Alone
* @author Alejandro Caldera
* @version (a version number or a date)
*/
public class Ovni extends Actor
{
/**
* Act - do whatever the Ins1 wants to do. This meth... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Botón play , inicia juego
*
* @author (your name)
* @version (a version number or a date)
*/
public class Play extends Boton
{
public Play(Nivel1 world)
{
super(world);
}
/**
* Act - do whate... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
* Aquí se cargan los tres niveles, así como el menú del juego.
*
* @author Alejandro Caldera
*
*/
public class Nivel1 extends World
{
private Label label3;
private Label label1;
private Label la... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Obstáculo de Nivel 1.
*
* @author Alejandro Caldera
* @version (a version number or a date)
*/
public class Pelota extends Items
{
/**
* Act - do whatever the pelota wants to do. This method is called whenever
* t... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Obstáculo del Nivel 2
*
* @author (your name)
* @version (a version number or a date)
*/
public class Bart extends Items
{
/**
* Act - do whatever the Lamp wants to do. This method is called whenever
* the 'Act' ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Bala
*
* @author (your name)
* @version (a version number or a date)
*/
public class Bullet extends Mover
{
public Bullet(int rotation)
{
setRotation(rotation);
GreenfootImage img = getImage();
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Insecto 1 es eliminado mediante una descarga
*
* @author (your name)
* @version (a version number or a date)
*/
public class Ins1 extends Plaga
{
/**
* Act - do whatever the Ins1 wants to do. This method is called wh... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Recarga here.
*
* @author Alejandro Caldera
* @version (a version number or a date)
*/
public class Recarga extends Items
{
/**
* Act - do whatever the Recarga wants to do. This method is c... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Letrero de pierdes.
*
* @author Alejandro Caldera
* @version (a version number or a date)
*/
public class Pierdes extends Items
{
/**
* Act - do whatever the Pierdes wants to do. This method is called whenever
* t... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Clase botón que indica que acciṕon se realiza dependiendo el botón presionado
*
* @author Dulce Beltrán
* @version (a version number or a date)
*/
public class Boton extends Actor
{
private Nivel1 mund;
publi... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
/**
* This is a generic, reusable Label for a user interface. This label is part of the "MSG"
* Greenfoot GUI toolkit.
*
* Note that positioning places the label's top left corner at the target location.
*
* @au... |
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot)
/**
* Este es el fumigador que exterminará todos los insectos, tiene zapatos que lo hacen volar.
*/
public class Fumigador extends Mover
{
int shootdelay=0;
int mindelay=5;
private int level=1,vidas,tiros;
private Label vida,tiro;
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Botón ayuda
*
* @author (your name)
* @version (a version number or a date)
*/
public class Help extends Boton
{
public Help(Nivel1 world)
{
super(world);
}
/**
* Act - do whatever the Help wants to d... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Items here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Items extends Actor
{
/**
* Act - do whatever the Items wants to do. This method is called whene... |
/**
* Vector - This class was written as a utility class for Greenfoot scenarios.
*
* This class represents a 2-dimensional vector.
*
* The vector can be used to deal with movement information (speed and
* direction) of actors. An actor can store a vector, and then other vectors
* can be added to modify the ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Agrupa a todas las clases insecto.
*
* @author Alejandro Caldera
* @version (a version number or a date)
*/
public class Plaga extends Actor
{
/**
* Act - do whatever the Plaga wants to do. This method is called whenev... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Botón regresa a menú
*
* @author (your name)
* @version (a version number or a date)
*/
public class Back extends Boton
{
public Back(Nivel1 world)
{
super(world);
}
/**
* Act - do whatever the pl... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Insecto 2 requiere una descarga para su eliminación, es el semental de los insectos.
* @author Alejandro Caldera
* @version (a version number or a date)
*/
public class Ins2 extends Plaga
{
/**
* Act - do whatever the In... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
import java.awt.Font;
/**
* Write a description of class Bar here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Health extends Items
{
public static int shotstaken=0;... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
*
* Insecto que requiere un disparo para su eliminación.
*
* @author (Alejandro Caldera)
*
*/
public class Ins3 extends Plaga
{
/**
* Act - do whatever the Ins1 wants to do. This method is called whenever
* the ... |
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot)
/**
* A superclass for specific actor classes that add smooth movement functionality.
*
* Movement is based on doubles (rather than ints), and thus generates smoother
* movement for fast moving actors in high resolution worlds.
*
* The Smoot... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Boton créditos
*
* @author Alejandro Caldera
* @version (a vers number or a date)
*/
public class Credits extends Boton
{
public Credits(Nivel1 world)
{
super(world);
}
/**
* Act - do whatev... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Insecto matriarca, es eliminado mediante 20 descargas.
*
* @author Alejandro Caldera
* @version (a version number or a date)
*/
public class MomAlone extends Plaga
{
/**
* Act - do whatever the Ins1 wants to do. This m... |
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot)
public class Mover extends Actor
{
private static final double WALKING_SPEED = 5.0;
/**
* Turn 90 degrees to the right (clockwise).
*/
public void turn()
{
turn(90);
}
/**
* Turn 'angle' degre... |
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot)
/**
* Write a description of class Debris here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Debris extends SmoothMover
{
private static final Vector GRAVITY = new Vector(90, 1.5);
private static fin... |
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot)
import java.util.List;
/**
* Bomba se activa con botón X
*
* @author Alejandro Caldera
*/
public class Bomb extends Actor
{
private static final int NUM_FRAGMENTS = 40;
/**
* Act - do whatever the Rock wants to do. This method... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
*
* Este es un insecto hijo que es creado cuando dos insectos se intersectan, es más fuerte requiere de 2 disparos para su eliminación.
* @author (Alejandro Caldera)
*
*/
public class InsHijo extends Plaga
{
/**
* Act -... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class its the submenu where the player can find the credist from the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class CreditsWindow extends World
{
private Return b;
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
* A Counter class that allows you to display a numerical value on screen.
*
* The Counter is an actor, so you will need to create it, and then add it to
* the world in Greenfoot. If you keep a reference to ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* The space is te escenary where the user play, this escenary is used like main of the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Juego extends World
{
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class make reference to the variety of enemies on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (29 june 2013)
*/
public class Enemy extends Actor
{
private int vida;
enum Direccion{L,R,U... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* The BasicEnemy is the enemy whit easy difficulty to kill.
*
* @author (Arturo Aaron Rios Obregon)
* @version (29 june 2013)
*/
public class BasicEnemy extends Enemy
{
private int shut;
/**
* Constructo... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
import java.util.List;
/**
* An actor class that can display a scoreboard, using Greenfoot's
* UserInfo class.
*
* You typically use this by including some code into the world for when your game ends:
*
* <... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the rocket bullet, one of the kinds of bullets on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Laser extends Bala
{
private SimpleTimer... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* The ProducerEnemy have the special power to create new Basic Enemy
*
* @author (Arturo Aaron Rios Obregon)
* @version (29 june 2013)
*/
public class ProducerEnemy extends Enemy
{
private SimpleTimer cTimer;
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Heavy MachineGun item.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class H extends Item
{
/**
* Constructor
*/
public H()
{... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Ammo item.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Ammo extends Item
{
/**
* Constructor
*/
public Ammo()
{
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the button class which show the records on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class Records extends Boton
{
/**
* this class d... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the normal bullet, one of the kinds of bullets on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Bullet extends Bala
{
/**
* Contru... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Meteor is a subclass of Enemy, is not a danguerous enemy.
*
* @author (Arturo Aaron Rios Obregon)
* @version (29 june 2013)
*/
public class Meteor extends Enemy
{
private boolean direccion;
/**
* Const... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the main menu on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class Menu extends World
{
private Start b1;
private Help b2;
private ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the shield for the player.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Escudo extends Bala
{
private int vida;
private SimpleTimer cTimer;
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Gas item who increasse the life points of the player.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Gas extends Item
{
/**
* Constructor... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the button class which create the buttons of the main menu..
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class Boton extends Actor
{
/**
* this c... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the rocket bullet, one of the kinds of bullets on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Rocket extends Bala
{
/**
* Contruc... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to all kind of bullets used on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Bala extends Actor
{
private int damage;
/**
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Laser of the motherShip when she will shoot the killer laser.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class IniLaser extends Bala
{
private Gr... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the bullets of the enemies.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class BulletEnemy extends Bala
{
/**
* Contructor
*/
public B... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
* The item class makes reference to the diversity of items that exist on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (29 de junio)
*/
public class Item extends Actor
{
Random ran... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the hero of the game, who the user will use to play.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Hero extends Actor
{
private Bala arma;
pr... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Rocket item.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class R extends Item
{
/**
* Constructor
*/
public R()
{
s... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the button class which show the help to the user.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class Help extends Boton
{
/**
* this class doesnt ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Laser item.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class L extends Item
{
/**
* Constructor
*/
public L()
{
su... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the button class which return to the main menu.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class Return extends Boton
{
/**
*this class doesnt a... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* The DupEnenmy is the enemy whit medium difficulty to kill and when his die create 2 BasicEnemy.
*
* @author (Arturo Aaron Rios Obregon)
* @version (29 june 2013)
*/
public class DupEnemy extends Enemy
{
private i... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Laser of the motherShip when she will shoot the killer laser.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class LaserMadre extends Bala
{
private ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.io.BufferedInputS... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* The MotherShip is the most difficult enemy to kill and its considerated the boss enemy.
*
* @author (Arturo Aaron Rios Obregon)
* @version (30 june 2013)
*/
public class MotherShip extends Enemy
{
private SimpleT... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the simpleBullet, one of the kinds of bullets on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class SimpleBullet extends Bala
{
/**
* Co... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the missile bullet, one of the kinds of bullets on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Misil extends Bala
{
/**
* Contruc... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the button class which start the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class Start extends Boton
{
/**
* this class doesnt act.
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* The NormalEnemy is the enemy whit medium difficulty to kill.
*
* @author (Arturo Aaron Rios Obregon)
* @version (29 june 2013)
*/
public class NormalEnemy extends Enemy
{
private int shut;
/**
* Constr... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Shiel item who provied to the player a shield for a moment.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Shield extends Item
{
/*... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class its the submenu where the player can find the help to know how play.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class HelpWindow extends World
{
private Return b;
p... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the button class which show the credits on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class Credits extends Boton
{
/**
* this class d... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class its the submenu where the player can find the record on the game.
*
* @author (Arturo Aaron Rios Obregon)
* @version (2 july 2013)
*/
public class RecordsWindow extends World
{
private Return b;
p... |
/**
* A simple timer class that allows you to keep track of how much time
* has passed between events.
*
* You use this class by creating a timer as a member field in your actor (or whatever):
* <pre>
*
* private SimpleTimer timer = new SimpleTimer();
* </pre>
*
* Then when you want to start the timer (for... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* This class makes reference to the Bomb item.
*
* @author (Arturo Aaron Rios Obregon)
* @version (25 june 2013)
*/
public class Bomb extends Item
{
/**
* Constructor
*/
public Bomb()
{
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.test;
import com.startup.musicstore.test.repository.RepositoryJUnitTest;
import com.startup.musicstore.test.services.QuestionExampleJUnitTest;
import org.junit.After;
import org.junit.Afte... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
/**
*
* @author linda
*/
@Embeddable
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.pe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import ja... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persiste... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import javax.persistence.Embeddable;
/**
*
* @author linda
*/
@Embeddable
public class SampleClip implements Serializable{
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.pe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
imp... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import javax.persistence.Embeddable;
/**
*
* @author linda
*/
@Embeddable
public class Name implements Serializable{
privat... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Generati... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import javax.persistence.Embeddable;
/**
*
* @author linda
*/
@Embeddable
public class Contact implements Serializable{
pri... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.app.conf;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
/**
*
* @a... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.app.conf;
import org.springframework.context.ApplicationContext;
/**
*
* @author boniface
*/
public class GetContext {
private static ApplicationContext ctx;
public static void s... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.app.factory;
import com.startup.musicstore.model.Album;
import com.startup.musicstore.model.AlbumCategory;
import com.startup.musicstore.model.ArtistInformation;
import com.startup.musicst... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.app.exceptions;
/**
*
* @author boniface
*/
public class CreditCardRejectionException extends RuntimeException {
public CreditCardRejectionException(String message) {
super... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.startup.musicstore.app.exceptions;
/**
*
* @author boniface
*/
public class MarketInformationPendingException extends RuntimeException{
public MarketInformationPendingException(String message) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.