text stringlengths 3 1.18M |
|---|
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.googlecode.mgwt.examples.showcase.client.activities.pulltorefresh;
import java.util.List;
import com.googlecode.mgwt.examples.showcase.client.DetailView;
import com.googlecode.mgwt.examples.showcase.client.activities.home.Topic;
import com.googlecode.mgwt.ui.client.widget.base.HasRefresh;
import com.googl... |
package com.googlecode.mgwt.examples.showcase.client.activities.pulltorefresh;
import java.util.List;
import com.googlecode.mgwt.examples.showcase.client.BasicCell;
import com.googlecode.mgwt.examples.showcase.client.ChromeWorkaround;
import com.googlecode.mgwt.examples.showcase.client.DetailViewGwtImpl;
import com.g... |
package com.googlecode.mgwt.examples.showcase.client.activities.pulltorefresh;
import java.util.LinkedList;
import java.util.List;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.AcceptsOneW... |
package com.googlecode.mgwt.examples.showcase.client.activities.pulltorefresh;
import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
public class PullToRefreshPlace extends Place {
public static class Tokenizer implements PlaceTokenizer<PullToRefreshPlace> {
@Override
publ... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.googlecode.mgwt.examples.showcase.client;
import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;
import com.googlecode.mgwt.examples.showcase.client.activities.AboutPlace;
import com.googlecode.mgwt.examples.showcase.c... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.googlecode.mgwt.examples.showcase.client;
import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;
import com.googlecode.mgwt.examples.showcase.client.activities.AboutActivity;
import com.googlecode.mgwt.examples.showcas... |
/*
* Copyright 2012 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.googlecode.mgwt.examples.showcase.client;
import com.google.gwt.place.shared.Place;
import com.googlecode.mgwt.examples.showcase.client.activities.UIPlace;
import com.googlecode.mgwt.examples.showcase.client.places.HomePlace;
import com.googlecode.mgwt.mvp.client.Animation;
import com.googlecode.mgwt.mvp.c... |
package com.googlecode.mgwt.examples.showcase.client.event;
import com.google.web.bindery.event.shared.Event;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.HandlerRegistration;
public class ActionEvent extends Event<ActionEvent.Handler> {
public interface Handler {
... |
package com.googlecode.mgwt.examples.showcase.client.event;
public interface ActionNames {
public static final String BACK = "back";
public static final String ANIMATION_END = "ae";
}
|
package com.googlecode.mgwt.examples.showcase.client;
import com.google.gwt.place.shared.Place;
import com.googlecode.mgwt.examples.showcase.client.activities.animation.AnimationPlace;
import com.googlecode.mgwt.examples.showcase.client.activities.animationdone.AnimationDissolvePlace;
import com.googlecode.mgwt.exampl... |
package com.googlecode.mgwt.examples.showcase.client;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.IsWidget;
import com.googlecode.mgwt.dom.client.event.tap.HasTapHandlers;
public interface DetailView extends IsWidget{
public HasText getHeader();
public HasText getBackbuttonT... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.googlecode.mgwt.examples.showcase.client.css;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.TextResource;
public interface AppBundle extends ClientBundle {
//This is a very nasty workaround because GWT CssResource does n... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.googlecode.mgwt.examples.showcase.client;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.web.bindery.event.shared.EventBus;
import com.googlecode.mgwt.dom.client.event.tap.TapEvent;
import com.googlecode.mgwt.dom.client.event.tap.TapHandler;
import com.googlecode.mgwt.examples.sho... |
package com.googlecode.mgwt.examples.showcase.client;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.mgwt.dom.client.event.tap.HasTapHandlers;
import com.googlecode.mgwt.ui.client.MGWT;
import com.googlecode.mg... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* x * Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.googlecode.mgwt.examples.showcase.client;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.History;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.HandlerRegistration;
import com.googlecode.mgwt.dom.client.event.mouse.HandlerRegist... |
/*
* Copyright (C) 2007 Christian Laireiter <liree@web.de>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
... |
/*
* Copyright (C) 2006 Christian Laireiter <liree@web.de>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
/*
* Copyright (C) 2007 Christian Laireiter <liree@web.de>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
/*
* Copyright (C) 2007 Christian Laireiter <liree@web.de>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
... |
/*
* Copyright (C) 2007 Christian Laireiter <liree@web.de>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
/*
* Copyright (C) 2007 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any la... |
/*
* Copyright (C) 2007 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any la... |
/*
* Copyright (C) 2007 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any la... |
/*
* Copyright (C) 2006 Moritz Tuerk <brotkasten@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
package shooter.maps;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.net.URISyntaxException;
/**
* The GameMap is a component of the Mapeditor and loads maps.
*
* @author Michail Tausch
*/
... |
package shooter.maps;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Transparency;
import java.awt.image.BufferedImage;
/**
* This class optimizes the displaying of images.
*
* @author Michail Taus... |
package shooter.maps;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;
/**
* This is the image bar of the Mapeditor.
*
* @author Michail Tausch
*/
public class ImageBar extends JPanel{
private static fin... |
package shooter.maps;
import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.IOException;
import java.net.MalformedURLExcep... |
package shooter.xml;
import java.io.File;
import java.io.FileOutputStream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.... |
package shooter.models;
import java.awt.Graphics2D;
import java.awt.Polygon;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.io.Serializable;
/**
* The main spri... |
package shooter.models;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import shooter.Images;
import shooter.handler.GameEventListener;
/**
* This class initializes a player for the game.
*
* @author Michail Tausch
*/
public class Player extends Sprite {
boolean up;
boolean ... |
package shooter.models;
import java.awt.image.BufferedImage;
import shooter.Images;
/**
* Represents a part of a border in the game
*
* @author Michail Tausch
*/
public class Wall extends Sprite {
private int kistentyp;
/**
* The constructor.
* @param x
* @param y
* @param kisten... |
package shooter.models;
import java.awt.image.BufferedImage;
import shooter.Hauptfenster;
import shooter.Images;
/**
* The shot of the game.
*
* @author Michail Tausch
*/
public class Shot extends Sprite {
/**
* The constructor.
* @param id
* @param x
* @param y
*/
public Shot(... |
package shooter;
import java.awt.Canvas;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.image.BufferStrategy;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* GUI is the provides the frame of the... |
package shooter;
/**
* This class only returns the paths of different folders
* where images, sounds, maps and replays are stored.
*
* @author Michail Tausch
*/
public class Einstellungen {
/**
* The constructor of this class
*/
public Einstellungen(){
}
/**
* Returns the path to... |
package shooter.network;
/**
* Represents a chat message.
*
* @author Michail Tausch
*/
public class ChatMessage extends Message{
String playeName = "";
String message = "";
/**
* The Constructor.
* @param playerName
*/
public ChatMessage(String playerName){
this.playeName=player... |
/**
*
*/
package shooter.network;
import java.util.ArrayList;
/**
* If the server starts the game he sends a StartMessage to all clients.
* So they also start the game.
*
* @author Michail Tausch
*/
public class StartMessage extends Message{
public ArrayList<String> redPlayers;
public A... |
package shooter.network;
/**
* Represents a connect message. Is sent if a player connects to the host.
*
* @author Michail Tausch
*/
public class connectMessage extends Message{
public String name="";
public static final String accept = "accept";
public static final String deny = "deny";
public ... |
package shooter.network;
import java.io.IOException;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import mo.network.client.listeners.IReceiver;
import mo.network.client.listeners.ISender;
import m... |
package shooter.network;
/**
* Represents a quit message. If a client leaves the game he sends this message to
* the server.
*
* @author Michail Tausch
*/
public class QuitMessage extends Message{
String name = "";
/**
* The constructor.
* @param name
*/
public QuitMessage(String nam... |
package shooter.network;
import java.util.ArrayList;
/**
* Represents a lobby message. The server sends it to all clients and
* they refresh their player lists.
*
* @author Michail Tausch
*/
public class lobbyMessage extends Message{
public ArrayList<String> playerRed = new ArrayList<String>();
... |
package shooter.network;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/**
* The basic message. All other message types inherit from it.
*
* @autho... |
/**
*
*/
package shooter.network;
import java.util.LinkedList;
import java.util.List;
import shooter.models.Player;
import shooter.models.Sprite;
/**
* Represents a state of the current game. The server sends this message to each client.
* The clients receive this message and set their game to the ... |
package shooter.network;
/**
* Represents a message which carries the movements of a player.
*
* @author Michail Tausch
*/
public class MovementMessage extends Message{
boolean up;
boolean down;
boolean left;
boolean right;
boolean strafeRight;
boolean strafeLeft;
boolean shoot;
boolea... |
/**
*
*/
package shooter.network;
/**
* Represents a ping message.
*
* @author Michail Tausch
*/
public class PingMessage extends Message{
private int playerIndex;
/**
* The constructor.
* @param playerIndex
*/
public PingMessage(int playerIndex){
this.playerIndex=playerIndex;
... |
package shooter.sound;
import java.net.URL;
import java.util.HashMap;
import shooter.Shooter;
/**
* Loads resources.
*
* @author Michail Tausch
*/
public abstract class ResourceCache {
@SuppressWarnings("unchecked")
protected HashMap resources;
/**
* The constructor.
*/
@SuppressWarn... |
package shooter.sound;
import java.applet.Applet;
import java.applet.AudioClip;
import java.net.URL;
/**
* Represents the sound cache.
*
* @author Michail Tausch
*/
public class SoundCache extends ResourceCache {
/**
* Returns a object of the URL.
*/
protected Object loadResource(URL url)... |
package shooter;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
import shooter.maps.ImageRoutines;
/**
* Is called once when the game starts. It loads all image files of the game
* and provides them to all components.
*
* @author MiTaAi07
*/
publ... |
package shooter;
import java.io.File;
import java.io.FilenameFilter;
/**
* FileExtensionFilter is a filter for files with a special ending.
*
* @author Michail Tausch
*/
public class FileExtensionFilter implements FilenameFilter{
private String ext="*";
/**
* The Constructor of this class.... |
package shooter.handler;
import shooter.models.Player;
import shooter.models.Shot;
import shooter.models.Wall;
/**
* This inteface provides methods which are important for the game logic.
*
* @author Michail Tausch
*/
public interface GameEventListener {
/**
* A player object would be remov... |
package shooter.handler;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import shooter.Shooter;
import shooter.models.Player;
import shooter.network.MovementMessage;
import shooter.network.crossClient;
/**
* This handler receives every input from the keyboard of a
* specific play... |
package shooter;
import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.AlphaComposite;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.Graphics2D;
import java.io.BufferedReader;
import java.io.File;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uggerhøjbiler;
import DBLayer.DBActor;
import DBLayer.DBOrderLine;
import DBLayer.DBProduct;
import ModelLayer.Actor;
import ModelLayer.Car;
import ModelLayer.CarColor;
import ModelLayer.CarEngine;
import ModelL... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
import java.util.EventListener;
/**
*
* @author Moulde
*/
public interface ILoginStateChangedEventListener extends EventListener
{
public void LoginStateChangedEventOccurred(LoginStateChang... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
import ModelLayer.Actor;
import java.util.EventObject;
/**
*
* @author Moulde
*/
public class LoginStateChangedEvent extends EventObject
{
Actor employee;
int LoginState;
final pub... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
/**
*
* @author Evil
*/
public class PriceCalculator
{
double taxPercentage = 25;
double greentaxPercentage = 5;
double earningsPercentage = 10;
public static PriceCalculator i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
import ModelLayer.Employee;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
import DBLayer.DBOrder;
import DBLayer.DBSupplier;
import ModelLayer.Actor;
import ModelLayer.Employee;
import ModelLayer.Order;
import ModelLayer.Product;
import ModelLayer.Role;
import ModelLaye... |
package ControlLayer;
import DBLayer.DBActor;
import DBLayer.DBCustomer;
import DBLayer.DBEmployee;
import DBLayer.DBSupplier;
import ModelLayer.Actor;
import java.util.ArrayList;
import java.util.HashMap;
public class ActorController
{
DBEmployee dbEmployee = new DBEmployee();
DBSupplier dbSupplier = new DBS... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
import java.util.EventListener;
/**
*
* @author Moulde
*/
public interface ICustomerPickedEventListener extends EventListener
{
public void CustomerPickedEventOccurred(CustomerPickedEvent e... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
import DBLayer.DBEmployee;
import ModelLayer.Actor;
import ModelLayer.Role;
import java.io.InvalidObjectException;
import java.util.Date;
import java.util.GregorianCalendar;
import javax.swing.even... |
package ControlLayer;
import ModelLayer.Actor;
import java.util.EventObject;
/**
*
* @author Moulde
*/
public class CustomerPickedEvent extends EventObject
{
Actor customer;
public CustomerPickedEvent(Object source, Actor customer)
{
super(source);
this.customer = customer;
}
p... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
import ModelLayer.Actor;
import ModelLayer.SalesOrder;
/**
*
* @author Evil
*/
public class SaleController
{
private SalesOrder cartOrder;
public SaleController()
{
}
pub... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ControlLayer;
import DBLayer.DBProduct;
import ModelLayer.Car;
import ModelLayer.CarColor;
import ModelLayer.CarEngine;
import ModelLayer.Product;
import java.util.ArrayList;
import java.util.List;
/**
*
* @... |
/*
* SemProjektGUIAboutBox.java
*/
package UILayer;
import org.jdesktop.application.Action;
public class MainGuiAboutBox extends javax.swing.JDialog {
public MainGuiAboutBox(java.awt.Frame parent) {
super(parent);
initComponents();
getRootPane().setDefaultButton(closeButton);
}
... |
//Create a JButton that does not show focus, does not paint a border, and
//displays different icons when rolled-over and pressed.
package UILayer;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Insets;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.s... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PickCustomerDialog.java
*
* Created on 09-01-2011, 17:26:40
*/
package UILayer;
import ControlLayer.ActorController;
import ControlLayer.GlobalInstances;
import ModelLayer.Actor;
import ModelLayer.Role;
import... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* createCustomerUI.java
*
* Created on 09-12-2010, 10:27:39
*/
package UILayer.Screens;
import ControlLayer.GlobalInstances;
import DBLayer.DBActor;
import ModelLayer.Actor;
import ModelLayer.Customer;
import ja... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* FindSaleUI.java
*
* Created on Jan 16, 2011, 7:31:20 PM
*/
package UILayer.Screens;
import UILayer.MainGuiView;
/**
*
* @author Daniel
*/
public class FindSaleUI extends javax.swing.JPanel {
MainGuiV... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* loginPanel.java
*
* Created on 11-12-2010, 17:53:01
*/
package UILayer.Screens;
import ControlLayer.GlobalInstances;
import ControlLayer.ILoginStateChangedEventListener;
import ControlLayer.LoginStateChangedEv... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* saleUI.java
*
* Created on 09-12-2010, 10:00:42
*/
package UILayer.Screens;
/**
*
* @author KL-DELL
*/
public class saleUI extends javax.swing.JPanel {
/** Creates new form saleUI */
public saleUI... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* OrderCarUI.java
*
* Created on 15-12-2010, 20:18:48
*/
package UILayer.Screens;
import ControlLayer.ActorController;
import ControlLayer.OrderController;
import ControlLayer.ProductController;
import ModelLaye... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* StartPanel.java
*
* Created on 09-12-2010, 12:44:46
*/
package UILayer.Screens;
import Prototypes.JImagePanel;
import javax.swing.JLabel;
/**
*
* @author Moulde
*/
public class StartPanel extends javax.sw... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* SellCarUI.java
*
* Created on 11-01-2011, 10:14:26
*/
package UILayer.Screens;
import ControlLayer.ActorController;
import ControlLayer.CustomerPickedEvent;
import ControlLayer.LoginStateChangedEvent;
import ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* StatisticUI.java
*
* Created on Jan 16, 2011, 2:29:06 PM
*/
package UILayer.Screens;
import UILayer.MainGuiView;
/**
*
* @author Daniel
*/
public class StatisticUI extends javax.swing.JPanel {
Main... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* FindCustomerUI.java
*
* Created on Jan 16, 2011, 9:28:06 PM
*/
package UILayer.Screens;
import UILayer.MainGuiView;
/**
*
* @author Daniel
*/
public class FindCustomerUI extends javax.swing.JPanel {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.