text stringlengths 3 1.18M |
|---|
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import com.joelapenna.foursquared.PreferenceActivity;
import com.joelapenna.foursquared.R;
import android.content.Context;
import android.content.Intent;
import android.view.Menu;
/**
* Collection of common functions which are called fr... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared.util;
import android.text.TextUtils;
import com.joelapenna.foursquare.types.FoursquareType;
import com.joelapenna.foursquare.types.Tip;
import com.joelapenna.foursquare.types.Todo;
/**
* @date September 2, 2010.
* @author Mark Wyszomie... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared.util;
import com.joelapenna.foursquared.R;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.LayoutInflater;
import android.view.View;
im... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.types.User;
import com.joelapenna.foursquared.Foursquared;
import com.joelapenna.foursquared.R;
import android.app.Activity;
import android.content.Context;
imp... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared.util;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.util.Log;
import android.widget.Toast;
/**
* @date September 15, 2010.
* @author Mark Wyszomierski (mar... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import android.util.Log;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
/**
* @author Joe LaPenna (joe@joelapenna.com)
*/
public cla... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import com.joelapenna.foursquared.FoursquaredSettings;
import android.os.Environment;
import android.util.Log;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import com.joelapenna.foursquared.Foursquared;
import com.joelapenna.foursquared.R;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
imp... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared.util;
import android.os.Parcel;
import android.text.TextUtils;
import com.joelapenna.foursquare.types.Group;
import com.joelapenna.foursquare.types.Tip;
import com.joelapenna.foursquare.types.Todo;
import com.joelapenna.foursquare.types.V... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared.util;
import android.util.Log;
import java.util.Calendar;
import java.util.Date;
/**
* Initializes a few Date objects to act as boundaries for sorting checkin lists
* by the following time categories:
*
* <ul>
* <li>Within the la... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared.util;
import android.app.Activity;
import android.database.Cursor;
import android.provider.Contacts;
import android.provider.Contacts.PhonesColumns;
/**
* Implementation of address book functions for sdk levels 3 and 4.
*
* @date Feb... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import com.joelapenna.foursquare.types.Checkin;
import com.joelapenna.foursquare.types.Tip;
import com.joelapenna.foursquare.types.User;
import com.joelapenna.foursquare.types.Venue;
import java.text.ParseException;
import java.util.Compa... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
/**
* @author Joe LaPenna (joe@joelapenna.com)
*/
public class NullDiskCache implements DiskCache {
/*
* (non-J... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import com.joelapenna.foursquare.error.FoursquareCredentialsException;
import com.joelapenna.foursquare.error.FoursquareException;
import com.joelapenna.foursquared.FoursquaredSettings;
import com.joelapenna.foursquared.error.LocationExcep... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Display;
import android.view.WindowManager;
import android.webkit.WebView;
import android.widget.LinearLayout;
/**
* Renders the r... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import android.os.AsyncTask;
import android.os... |
/**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.error.FoursquareException;
import com.joelapenna.foursquare.types.CheckinResult;
import com.joelapenna.foursquared.location.LocationUtils;
import com.joelapenna... |
/*
* Copyright 2010 Mark Wyszomierski
* Portions Copyright (c) 2008-2010 Facebook, 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-... |
/*
* Copyright 2010 Facebook, 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 ... |
/*
* Copyright 2010 Mark Wyszomierski
* Portions Copyright (c) 2008-2010 Facebook, 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-... |
/**
* Copyright 2010 Mark Wyszomierski
*
* 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 ag... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquare;
public class TestCredentials {
public static final String oAuthConsumerKey = "";
public static final String oAuthConsumerSecret = "";
public static final String oAuthToken = "";
public static final String oAuthTokenSecret = "";... |
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared;
/**
* @author Joe LaPenna (joe@joelapenna.com)
*/
public class FoursquaredSettings {
public static final boolean USE_DEBUG_SERVER = false;
public static final boolean DEBUG = false;
public static final boolean LOCATION_DEBUG = f... |
package modellayer;
/**
* The class ProductCopy
* ?
* ?
* ?
* ?
* ?
* ?
*
* @author Allan Eriksen, Christian Stidsborg, Andreas Rye, Casper Madsen, Stefan Bols
* @version 051213
*/
public class ProductCopy
{
private static int counter;
private Product product;
private int copyNo;
pri... |
package modellayer;
import java.util.ArrayList;
/**
* The class Order is to hold information about a given order and which products this order contains.
* A object of the order is to be saved in the OrderContainer class.
*
* @author Allan Eriksen, Christian Stidsborg, Andreas Rye, Casper Madsen, Stefan... |
package modellayer;
/**
* The class Clerk is to hold information about a given employee/clerk, of which a object is to be
* saved in the ClerkContainer class.
*
* @author Allan Eriksen, Christian Stidsborg, Andreas Rye, Casper Madsen, Stefan Bols
* @version 051213
*/
public class Clerk extends Person
{
pr... |
package modellayer;
/**
* This class is to be extended from clerk and customer.
*
* @author Stefan Bols
* @version 140114
*
*/
public class Person {
private String firstName;
private String lastName;
private String addressStreet;
private String addressCity;
private String addressZipcode;
... |
package modellayer;
import java.util.ArrayList;
/**
* The class Product is to hold information about a given product, of which a object is to be
* saved in the ProductContainer class.
*
* @author Allan Eriksen, Christian Stidsborg, Andreas Rye, Casper Madsen, Stefan Bols
* @version 051213
*/
public class Pro... |
package modellayer;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
/**
* The class Order is to hold information about a given order and which products this order contains.
* A object of the order is to be saved in the OrderContainer class.
*
* @author Allan Eriksen, C... |
package modellayer;
/**
* The class Customer is to hold information about a given customer, of which a object is to be
* saved in the CustomerContainer class.
*
* @author Stefan Bols
* @version 140114
*/
public class Customer extends Person {
private static int counter; // This counter keeps track of how man... |
package modellayer;
import java.util.ArrayList;
/**
* The class ProductContainer is to collect objects of the class Product.
*
* @author Allan Eriksen, Christian Stidsborg, Andreas Rye, Casper Madsen, Stefan Bols
* @version 051213
*/
public class ProductContainer
{
private static ProductContainer instance;
... |
package modellayer;
import java.util.ArrayList;
import java.util.Iterator;
/**
* The class ClerkContainer is to collect objects of the class Clerk.
*
* @author Allan Eriksen, Christian Stidsborg, Andreas Rye, Casper Madsen, Stefan Bols
* @version 051213
*/
public class ClerkContainer
{
private static ClerkC... |
package modellayer;
import java.util.ArrayList;
/**
* The class OrderContainer is to collect objects of the class Order.
* The pattern used here is called a Singleton Pattern. A Singleton
* Pattern are used for saving objects you wanna use different places
* in your system. The patterns makes sure that only one ... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
impo... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.table.DefaultTableM... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import modellayer.Customer;
import com.jgoodies.forms.... |
package guilayer;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JT... |
package guilayer;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.factories.FormFactory;
import controllayer.CustomerCtrl;
import javax.swing.JTextF... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRootPane;
import javax.swing.JTabbedPane;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
public class MainContent extends JPanel {
pr... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swi... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import com.jgoodies.forms.factories.FormFac... |
package guilayer;
import javax.swing.JPanel;
public class TestUse extends JPanel {
/**
* Create the panel.
*/
public TestUse() {
}
}
|
package guilayer;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import modellayer.Product;
import com.jg... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
public class Invoice extends JFrame {
private JPanel contentPane;
/**
* Launch the application.
*/
public static void main(String[] args) {... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import controllayer.OrderCtrl;
... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
public class MainWindowTopPanel extends JPanel {
/**
* Create the panel.
*/
public MainWindowTopPanel() {
setLayout(new BorderLayout(0,0));
set... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import com.jgoodies.forms.factories.FormFactory;
import... |
package guilayer;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.J... |
package controllayer;
import java.util.ArrayList;
import modellayer.Customer;
import modellayer.CustomerContainer;
/**
* The class CustomerCtrl is to take input from and perform the actions requested from the
* GUI layer. These actions are performed on the classes CustomerContainer and Customer in the modellayer.
... |
package controllayer;
import modellayer.Product;
import modellayer.ProductContainer;
import modellayer.ProductCopy;
import java.util.ArrayList;
/**
* The class ProductCtrl is to take input from and perform the actions requested from the
* class SalesUI. These actions are performed on the class ProductContainer and... |
package controllayer;
import java.util.ArrayList;
import modellayer.Clerk;
import modellayer.Customer;
import modellayer.Order;
import modellayer.OrderContainer;
import modellayer.PartOrder;
import modellayer.ProductCopy;
/**
* The class OrderCtrl is to take input from and perform the actions requested from the
* ... |
package controllayer;
import modellayer.*;
/**
* The class PersonCtrl is to take input from and perform the actions requested from the
* class SalesUI. These actions are performed on the class ClerkContainer in the modellayer.
*
* @author Allan Eriksen, Christian Stidsborg, Andreas Rye, Casper Madsen, Stefan Bol... |
package tuilayer;
import controllayer.PersonCtrl;
import java.util.Scanner;
/**
* Write a description of class LoginUI here.
*
* @author (your name)
* @version (a version number or a date)
**/
public class LoginUI
{/*
private MainUI mainUI;
private PersonCtrl personCtrl;
public static void mai... |
/*******************************************************************************
* Copyright (c) 2011 Google, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at... |
import javax.swing.*;
public class Userinput {
public static void main(String[]args){
String num = "";
num = JOptionPane.showInputDialog(
null,"Enter your first interger");
if(num == null){
JOptionPane.showInputDialog(null,"no name");
}
else{
JOptionPane.showInputDialog("Hello"+num);
... |
import javax.swing.*;
public class Userinput {
public static void main(String[]args){
String num = **;
num = JOptionPane.showInputDialog(
null,"Please enter your name:");
if(num == null){
JOptionPane.showInputDialog(null,"no name");
}
else{
JOptionPane.showInputDialog(null, "... |
import javax.swing.*;
public class OddOrEven {
public static void main(String[]args){
String num = "";
num = JOptionPane.showInputDialog(null, "Enter Integer");
int a = Integer.parseInt(num);
if(a % 2==0){
JOptionPane.showMessageDialog
(null,"Even");
}
else
{
JOpt... |
public class java_3_5 {
public static void main(String[] args) {
int ken=2, boo=7, yoo=-7;
System.out.println("***** result *****\n");
System.out.println("ken=2, boo=7, yoo=-7");
System.out.println("--- bitwise AND ---");
System.out.println("ken&boo -> " + (ken&boo));
System.out.println("--- bit... |
public class java_3_4 {
public static void main(String[] args) {
boolean x=true, y=true, z=false;
System.out.println("***** result *****");
System.out.println("boolean x=true, y=true, z=false");
System.out.println("--- logical AND ---");
System.out.println("x&&y ->" + (x&&y));
System.out.println... |
public class java_3_1 {
public static void main(String[] args) {
int ken=10, yoo=-20, boo;
boo=-yoo;
System.out.println("***** result *****");
System.out.println("ken=" + ken + "," +"yoo=" + yoo + "," +"boo=" + boo);
System.out.println("++ken=" + (++ken) + ", ken=" + ken);
System.out.println("ken+... |
public class java_3_2 {
public static void main(String[] args)
{
int x=100, y=30;
System.out.println("***** result *****");
System.out.println("x+y =" + (x+y));
System.out.println("x-y =" + (x-y));
System.out.println("x*y =" + (x*y));
System.out.println("x/y =" + (x/y));
System.out.println(... |
public class java_3_6 {
public static void main(String[] args) {
int x=7, y=2;
int a, b;
a = 7;
b= 2;
System.out.println("***** result *****\n");
System.out.println("x=" + x + ", y=" + y);
System.out.println("a=" + a + ", b=" + b);
System.out.println("x+=y -> " + (x+=y) + ", a=a+b -> " + (... |
public class java_3_3 {
public static void main(String[] args) {
int x=50, y=30;
System.out.println("***** result *****");
System.out.println("x<y ->" + (x<y));
System.out.println("x<=y ->" + (x<=y));
System.out.println("x>y ->" + (x>y));
System.out.println("x>=y ->" + (x>=y));
System.out.printl... |
public class java_3_7 {
public static void main(String[] args) {
int x=10, y=20, ken, boo, yoo, soo;
ken=boo=30;
yoo = (ken == boo ? x: y);
soo = (ken < boo ? x: y);
System.out.println("***** result *****\n");
System.out.println("yoo = " + yoo + ", soo = " + soo);
}
}
|
import javax.swing.JOptionPane;
public class odd {
public static void main(String[] args) {
int input;
String num1 = "";
num1 = JOptionPane.showInputDialog(null, "Please enter the value: ");
input = inputVal(num1);
}
private static Integer inputVal(String num1){... |
package com.dao.impl;
import java.util.List;
import com.dao.TreeDao;
public class TreeDaoImpl extends UniversalDaoImpl implements TreeDao {
@Override
public List getListByType(int type, boolean enabled) {
String sql;
if (enabled)
sql = "select code,parent_code,name,isLeaf,enabled from tree where ... |
package com.dao.impl;
import java.util.List;
import com.dao.OrgDao;
public class OrgDaoImpl extends UniversalDaoImpl implements OrgDao {
@Override
public List getListOrg() {//ifnull/isnull
String sql = "select code, isnull(parent_code,'') parent_code,name,url,target,isLeaf,enabled from Org where enab... |
package com.dao.impl;
import java.util.List;
import com.dao.RegionDao;
public class RegionDaoImpl extends UniversalDaoImpl implements RegionDao {
@Override
public List getListRegion() {//ifnull/isnull
String sql = "select code, isnull(parent_code,'') parent_code,name,url,target,isLeaf,enabled from Re... |
package com.dao.impl;
import java.util.List;
import com.dao.UserDao;
public class UserDaoImpl extends UniversalDaoImpl implements UserDao {
@Override
public List getListUser(String roleCode) {
String sql;
sql="select region.name region_treeName,u.* from [user] u inner join region on u.region_treeCo... |
package com.dao.impl;
import java.util.List;
import com.dao.RoleDao;
public class RoleDaoImpl extends UniversalDaoImpl implements RoleDao {
@Override
public List getListTree(String code) {
String sql;
if (code == null||"".equals(code))
sql = "select code id,'['+code+'] '+name text,isLeaf leaf f... |
package com.dao;
public interface DiningMsgDao {
}
|
package com.dao;
import java.util.List;
public interface UserDao extends UniversalDao {
public List getListUser(String rollerCode);
public boolean getModifyPwd(String loginName, String pwd);
}
|
package com.dao;
import java.util.List;
public interface RegionDao extends UniversalDao {
/**
*
* **/
public List getListRegion();
/**
* **/
public List getListRegionTreeByCode(String code);
} |
package com.dao;
import java.util.List;
public interface OrgDao extends UniversalDao {
/**
*
* **/
public List getListOrg();
/**
* **/
public List getListOrgTreeByCode(String code);
} |
package com.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import com.service.BaseManager;
import com.service.UserManager;
public class EMailController extends UniversalController {
private Bas... |
package com.controller;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import com.Const;
import com.beans.User;
import com.controller.base.MultiMethodController;
public class ... |
package com.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import com.controller.base.MultiMethodController;
public class InformController extends MultiMethodController {
public ModelAndView g... |
package com.controller;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import com.... |
package com.controller;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import com.... |
package com.controller;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import com.... |
package com.service.impl;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.dao.MenuDao;
import com.dao.OrgDao;
import com.dao.RegionDao;
import com.dao.TreeDao;
import com.service.BaseManager;
public class BaseManagerImpl ex... |
package com.service.impl;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.jdbc.core.RowMapper;
import com.dao.UniversalDao;
import com.service.Univers... |
package com.service;
import java.util.List;
public interface UserManager extends UniversalManager {
public List getListUser(String rollerCode);
public List getListRoleTree(String code);
public void saveRoleMenuTree(String roleCode, String menuCodes);
public boolean getModifyPwd(String loginName,Str... |
package com.beans;
import java.io.Serializable;
public class TreePK extends BaseModel implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private String code;
private int type;
public String getCode() {
return code;
}
public void setCode(String code) {
thi... |
package com.beans;
import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
public class BaseModel implements Serializable {
private static final long serialVersionUID = 7806623222674094731L;
public String toString() {
... |
package com.servlet;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.Random;
import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
... |
package com.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
/**
* @author zeting
*/
public class DateUtil {
private static Log log = LogFactory.getLog(DateUtil.class);
public static ... |
package nl.captcha.noise;
import java.awt.image.BufferedImage;
/**
* @author <a href="mailto:james.childers@gmail.com">James Childers</a>
*
*/
public interface NoiseProducer {
public void makeNoise(BufferedImage image);
}
|
package nl.captcha.noise;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.CubicCurve2D;
import java.awt.geom.PathIterator;
import java.awt.geom.Point2D;
import java.awt.image.BufferedImage;
import java.security.SecureRandom;... |
package nl.captcha.noise;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.security.SecureRandom;
/**
* Draws a 4-pixel thick straight red line through the given image.
*
* @author <a href="mailto:james.childers@gmail.com">James Childers... |
package nl.captcha;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import nl.captcha.backgrounds.BackgroundProducer;
import nl.captcha.backgrounds.TransparentBackgroundProducer;
import nl.captcha.gimpy.GimpyRenderer;
import nl.captcha.noise.Nois... |
package nl.captcha.gimpy;
import java.awt.image.BufferedImage;
import com.jhlabs.image.RippleFilter;
import com.jhlabs.image.TransformFilter;
import static nl.captcha.util.ImageUtil.applyFilter;
/**
* @author <a href="mailto:james.childers@gmail.com">James Childers</a>
*/
public class RippleGimpyRende... |
package nl.captcha.gimpy;
import java.awt.image.BufferedImage;
import com.jhlabs.image.ShadowFilter;
import static nl.captcha.util.ImageUtil.applyFilter;
/**
* Twists text and adds a dark drop-shadow.
*
* @author <a href="mailto:james.childers@gmail.com">James Childers</a>
*
*/
public class DropS... |
package nl.captcha.gimpy;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.security.SecureRandom;
import java.util.Random;
public class ShearGimpyRenderer implements GimpyRenderer {
private final Random _gen = new SecureRandom();
private final Color _color;
... |
package nl.captcha.gimpy;
import java.awt.image.BufferedImage;
import com.jhlabs.image.BlockFilter;
import static nl.captcha.util.ImageUtil.applyFilter;
public class BlockGimpyRenderer implements GimpyRenderer {
private static final int DEF_BLOCK_SIZE = 3;
private final int _blockSize;
public BlockGimpyRender... |
package nl.captcha.gimpy;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
/**
* Overlays a warped grid to the image.
*
* @author <a href="mailto:james.childers@gmail.com">James Childers</a>
*
*/
public class FishEyeGimpyRenderer implements GimpyRenderer {
p... |
package nl.captcha.gimpy;
import java.awt.image.BufferedImage;
/**
* @author <a href="mailto:james.childers@gmail.com">James Childers</a>
*
*/
public interface GimpyRenderer {
public void gimp(BufferedImage image);
}
|
package nl.captcha.text.renderer;
import java.awt.image.BufferedImage;
/**
* @author <a href="mailto:james.childers@gmail.com">James Childers</a>
*
*/
public interface WordRenderer {
/**
* Render a word to a BufferedImage.
*
* @param word
* The word to be rendered.... |
package nl.captcha.text.renderer;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.font.FontRenderContext;
import java.awt.font.TextAttribute;
import java.awt.font.TextLayout;
import java.awt.geo... |
package nl.captcha.text.renderer;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.