code
stringlengths
3
1.18M
language
stringclasses
1 value
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright (C) 2007 The Android Open Source Project * * 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 app...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright (C) 2007 The Android Open Source Project * * 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 app...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright (C) 2009 The Android Open Source Project * * 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 app...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * Copyright 2011 Google Inc. * * 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...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package negocio; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Displayable; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.Display; import javax.microedition....
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package negocio; import javax.microedition.rms.RecordStore; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.InputStream; import java.util.Vector; import jogo.Jogador; import util.*; ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package gui; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Displayable; import javax.microedition.lcdui.TextField; import javax.microedition.lcdui.Display; import javax.microedition.lc...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package gui; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Graphics; import comunicacao.Comunicacao; import java.io.IOException; import java.util.Vector; import util.Constantes; import jogo.Jog...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package comunicacao; import gui.Telas; import javax.microedition.io.StreamConnection; import javax.microedition.io.Connector; import javax.bluetooth.DiscoveryListener; import javax.bluetooth.DiscoveryAgent; import javax...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package comunicacao; import java.io.DataInputStream; import java.io.IOException; import jogo.JogoCliente; import util.Constantes; /** * * @author Pablo Viana */ public class Cliente extends Thread { // SINC...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package comunicacao; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException; import java.util.Vector; import jogo.JogoServidor; import util.*; /** * * @author Pablo Viana */ ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package comunicacao; import javax.microedition.io.StreamConnectionNotifier; import javax.microedition.io.StreamConnection; import javax.microedition.io.Connector; import javax.bluetooth.DiscoveryAgent; import javax.blue...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package comunicacao; import java.io.DataInputStream; import java.io.IOException; import java.util.Vector; /** * * @author Pablo Viana */ public interface Comunicacao { public DataInputStream retorneStatus(Strin...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package util; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Random; import java.util.Vector; /** * * @author Thiago Na...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package util; import javax.microedition.lcdui.Command; import javax.bluetooth.UUID; import jogo.Peca; /** * * @author Thiago Nascimento e Pablo Viana */ public class Constantes { public static final Peca[] peca...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jogo; import java.io.DataInputStream; import java.io.IOException; import java.util.Vector; import util.Constantes; import gui.Telas; /** * * @author Pablo */ public class JogoCliente { // ATRIBUTOS PRA ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jogo; import util.Constantes; /** * * @author Pablo */ public class Jogada { private boolean tocou; private Jogador jogador; private Peca peca; private int lado; publ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jogo; import java.io.DataInputStream; import java.io.IOException; import java.util.Enumeration; import java.util.Vector; import util.Constantes; import util.Util; /** * * @author FAST */ public class JogoSer...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jogo; import java.util.Enumeration; import java.util.Vector; import util.Constantes; /** * * @author Thiago Nascimento e Pablo Viana */ public class Jogador { private String nome; private Vector pec...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jogo; /** * * @author Thiago Nascimento e Pablo Viana */ public class Peca { private int valor1; private int valor2; // CONSTRUTOR ////////////////////////////////////////////////////////////// ...
Java
package de.anjaro.web.page; import org.apache.wicket.markup.html.panel.Panel; public abstract class AContentPage extends MainPage { private static final long serialVersionUID = -1376922289293186115L; public AContentPage() { super(); this.add(this.getContentPanel("contentPanel")); this.add(this.ge...
Java
package de.anjaro.web.page; import org.apache.wicket.markup.html.panel.Panel; import de.anjaro.web.panel.MotorControlPanel; import de.anjaro.web.panel.VideoControlPanel; public class ControlPanelPage extends AContentPage { private static final long serialVersionUID = -1L; public ControlPanelPage() { ...
Java
package de.anjaro.web.page; import org.apache.wicket.markup.html.panel.Panel; import de.anjaro.web.panel.BlogPanel; import de.anjaro.web.panel.BlogSidebarPanel; public class WelcomePage extends AContentPage { private static final long serialVersionUID = -6853818328240826146L; public WelcomePage() { ...
Java
package de.anjaro.web.page; import org.apache.wicket.markup.html.panel.Panel; import de.anjaro.web.panel.BlogSidebarPanel; import de.anjaro.web.panel.SettingsPanel; public class SettingsPage extends AContentPage { @Override protected Panel getSidebarPanel(String pId) { return new BlogSidebarPanel(pId...
Java
package de.anjaro.web.page; import org.apache.wicket.markup.html.WebPage; import de.anjaro.web.panel.NavigationPanel; public class MainPage extends WebPage { private static final long serialVersionUID = 4509294908036997116L; public MainPage() { super(); this.add(new NavigationPanel("navigationBar...
Java
package de.anjaro.web.panel; import org.apache.wicket.markup.html.panel.Panel; public class BlogPanel extends Panel { private static final long serialVersionUID = 2432361071780350482L; public BlogPanel(final String id) { super(id); } }
Java
package de.anjaro.web.panel; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.image.Image; import org.apache.wicket.markup.html.panel.Panel;...
Java
package de.anjaro.web.panel; import org.apache.wicket.markup.html.panel.Panel; public class BlogSidebarPanel extends Panel { private static final long serialVersionUID = 1364523196504449407L; public BlogSidebarPanel(final String id) { super(id); } }
Java
package de.anjaro.web.panel; import org.apache.wicket.Session; import org.apache.wicket.markup.html.form.Button; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.RequiredTextField; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.model.CompoundProperty...
Java
package de.anjaro.web.panel; import org.apache.wicket.AttributeModifier; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.panel.Panel; import de.anjaro.model.Settings; import de.anjaro.web.AnjaroSession; public class VideoControlPanel extends Panel { private ...
Java
package de.anjaro.web.panel; import java.util.ArrayList; import java.util.List; import org.apache.wicket.AttributeModifier; import org.apache.wicket.Page; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.link.BookmarkablePageLink; import org.apache.wicket.markup.html.lis...
Java
package de.anjaro.web.panel; import java.io.Serializable; import org.apache.wicket.Page; public class NavigationItem implements Serializable { private String name; private Class<? extends Page> page; public NavigationItem(final String name, final Class<? extends Page> page) { super(); this.na...
Java
package de.anjaro.web; import java.text.DateFormat; import java.text.SimpleDateFormat; import org.apache.log4j.Logger; import org.apache.wicket.Page; import org.apache.wicket.Session; import org.apache.wicket.request.Request; import org.apache.wicket.request.Response; import org.apache.wicket.spring.injecti...
Java
package de.anjaro.web; import org.apache.wicket.Session; import org.apache.wicket.core.request.ClientInfo; import org.apache.wicket.protocol.http.WebSession; import org.apache.wicket.request.Request; import de.anjaro.model.Settings; public class AnjaroSession extends WebSession { private Settings settings = new S...
Java
package de.anjaro.control; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Properties; import de.anjaro.config.IConfigService; import de.anjaro.controller.IAnjaroController; import de.anjaro.controller.impl.DefaultControllerImpl; import de.anjaro.feature.IFeature; ...
Java
package de.anjaro.control; import java.io.Serializable; import de.anjaro.config.IConfigService; import de.anjaro.controller.IAnjaroController; import de.anjaro.model.Command; import de.anjaro.model.CommandResult; import de.anjaro.model.Speed; import de.anjaro.util.CommandResultHelper; import de.anjaro.util....
Java
package de.anjaro.model; import java.io.Serializable; public class Settings implements Serializable { private String cameraHost = "192.168.2.4"; private String cameraPort = "8080"; public String getCameraHost() { return cameraHost; } public void setCameraHost(String cameraHost) { this.cameraHost = cameraHos...
Java
package de.anjaro.pi4j; import java.util.logging.Logger; import com.pi4j.io.gpio.GpioController; import com.pi4j.io.gpio.GpioPinDigitalMultipurpose; import com.pi4j.io.gpio.PinMode; import com.pi4j.io.gpio.PinPullResistance; import com.pi4j.io.gpio.RaspiPin; import com.pi4j.io.gpio.event.GpioPinDigitalStateChangeEven...
Java
package de.anjaro.pi4j; import java.util.EnumSet; import java.util.logging.Logger; import com.pi4j.io.gpio.GpioController; import com.pi4j.io.gpio.GpioPinDigitalInput; import com.pi4j.io.gpio.Pin; import com.pi4j.io.gpio.PinMode; import com.pi4j.io.gpio.PinPullResistance; import com.pi4j.io.gpio.PinState; import com....
Java
package de.anjaro.pi4j; import com.pi4j.io.gpio.GpioController; import com.pi4j.io.gpio.GpioFactory; public class GpioFactoryHelper { public static synchronized GpioController getInstance() { return GpioFactory.getInstance(); } }
Java
package de.anjaro.raspberry.util; import java.io.IOException; import java.util.Properties; import de.anjaro.gpio.Revision; public class RaspberryConfig { private static Properties config; private static Revision revision; /** The Constant REVISION_PROP_NAME. => anjaro.raspberry.revision*/ public...
Java
package de.anjaro.feature.impl; import java.io.IOException; import java.util.logging.Logger; import de.anjaro.controller.IAnjaroController; import de.anjaro.feature.ISimpleTwoMotorFeature; import de.anjaro.model.Direction; /** * This class is using ther really nice Servoblaster implementation. To get this * runnin...
Java
package de.anjaro.feature.impl; import java.util.logging.Logger; import de.anjaro.controller.IAnjaroController; import de.anjaro.event.IEvent; import de.anjaro.event.IEventListener; import de.anjaro.feature.IFeature; import de.anjaro.feature.ISimpleTwoMotorFeature; import de.anjaro.model.Command; /** * * Works to...
Java
package de.anjaro.feature.impl; import java.io.FileNotFoundException; import java.io.IOException; import java.io.OutputStream; import java.util.logging.Logger; import de.anjaro.controller.IAnjaroController; import de.anjaro.feature.module.IActor; import de.anjaro.gpio.GpioFileWriter; import de.anjaro.gpio.GpioPin; im...
Java