code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
package org.dizem.groupon.action;
import org.dizem.groupon.model.domain.UserEntity;
import org.dizem.groupon.service.UserService;
import org.dizem.util.Pager;
import java.util.List;
/**
* User: dizem@126.com
* Time: 11-6-27 上午11:06
* <p/>
* 取得所有用户列表
*/
public class UserAction extends BaseAction {
... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import org.dizem.groupon.model.domain.UserEntity;
import org.dizem.groupon.service.UserService;
/**
* User: dizem@126.com
* Time: 11-6-2... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;
import org.apache.log4j.Logger;
import org.dizem.groupon.model.domain.ReplyEntity;
import org.dizem.groupon.service.ReplyService;
import java.util.List;
/**
* User: dizem
* Time: 1... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionSupport;
import org.dizem.groupon.model.domain.UserEntity;
import org.dizem.groupon.service.UserService;
import java.util.List;
/**
* User: dizem@126.com
* Time: 11-6-27 上午11:06
* <p/>
* 取得所有用户列表
*/
public class ListAdminAction... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.Preparable;
import org.dizem.groupon.model.domain.LinkEntity;
import org.dizem.groupon.service.LinkService;
import org.dizem.util.Pager;
import java.util.List;
/**
* User: dizem
* Time: 11-7-19 上午11:47
*/
public class LinkAction extends... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import org.dizem.groupon.model.domain.UserEntity;
import org.dizem.groupon.service.UserService;
import java.util.Map;
import static org.dizem.groupon.Constants.*;
/**
* User: di... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import org.dizem.groupon.service.UserService;
import java.util.Map;
/**
* @author: dizem
* @date: 11-6-29
*/
public class ValidateEmailAction extends ActionSupport {
private String userna... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.Preparable;
import org.dizem.groupon.model.domain.CityEntity;
import org.dizem.groupon.service.CityService;
import org.dizem.util.Pager;
import java.util.List;
/**
* @author: dizem
* @date: 11-6-25
*/
public class CityAction extends BaseAction imple... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import org.dizem.groupon.Constants;
import org.dizem.groupon.model.domain.ItemEntity;
import org.dizem.groupon.service.ItemService;
import java.util.Map;
/**
* User: dizem@126.com... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionContext;
import org.apache.log4j.Logger;
import org.dizem.groupon.model.domain.OrderFormEntity;
import org.dizem.groupon.service.OrderFormService;
import org.dizem.util.Pager;
import java.util.List;
/**
* User: dizem
* Time: 11-7-21... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServl... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionSupport;
import org.dizem.groupon.service.ImageService;
import java.io.InputStream;
/**
* User: dizem@126.com
* Time: 11-6-27 上午12:54
*/
public class GetImageAction extends ActionSupport {
private int id;
private ImageService im... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.Preparable;
import org.dizem.groupon.model.domain.CategoryEntity;
import org.dizem.groupon.service.CategoryService;
import org.dizem.util.Pager;
import java.util.List;
/**
* User: dizem@126.com
* Time: 11-6-28 下午1:44
*/
public class Cat... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.ActionSupport;
import org.dizem.groupon.model.domain.ItemEntity;
import org.dizem.groupon.service.ItemService;
import java.io.File;
/**
* User: dizem@126.com
* Time: 11-6-28 下午12:56
*/
public class AddItemAction extends ActionSupport {
... | Java |
package org.dizem.groupon.action;
import com.opensymphony.xwork2.Preparable;
import org.dizem.groupon.model.domain.MerchantEntity;
import org.dizem.groupon.service.MerchantService;
import org.dizem.util.Pager;
import java.util.List;
/**
* User: dizem@126.com
* Time: 11-6-28 下午3:18
*/
public class M... | Java |
package org.dizem.groupon;
import org.apache.log4j.Logger;
import org.dizem.groupon.dao.*;
import org.dizem.groupon.model.domain.*;
import org.dizem.util.MD5Util;
import org.dizem.util.SpringUtil;
import org.dizem.util.XmlReader;
import org.hibernate.Hibernate;
import org.w3c.dom.Node;
import java.io.File;... | Java |
package org.dizem.groupon.interceptor;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import java.util.Map;
import static org.dizem.groupon.Constants.*;
/**
* User: dizem@126.com
* Time: 11-6-27 下午1:09
*/
public class AdminAuthorizati... | Java |
package org.dizem.groupon.interceptor;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import static org.dizem.groupon.Constants.SESSION_USER_TYPE;
/**
* User: dizem@126.com
* Time: 11-6-27 下午1:09
*/
public class UserAuthorizationIntercep... | Java |
package modelLayer;
/**
* Write a description of class Person here.
*
* @author
* @version 1.0.0
*/
public class Person
{
// instance variables
private int costumorID;
private String name;
private String address;
private String phone;
private String email;
private Business bus... | Java |
package modelLayer;
import java.util.ArrayList;
/**
* Write a description of class PersonContainer here.
*
* @author
* @version 1.0.0
*/
public class PersonContainer
{
// instance variables
private ArrayList<Person> persons;
private int lastCostID;
private int lastEmpID;
/**
* Const... | Java |
package modelLayer;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* The test class PersonTest.
*
* @author (your name)
* @version (a version number or a date)
*/
public class PersonTest
{
private modelLayer.PersonContainer personCo1;
/**... | Java |
package modelLayer;
/**
* Write a description of class Employee here.
*
* @author
* @version 1.0.0
*/
public class Employee
{
// instance variables
private int employeeID;
private String password;
private String position;
private double salary;
private String employmentTerms;
priva... | Java |
package modelLayer;
/**
* Write a description of class Business here.
*
* @author
* @version 1.0.0
*/
public class Business
{
// instance variables
private String company;
private String cvr;
/**
* Constructor for objects of class Business
*/
public Business(String company, Str... | Java |
package com.st.android.adkping;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.ParcelFileDescript... | Java |
package com.google.android.DemoKit;
import android.text.SpannableStringBuilder;
import android.text.style.RelativeSizeSpan;
import android.text.style.SubscriptSpan;
import android.view.ViewGroup;
import android.widget.TextView;
public class ServoController implements Slider.SliderPositionListener {
private final int... | Java |
package com.google.android.DemoKit;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
public class S... | Java |
package com.google.android.DemoKit;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
public class Jo... | Java |
package com.google.android.DemoKit;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.TextView;
public class DemoKitPhone extends BaseActivity implements OnClickListener {
... | Java |
package com.google.android.DemoKit;
import com.google.android.DemoKit.Slider.SliderPositionListener;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.text.SpannableStringBuilder;
import android.text.style.RelativeSizeSpan;
import android.text.style.SubscriptSpan;
import ... | Java |
package com.google.android.DemoKit;
public class DemoKitTablet extends BaseActivity {
private OutputController mOutputController;
protected void hideControls() {
super.hideControls();
mOutputController = null;
}
protected void showControls() {
super.showControls();
mOutputController = new OutputControlle... | 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 |
package com.google.android.DemoKit;
import android.view.ViewGroup;
public class OutputController extends AccessoryController {
private boolean mVertical;
OutputController(DemoKitActivity hostActivity, boolean vertical) {
super(hostActivity);
mVertical = vertical;
}
protected void onAccesssoryAttached() {
... | Java |
package com.google.android.DemoKit;
import android.graphics.drawable.Drawable;
public class Utilities {
static void centerAround(int x, int y, Drawable d) {
int w = d.getIntrinsicWidth();
int h = d.getIntrinsicHeight();
int left = x - w / 2;
int top = y - h / 2;
int right = left + w;
int bottom = top + h... | Java |
package com.google.android.DemoKit;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class BaseActivity extends DemoKitActivity {
private InputController mInputController;
public BaseActivity() {
super();
}
@Override
public void onCreate(Bundle savedInstanceState) {
... | 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 |
package com.google.android.DemoKit;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Display;
public class DemoKitLaunch extends Activity {
static final String TAG = "DemoKitLaunch";
... | 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 |
package com.google.android.DemoKit;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.text.SpannableStringBuilder;
import android.text.style.RelativeSizeSpan;
import android.text.style.SubscriptSpan;
import android.view.ViewGroup;
import android.widget.CompoundButton;
impo... | Java |
package com.google.android.DemoKit;
import android.content.Context;
import android.util.AttributeSet;
public class VerticalSlider extends Slider {
public VerticalSlider(Context context) {
super(context);
initSliderView(context, true);
}
public VerticalSlider(Context context, AttributeSet attrs) {
super(cont... | Java |
package com.google.android.DemoKit;
import android.content.res.Resources;
import android.view.View;
public abstract class AccessoryController {
protected DemoKitActivity mHostActivity;
public AccessoryController(DemoKitActivity activity) {
mHostActivity = activity;
}
protected View findViewById(int id) {
r... | Java |
package com.google.android.DemoKit;
import android.graphics.Color;
import android.text.SpannableStringBuilder;
import android.text.style.RelativeSizeSpan;
import android.text.style.SubscriptSpan;
import android.view.ViewGroup;
import android.widget.TextView;
public class ColorWheelLEDController implements ColorWheel.... | Java |
/** Automatically generated file. DO NOT MODIFY */
package com.st.android.iNemoDemo;
public final class BuildConfig {
public final static boolean DEBUG = true;
} | Java |
package com.st.android.iNemoDemo;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import com.st.android.iNemoDemo.R;
import com.st.android.iNemoDemo.iNemoInfo.INemoInfo;
import com.st.android.iNemoDemo.iNemoInfo.Sensor;
import android.content.Intent;
import android.content.Shared... | Java |
package com.st.android.iNemoDemo;
import java.nio.ByteBuffer;
import java.nio.ShortBuffer;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import com.st.android.iNemoDemo.iNemoInfo.INemoInfo;
public class CommunicationFrame {
static final String TAG = "CommunicationFram... | Java |
package com.st.android.iNemoDemo.iNemoInfo;
import java.util.HashMap;
import com.st.android.iNemoDemo.CommunicationFrame;
public class INemoInfo {
private String UID;
private String FW_v;
private String HW_v;
private HashMap<Byte, Sensor> sensors;
private HashMap<Byte, short[]> tmpAcquiredData;
boolean calib... | Java |
package com.st.android.iNemoDemo.iNemoInfo;
import com.st.android.iNemoDemo.CommunicationFrame;
public class Gyro_2axis extends Sensor{
public Gyro_2axis(){
super();
this.parameters.put(CommunicationFrame.GYRO2_FULL_SCALE, new byte[1]);
this.parameters.put(CommunicationFrame.GYRO2_OFFSET_X, new byte[2]);
t... | Java |
package com.st.android.iNemoDemo.iNemoInfo;
import com.st.android.iNemoDemo.CommunicationFrame;
public class Temperature extends Sensor{
public Temperature(){
super();
this.parameters.put(CommunicationFrame.TEMP_OFFSET, new byte[2]);
}
}
| Java |
package com.st.android.iNemoDemo.iNemoInfo;
import com.st.android.iNemoDemo.CommunicationFrame;
public class Accelerometer extends Sensor{
public Accelerometer(){
super();
this.parameters.put(CommunicationFrame.ACC_OUT_RATE, new byte[1]);
this.parameters.put(CommunicationFrame.ACC_FULL_SCALE, new byte[1]);
... | Java |
package com.st.android.iNemoDemo.iNemoInfo;
import com.st.android.iNemoDemo.CommunicationFrame;
public class Pressure extends Sensor{
public Pressure(){
super();
this.parameters.put(CommunicationFrame.PRESS_OUT_RATE, new byte[1]);
this.parameters.put(CommunicationFrame.PRESS_OFFSET, new byte[2]);
}
}
| Java |
package com.st.android.iNemoDemo.iNemoInfo;
import java.util.HashMap;
public abstract class Sensor {
private boolean enabled;
protected HashMap<Byte, byte[]> parameters;
public Sensor(){
super();
enabled = false;
this.parameters = new HashMap<Byte, byte[]>();
}
public boolean isEnabled() {
return ena... | Java |
package com.st.android.iNemoDemo.iNemoInfo;
import com.st.android.iNemoDemo.CommunicationFrame;
public class Magnetometer extends Sensor{
public Magnetometer(){
super();
this.parameters.put(CommunicationFrame.MAG_OUT_RATE, new byte[1]);
this.parameters.put(CommunicationFrame.MAG_FULL_SCALE, new byte[1]);
t... | Java |
package com.st.android.iNemoDemo.iNemoInfo;
import com.st.android.iNemoDemo.CommunicationFrame;
public class Gyro_1axis extends Sensor{
public Gyro_1axis(){
super();
this.parameters.put(CommunicationFrame.GYRO1_FULL_SCALE, new byte[1]);
this.parameters.put(CommunicationFrame.GYRO1_OFFSET_Z, new byte[2]);
}
... | Java |
package com.st.android.iNemoDemo;
import android.os.Bundle;
import android.preference.PreferenceActivity;
public class SettingsActivity extends PreferenceActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.pre... | Java |
package com.st.android.iNemoDemo;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
/* This Activity does nothing but receive USB_DEVICE_ATTACHED events from the
* USB service and springboards to the main G... | Java |
package com.st.android.iNemoDemo;
import java.io.FileDescriptor;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.... | Java |
package com.st.android.iNemoDemo;
import com.android.future.usb.UsbAccessory;
import com.st.android.iNemoDemo.iNemoInfo.INemoInfo;
public class ActivityDataObject {
private INemoInfo mINemoInfo;
private UsbAccessory mAccessory;
public ActivityDataObject(){
this.mINemoInfo = null;
this.mAccessory = null;
}... | Java |
package eco2automotive.tasks;
import eco2automotive.port.ConnectionControl;
import eco2automotive.gui.InforAlert;
import eco2automotive.elmFilter.Filter;
import eco2automotive.elmFilter.SpecialFormula;
import eco2automotive.lang.EN;
public class Task_ConformsTo {
ConnectionControl connControl;
pub... | Java |
package eco2automotive.tasks;
import eco2automotive.port.ConnectionControl;
import eco2automotive.gui.InforAlert;
import eco2automotive.lang.EN;
public class Task_RV {
ConnectionControl connControl;
public Task_RV(ConnectionControl connControl)
{
this.connControl=connControl; ... | Java |
package eco2automotive.tasks;
import eco2automotive.port.ConnectionControl;
import eco2automotive.gui.components.Panel_TxRx;
public class Thread_app extends Thread{
private boolean continuar = true;
ConnectionControl connControl;
Panel_TxRx PANEL_TXRX;
public Thread_app(ConnectionControl connControl, ... | Java |
package eco2automotive.tasks;
import eco2automotive.port.ConnectionControl;
public class Task_INIT {
ConnectionControl connControl;
public Task_INIT(ConnectionControl connControl){
this.connControl=connControl;
}
public void run(){
this... | Java |
package eco2automotive.tasks;
import java.util.*;
import eco2automotive.port.ConnectionControl;
import eco2automotive.util.Clock;
import eco2automotive.data.HashParameters;
import eco2automotive.data.Parameter;
import eco2automotive.gui.Layout_MONITORING;
public class Thread_MONITOR extends Thread{
ConnectionContr... | Java |
package eco2automotive.tasks;
import java.util.*;
import eco2automotive.port.ConnectionControl;
import eco2automotive.gui.InforAlert;
import eco2automotive.elmFilter.Filter;
import eco2automotive.gui.Layout_DTCs;
import eco2automotive.elmFilter.SpecialFormula;
import eco2automotive.lang.EN;
import eco2automotive.data.H... | Java |
package eco2automotive.tasks;
import eco2automotive.port.ConnectionControl;
public class Task_DTCs_CLEAR {
ConnectionControl connControl;
public Task_DTCs_CLEAR(ConnectionControl connControl){
this.connControl=connControl;
}
public void ... | Java |
package eco2automotive.tasks;
import eco2automotive.gui.Layout_KMHRPM;
import eco2automotive.port.ConnectionControl;
public class Thread_KMHRPM extends Thread{
ConnectionControl connControl;
Layout_KMHRPM LAYOUT;
private boolean continuar = true;
public Thread_KMHRPM(ConnectionControl connControl, Layou... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agre... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agre... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | Java |
package ua.fbn.client;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
* The async counterpart of <code>GreetingService</code>.
*/
public interface GreetingServiceAsync {
void greetServer(String input, AsyncCallback<String> callback)
throws IllegalArgumentException;
}
| Java |
package ua.fbn.client;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/**
* The client side stub for the RPC service.
*/
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(S... | Java |
package ua.fbn.client;
import ua.fbn.shared.FieldVerifier;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.goo... | Java |
package ua.fbn.shared;
/**
* <p>
* FieldVerifier validates that the name the user enters is valid.
* </p>
* <p>
* This class is in the <code>shared</code> package because we use it in both
* the client code and on the server. On the client, we verify that the name is
* valid before sending an RPC reque... | Java |
package ua.fbn.server;
import ua.fbn.client.GreetingService;
import ua.fbn.shared.FieldVerifier;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
/**
* The server side implementation of the RPC service.
*/
@SuppressWarnings("serial")
public class GreetingServiceImpl extends RemoteServiceServlet... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Settings;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.wrappers.Component;
/**
* Attack tab related operations.
*/
public class Attack {
public static final int SETTING_SPECIAL_E... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Environment;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Mouse;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.wrappers.Component;
import org.rsbuddy.widgets.Bank;
import java.awt.*;
/**
* Option related ... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.wrappers.Component;
import org.rsbuddy.wrappers.ChannelUser;
/**
* Clan chat related operations. Does not yet handle the lobby.
*
* @author Aion
*/
public class ClanCh... | Java |
package org.rsbuddy.tabs;
import java.awt.Point;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Mouse;
import com.rsbuddy.script.methods.Settings;
import com.rsbuddy.script.methods.Skills;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.task.Task;
import com.r... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Settings;
import com.rsbuddy.script.methods.Skills;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.task.Task;
import com.rsbuddy.script.wrappers.Component;
import java.util.LinkedList;
i... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Keyboard;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.task.Task;
import com.rsbuddy.script.wrappers.Component;
import com.rsbuddy.script.wrappers.Widget;
import org.rsbuddy.widgets.Lobby;
import... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.wrappers.Component;
/**
* Quest tab related operations.
*
* @author Paradigm
*/
public class Quest {
public enum Progress {
NOT_STARTED,
IN_PROGRESS,
COMPL... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Npcs;
import com.rsbuddy.script.methods.Players;
import com.rsbuddy.script.methods.Settings;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.task.Task;
import com.rsbuddy.script.wrappers.Component;
import com.rsbuddy.script.wrappe... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Players;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.task.Task;
import com.rsbuddy.script.wrappers.Component;
import com.rsbuddy.script.wrappers.Item;
import com.rsbuddy.script.wrappers.... | Java |
package org.rsbuddy.tabs;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Menu;
import com.rsbuddy.script.methods.Mouse;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.task.Task;
import com.rsbuddy.script.util.Filter;
import com.rsbuddy.script.util.Random;
impor... | Java |
package org.rsbuddy.widgets;
import com.rsbuddy.script.methods.Keyboard;
import com.rsbuddy.script.methods.Mouse;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.task.Task;
import com.rsbuddy.script.util.Random;
import com.rsbuddy.script.util.Timer;
import com.rsbuddy.script.wrappers.Compo... | Java |
package org.rsbuddy.widgets;
import com.rsbuddy.script.methods.Calculations;
import com.rsbuddy.script.methods.Game;
import com.rsbuddy.script.methods.Keyboard;
import com.rsbuddy.script.methods.Menu;
import com.rsbuddy.script.methods.Mouse;
import com.rsbuddy.script.methods.Objects;
import com.rsbuddy.script.... | Java |
package org.rsbuddy.widgets;
import com.rsbuddy.script.methods.*;
import com.rsbuddy.script.task.Task;
import com.rsbuddy.script.util.Random;
import com.rsbuddy.script.util.Timer;
import com.rsbuddy.script.wrappers.Component;
import com.rsbuddy.script.wrappers.Item;
import com.rsbuddy.script.wrappers.Widget;
... | Java |
package org.rsbuddy.widgets;
import com.rsbuddy.script.methods.Widgets;
import com.rsbuddy.script.task.Task;
import com.rsbuddy.script.util.Random;
import com.rsbuddy.script.wrappers.Component;
import com.rsbuddy.script.wrappers.Item;
import com.rsbuddy.script.wrappers.Widget;
import org.rsbuddy.tabs.Inventory... | Java |
package org.rsbuddy.widgets;
import com.rsbuddy.script.methods.Environment;
import com.rsbuddy.script.methods.Keyboard;
import com.rsbuddy.script.methods.Menu;
import com.rsbuddy.script.methods.Mouse;
import com.rsbuddy.script.methods.Npcs;
import com.rsbuddy.script.methods.Players;
import com.rsbuddy.script.m... | Java |
package org.rsbuddy.utils;
import com.rsbuddy.script.methods.Skills;
import com.rsbuddy.script.util.Timer;
/**
* This class tracks each skill's gains and
* calculates the hourly experience of a skill as well as the time to level up.
*
* @author Aion
*/
public final class SkillData {
public static enum Rate {
... | Java |
package org.rsbuddy.wrappers;
/**
* @author Aion
*/
public class Message {
private final String sender;
private final String message;
public Message(String sender, String message) {
this.sender = sender;
this.message = message;
}
/**
* Gets the message.
*
* @return the message
*/
public String g... | Java |
package org.rsbuddy.wrappers;
/**
* @author Aion
*/
public interface Channel {
/**
* Gets the name of this channel.
*
* @return the name of this channel.
*/
public String getName();
/**
* Gets the name of this channel's owner
*
* @return the name of this channel's owner
*/
pu... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.