blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
332
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
7
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
557 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
82 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
5.41M
extension
stringclasses
11 values
content
stringlengths
7
5.41M
authors
listlengths
1
1
author
stringlengths
0
161
ca2c670e690a668dcf4479a03a3f057ecd6f6cab
22c0ea86a3a73dda44921a87208022a3871d6c06
/.svn/pristine/e4/e49a95faf0a0fe05a032c4fb1c29db4f326f7d5b.svn-base
f29f0ca393983b26e54222bee4a68c28ca052a4c
[]
no_license
hungdt138/xeeng_server
e9cd0a3be7ee0fc928fb6337e950e12846bd065a
602ce57a4ec625c25aff0a48ac01d3c41f481c5a
refs/heads/master
2021-01-04T14:06:51.158259
2014-08-01T09:52:00
2014-08-01T09:52:00
22,504,067
1
0
null
null
null
null
UTF-8
Java
false
false
2,099
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.tv.xeeng.game.daugia; import java.text.SimpleDateFormat; import java.util.Date; import com.tv.xeeng.game.data.AIOConstants; /** * * @author tuanda */ public class BidInfo { public int id; public ProductInfo product; public long max; public long min; public long step; public String name; public String desc; public BidType type; public Date startDate; public Date endDate; public BidInfo() { } private String dateToString(Date d) { SimpleDateFormat dateformatYYYYMMDD = new SimpleDateFormat("hh:mm dd/MM/yyyy"); StringBuilder nowYYYYMMDD = new StringBuilder( dateformatYYYYMMDD.format(d)); return nowYYYYMMDD.toString(); } public BidInfo(int id, ProductInfo product, long max, long min, long step, String name, String desc, BidType type, Date startDate, Date endDate) { this.id = id; this.product = product; this.max = max; this.min = min; this.step = step; this.name = name; this.desc = desc; this.type = type; this.startDate = startDate; this.endDate = endDate; } public String toStringMessage() { StringBuilder sb = new StringBuilder(); sb.append(product.toStringMessage()).append(AIOConstants.SEPERATOR_BYTE_2); sb.append(id).append(AIOConstants.SEPERATOR_BYTE_1); sb.append(name).append(AIOConstants.SEPERATOR_BYTE_1); sb.append(desc).append(AIOConstants.SEPERATOR_BYTE_1); sb.append(max).append(AIOConstants.SEPERATOR_BYTE_1); sb.append(min).append(AIOConstants.SEPERATOR_BYTE_1); sb.append(step).append(AIOConstants.SEPERATOR_BYTE_1); sb.append(dateToString(startDate)).append(AIOConstants.SEPERATOR_BYTE_1); sb.append(dateToString(endDate)).append(AIOConstants.SEPERATOR_BYTE_1); sb.append(type.toStringMessage()).append(AIOConstants.SEPERATOR_BYTE_1); return sb.toString(); } }
7dd0427bd2fe1836499dfac57a233e9e4d4e93a2
743eafddaa6b40e26711c9b4bb8c4e5a1b3c298d
/ConsoleApplication/src/main/java/pl/edu/pwr/aic/dmp/helpers/CommonApplicationEntryHelper.java
bf902e0a04569cda631ff61e313bbcb0a2d86849
[]
no_license
Karol3500/drilling_machine
3807c4e85f4ee2d4e255b55fe750a154c3c82adf
362893bfa48b8c318fecbce8f8325abccc3090f7
refs/heads/master
2021-01-21T21:50:53.544300
2016-05-25T15:52:11
2016-05-25T15:52:11
31,728,813
0
0
null
null
null
null
UTF-8
Java
false
false
1,189
java
package pl.edu.pwr.aic.dmp.helpers; import java.io.IOException; import jxl.write.WriteException; import pl.edu.pwr.aic.dmp.metaEA.TuningSolutionsSingleton; import pl.edu.pwr.aic.dmp.metaEA.export.CsvTuningExperimentResultExporter; public class CommonApplicationEntryHelper { private String map; private String fileName; private static String getFileName(String[] args, String defaultResultFileName) { return args.length==2 ? args[1] : defaultResultFileName; } private static String getMap(String[] args, String defaultResultFileName) { return args.length >0 ? args[0] : defaultResultFileName; } public void initMapAndSolutionsSignleton(String[] args, String degaultMapFileName, String defaultResultFileName) throws WriteException, IOException { map = getMap(args, degaultMapFileName); fileName = getFileName(args, defaultResultFileName); TuningSolutionsSingleton.setResultExporter(new CsvTuningExperimentResultExporter(fileName)); } public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } public String getMap() { return map; } public void setMap(String map) { this.map = map; } }
2502c68066e8fe5e343adbf4cdeac92a7f462838
ac3b119663fce406ab53c711fa9fcfaef4048def
/src/main/java/com/etocrm/config/DruidDataSource1Config.java
984aa73a328b002fd7a348d61cb91d9194e2215d
[]
no_license
lq351334131/elastic-job
32a6c2352a054b65115a676978ed7c2603ed631c
8a765c180c7e6fe04b537464318a8aad99c03d3b
refs/heads/main
2023-06-17T10:13:18.608158
2021-07-14T09:07:57
2021-07-14T09:07:57
385,874,978
1
0
null
null
null
null
UTF-8
Java
false
false
2,175
java
package com.etocrm.config; import com.alibaba.druid.pool.DruidDataSource; import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSessionFactoryBean; import org.mybatis.spring.SqlSessionTemplate; import org.mybatis.spring.annotation.MapperScan; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.core.io.support.PathMatchingResourcePatternResolver; import org.springframework.jdbc.datasource.DataSourceTransactionManager; import javax.sql.DataSource; @Configuration @MapperScan(basePackages = "com.etocrm.dao.db1", sqlSessionTemplateRef = "masterSqlSessionTemplate") public class DruidDataSource1Config { @Bean(name = "masterDataSource") //下面这个注解控制哪个实例优先被注入,我们放在第一个数据源上面 @Primary @ConfigurationProperties(prefix = "spring.datasource.druid.db1") public DataSource dataSource() { return new DruidDataSource(); } @Bean(name = "masterSqlSessionFactory") @Primary public SqlSessionFactory sqlSessionFactory(@Qualifier("masterDataSource") DataSource dataSource) throws Exception { SqlSessionFactoryBean bean = new SqlSessionFactoryBean(); bean.setDataSource(dataSource); bean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources("classpath:mapper/*.xml")); return bean.getObject(); } @Bean(name = "masterTransactionManager") @Primary public DataSourceTransactionManager transactionManager(@Qualifier("masterDataSource") DataSource dataSource) { return new DataSourceTransactionManager(dataSource); } @Bean(name = "masterSqlSessionTemplate") @Primary public SqlSessionTemplate sqlSessionTemplate(@Qualifier("masterSqlSessionFactory") SqlSessionFactory sqlSessionFactory) throws Exception { return new SqlSessionTemplate(sqlSessionFactory); } }
624aafa89f202d9ff233c71dd8a372b57c41dd3e
e78d145026f2094903f482c3cc3a5b2d7141a397
/java/7斐波那契数列/src/com/oyoungy/Solution.java
a2816def037624be1f8bcb8b00962d702e22f7e5
[]
no_license
Neim-z-young/nowcoder-problems
d2472c8252818c45596983a724418ad3f54a8376
2d2b5421f73e2165282aacfcafb55068bdeca495
refs/heads/master
2020-06-08T23:24:42.265451
2020-01-02T11:36:19
2020-01-02T11:36:19
193,325,746
0
0
null
null
null
null
UTF-8
Java
false
false
267
java
package com.oyoungy; public class Solution { public int Fibonacci(int n) { if(n==0) return 0; int f1=0, f2=1, temp; while (--n>0){ temp = f2; f2 = f1+f2; f1 = temp; } return f2; } }
713a6a25ba0612e5e05a0f1b3fee95cd59119b86
83e779a58f6ce4cb01471c347811c3b6881a2424
/src/main/java/gear/treasure/Coin.java
3a3ccf7cba240531ef8e717e7ea970717033932b
[]
no_license
onitwin/dungeoncrawl
6386b6280c43bfe99bcd56bc01028d72896af171
a013bdf3ddc387de64acca661bfd6115ec943751
refs/heads/main
2023-04-09T12:04:37.510875
2021-04-08T09:49:58
2021-04-08T09:49:58
341,912,945
0
0
null
null
null
null
UTF-8
Java
false
false
239
java
package gear.treasure; public class Coin extends Loot { public Coin(String name, int value){ super(name, value); } public String description(){ return "its dull and rusted.. probably worthless.."; } }
c9743ec4d018607d0f954c2a87f23257fa684474
0d244e16231ae3c6dec937a995b2e29afff82e3d
/src/com/goodsquick/service/GoodsProductServiceImpl.java
0a788c633cfb22692cfdab4473c72d8df955ba03
[]
no_license
chaletli2014/GK
119b7f76362bf0f047ca92333ce48abc3234bf82
582aa414b803d4f7e84148d14d7bc9ed58f1a9a9
refs/heads/master
2021-01-21T04:41:47.436306
2016-07-18T16:22:28
2016-07-18T16:22:28
44,108,719
0
0
null
null
null
null
UTF-8
Java
false
false
3,773
java
package com.goodsquick.service; import java.util.Collections; import java.util.Date; import java.util.List; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.stereotype.Service; import com.goodsquick.dao.GoodsProductDAO; import com.goodsquick.dao.GoodsSourceFileDAO; import com.goodsquick.model.GoodsProduct; import com.goodsquick.model.GoodsProductObj; import com.goodsquick.model.WebUserInfo; @Service("goodsProductService") public class GoodsProductServiceImpl implements GoodsProductService { private Logger logger = Logger.getLogger(this.getClass()); @Autowired @Qualifier("goodsProductDAO") private GoodsProductDAO goodsProductDAO; @Autowired @Qualifier("goodsSourceFileDAO") private GoodsSourceFileDAO goodsSourceFileDAO; @Override public List<GoodsProduct> getGoodsProductByRepositoryCode( String repositoryCode) throws Exception { try{ return goodsProductDAO.getGoodsProductByRepositoryCode(repositoryCode); } catch(EmptyResultDataAccessException erd){ return Collections.emptyList(); } catch(Exception e){ logger.error("fail to get the goods product,",e); return Collections.emptyList(); } } @Override public GoodsProduct getGoodsProductById(int productId) throws Exception { return goodsProductDAO.getGoodsProductById(productId); } @Override public void saveOrUpdateGoodsProduct(GoodsProduct goodsProduct, WebUserInfo currentUser) throws Exception { int productId = goodsProduct.getId(); if( 0 == productId ){ goodsProduct.setCreateUser(currentUser.getLoginName()); goodsProduct.setUpdateUser(currentUser.getLoginName()); goodsProductDAO.saveGoodsProduct(goodsProduct, currentUser); }else{ goodsProduct.setUpdateUser(currentUser.getLoginName()); goodsProduct.setUpdateDate(new Date()); goodsProductDAO.updateGoodsProduct(goodsProduct, currentUser); } } @Override public void deleteGoodsProduct(GoodsProduct goodsProduct) throws Exception { goodsProductDAO.deleteGoodsProduct(goodsProduct); } @Override public List<GoodsProductObj> getProductObjByRepositoryCode( String repositoryCode) throws Exception { try{ return goodsProductDAO.getProductObjByRepositoryCode(repositoryCode); } catch(EmptyResultDataAccessException erd){ return Collections.emptyList(); } catch(Exception e){ logger.error("fail to get the goods product obj,",e); return Collections.emptyList(); } } @Override public GoodsProductObj getProductObjById(int productId) throws Exception { return goodsProductDAO.getProductObjById(productId); } @Override public void saveOrUpdateProductObj(GoodsProductObj goodsProduct, WebUserInfo currentUser) throws Exception { int productId = goodsProduct.getId(); if( 0 == productId ){ goodsProduct.setCreateUser(currentUser.getLoginName()); goodsProduct.setUpdateUser(currentUser.getLoginName()); goodsProductDAO.saveProductObj(goodsProduct, currentUser); }else{ goodsProduct.setUpdateUser(currentUser.getLoginName()); goodsProduct.setUpdateDate(new Date()); goodsProductDAO.updateProductObj(goodsProduct, currentUser); } goodsSourceFileDAO.setMainPicOfGoodsProduct(goodsProduct.getMainPicId(), productId, goodsProduct.getRepositoryCode(), currentUser); } @Override public void deleteProductObj(GoodsProductObj goodsProduct) throws Exception { goodsProductDAO.deleteProductObj(goodsProduct); } }
734f4dcd78fe131d34fa1d689b5d0381539e4a12
877157b9c5efabc094d65e53856831de936aec93
/Lesson 11/TaskManager/app/src/main/java/com/myapplicationdev/android/taskmanager/MainActivity.java
2045d3b9c1e1ed6d544e97edeedc2fdb5817ee32
[]
no_license
Ju-Long/C347
f31b6ec6d6ae8637cf6b5959b0724217c5c8b560
80ea06941ee867ee57bd14a45762e956b652c50e
refs/heads/main
2023-07-13T07:15:25.962698
2021-08-19T14:37:11
2021-08-19T14:37:11
359,655,076
0
2
null
null
null
null
UTF-8
Java
false
false
1,399
java
package com.myapplicationdev.android.taskmanager; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { ListView listview; Button btnAddTask; ArrayList<Task> tasklist; ArrayAdapter<Task> adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); listview = findViewById(R.id.listview); btnAddTask = findViewById(R.id.btnAdd); tasklist = new ArrayList<>(); adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, tasklist); listview.setAdapter(adapter); btnAddTask.setOnClickListener(v -> { Intent intent = new Intent(MainActivity.this, AddTaskActivity.class); startActivity(intent); }); } @Override protected void onResume() { super.onResume(); tasklist.clear(); DBHelper dbHelper = new DBHelper(MainActivity.this); tasklist.addAll(dbHelper.getTasks()); dbHelper.close(); adapter.notifyDataSetChanged(); } }
007f71a903d054a3ce8aefb997fc58ee5be9dfe0
61224306d00020fb274a082d66aa84b9c0c83715
/src/test/java/AllConcepts/HeadLessBrowser.java
ec9a225e7a8cd2092f889b8cb42cbd26a9f30a81
[]
no_license
premsingh1901/SeleniumPracticeMain
87e3cdd7cc861e87353ec75be4ef906b0296de35
2f88a949993ac42a54aee0fbdcbac8e985be63ea
refs/heads/master
2021-04-05T19:25:02.278728
2020-04-18T13:12:27
2020-04-18T13:12:27
248,591,565
1
0
null
2020-03-20T19:40:05
2020-03-19T19:49:26
Java
UTF-8
Java
false
false
1,395
java
package AllConcepts; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.htmlunit.HtmlUnitDriver; import org.openqa.selenium.support.ui.WebDriverWait; public class HeadLessBrowser { public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver","G:\\WorkSpcae\\JavaPractice\\SeleniumPractice\\Drivers\\chromedriver.exe"); //WebDriver driver=new ChromeDriver(); WebDriver driver=new HtmlUnitDriver(); String URL="http://testyou.in/Login.aspx?ReturnUrl=%2fStudent%2fStudentIndex.aspx%3faction%3dlogout&action=logout"; driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.manage().timeouts().setScriptTimeout(30, TimeUnit.SECONDS); driver.manage().deleteAllCookies(); driver.get(URL); System.out.println("Title of the Login Page: "+driver.getTitle()); driver.findElement(By.id("ctl00_CPHContainer_txtUserLogin")).sendKeys("premtest"); driver.findElement(By.id("ctl00_CPHContainer_txtPassword")).sendKeys("12345"); Thread.sleep(2000); driver.findElement(By.name("ctl00$CPHContainer$btnLoginn")).click(); System.out.println("Title of the Home page: "+driver.getTitle()); } }
1537b857c4c0272ffcd429d3a35d397350f03102
ca2500be17ca91de9b22da58cb9a628d2e30e613
/src/main/java/org/jauntsy/grinder/karma/mapred/builder/Buildable.java
3bf99a2b67c0bd9f55d383824a0c552d84f877f6
[]
no_license
strategist922/grinder
304a6472e5f0eccf3b2bca36bad27686502c7a26
923b2cff94b29d4d5b147befe89d95919bd413a8
refs/heads/master
2020-05-19T13:03:59.330686
2013-02-16T17:33:42
2013-02-16T17:33:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
251
java
package org.jauntsy.grinder.karma.mapred.builder; import org.jauntsy.grinder.karma.KarmaTopologyBuilder; /** * User: ebishop * Date: 2/7/13 * Time: 10:23 AM */ public interface Buildable { void buildIfNeeded(KarmaTopologyBuilder context); }
9a506a214a3ef69b11901d308bdf3b54d4d82b94
49ddea39864106965dd12aac2b7e6684c10edf75
/CSE222/HW1/src/com/pionix/Customer.java
707a8290e74537617c8e6f01b14bd89e30fda282
[]
no_license
xinoip/edu
6182ba18fab7d6210c3be671e524d6cce97bfca2
6205a5bb8fe28677c22cbbe8ab4752a05e69a453
refs/heads/master
2021-07-12T03:05:43.974494
2020-08-31T19:58:02
2020-08-31T19:58:02
192,091,664
4
4
null
null
null
null
UTF-8
Java
false
false
387
java
package com.pionix; /** * This role has access to only checking a shipment * with trackingNumber */ public class Customer extends PersonRole { public final static CustomerAccess access = new CustomerAccess(); public Customer(String username) { super(username); } @Override public String toString() { return "Customer name: " + username; } }
25b808593fc467502a6a77ad3b71a4bef577b6e5
ce8fd8e0d23dc8572bd7dc33740917a3cddf6ac0
/persentation/src/main/java/com/kulomady/tokopedia/view/ProductDetailsView.java
6b1c040639dbd62e8618612581faaff0a33e2661
[]
no_license
kulomady/MyToped
3c33f5961a91e21b2840b0ea233bc7fe4b36beda
858e374638b71dbeaa7dffefebf43e3de6553614
refs/heads/master
2021-01-21T14:08:50.522710
2016-07-20T02:49:02
2016-07-20T02:49:02
59,474,077
0
0
null
null
null
null
UTF-8
Java
false
false
450
java
package com.kulomady.tokopedia.view; import com.kulomady.tokopedia.model.ProductModel; /** * Interface representing a View in a model view presenter (MVP) pattern. * In this case is used as a view representing a product profile. */ public interface ProductDetailsView extends LoadDataView { /** * Render a product in the UI. * * @param user The {@link ProductModel} that will be shown. */ void renderUser(ProductModel user); }
e299bb04e5336ec381719da2b23cdb8380a7301f
c885ef92397be9d54b87741f01557f61d3f794f3
/results/JacksonDatabind-109/com.fasterxml.jackson.databind.ser.std.NumberSerializer/BBC-F0-opt-100/tests/27/com/fasterxml/jackson/databind/ser/std/NumberSerializer_ESTest_scaffolding.java
de7bd6df50e392b57b1ada62acca9a4ef9309a88
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
65,546
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Oct 23 19:50:52 GMT 2021 */ package com.fasterxml.jackson.databind.ser.std; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.junit.AfterClass; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class NumberSerializer_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "com.fasterxml.jackson.databind.ser.std.NumberSerializer"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); org.evosuite.runtime.classhandling.JDKClassResetter.init(); setSystemProperties(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @AfterClass public static void clearEvoSuiteFramework(){ Sandbox.resetDefaultSecurityManager(); java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); setSystemProperties(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); org.evosuite.runtime.classhandling.JDKClassResetter.reset(); resetClasses(); org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } public static void setSystemProperties() { java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); java.lang.System.setProperty("user.dir", "/experiment"); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(NumberSerializer_ESTest_scaffolding.class.getClassLoader() , "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonBooleanFormatVisitor", "com.fasterxml.jackson.databind.MappingIterator", "com.fasterxml.jackson.core.JsonFactoryBuilder", "com.fasterxml.jackson.databind.deser.BeanDeserializerModifier", "com.fasterxml.jackson.databind.deser.impl.FieldProperty", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$ShortSerializer", "com.fasterxml.jackson.databind.deser.std.EnumDeserializer", "com.fasterxml.jackson.annotation.ObjectIdGenerators$Base", "com.fasterxml.jackson.annotation.JsonFormat$Features", "com.fasterxml.jackson.databind.introspect.AnnotatedConstructor", "com.fasterxml.jackson.databind.cfg.MapperConfigBase", "com.fasterxml.jackson.databind.deser.UnresolvedForwardReference", "com.fasterxml.jackson.databind.ser.impl.UnknownSerializer", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWithSerializerProvider", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializers", "com.fasterxml.jackson.core.async.ByteArrayFeeder", "com.fasterxml.jackson.databind.type.MapLikeType", "com.fasterxml.jackson.databind.util.LinkedNode", "com.fasterxml.jackson.databind.type.MapType", "com.fasterxml.jackson.databind.annotation.JsonTypeResolver", "com.fasterxml.jackson.databind.ser.std.UUIDSerializer", "com.fasterxml.jackson.databind.ObjectWriter", "com.fasterxml.jackson.databind.type.TypeBase", "com.fasterxml.jackson.core.util.BufferRecyclers", "com.fasterxml.jackson.databind.node.TextNode", "com.fasterxml.jackson.core.util.Instantiatable", "com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase", "com.fasterxml.jackson.core.json.UTF8DataInputJsonParser", "com.fasterxml.jackson.annotation.Nulls", "com.fasterxml.jackson.annotation.JsonIgnoreProperties", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$Indenter", "com.fasterxml.jackson.databind.deser.impl.ReadableObjectId", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonAnyFormatVisitor", "com.fasterxml.jackson.databind.introspect.AnnotatedCreatorCollector", "com.fasterxml.jackson.annotation.JsonSetter$Value", "com.fasterxml.jackson.databind.node.DecimalNode", "com.fasterxml.jackson.annotation.JsonIgnoreProperties$Value", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$EmptyCollector", "com.fasterxml.jackson.databind.deser.Deserializers", "com.fasterxml.jackson.databind.util.Annotations", "com.fasterxml.jackson.databind.ser.std.CollectionSerializer", "com.fasterxml.jackson.databind.deser.KeyDeserializers", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$FloatDeserializer", "com.fasterxml.jackson.databind.introspect.VisibilityChecker$Std", "com.fasterxml.jackson.databind.type.CollectionLikeType", "com.fasterxml.jackson.core.FormatFeature", "com.fasterxml.jackson.core.TreeNode", "com.fasterxml.jackson.databind.node.NumericNode", "com.fasterxml.jackson.databind.deser.ValueInstantiator", "com.fasterxml.jackson.databind.ser.std.StaticListSerializerBase", "com.fasterxml.jackson.databind.type.ResolvedRecursiveType", "com.fasterxml.jackson.databind.introspect.AnnotatedClass$Creators", "com.fasterxml.jackson.databind.introspect.BasicClassIntrospector", "com.fasterxml.jackson.core.base.ParserMinimalBase", "com.fasterxml.jackson.databind.deser.std.MapEntryDeserializer", "com.fasterxml.jackson.databind.deser.BeanDeserializerBase", "com.fasterxml.jackson.databind.ObjectMapper$DefaultTyping", "com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition", "com.fasterxml.jackson.databind.util.Converter", "com.fasterxml.jackson.databind.ser.std.FileSerializer", "com.fasterxml.jackson.core.SerializableString", "com.fasterxml.jackson.databind.deser.ValueInstantiators", "com.fasterxml.jackson.core.Versioned", "com.fasterxml.jackson.databind.introspect.VirtualAnnotatedMember", "com.fasterxml.jackson.databind.introspect.BasicBeanDescription", "com.fasterxml.jackson.databind.deser.std.EnumSetDeserializer", "com.fasterxml.jackson.databind.introspect.AnnotatedMember", "com.fasterxml.jackson.databind.JsonSerializable", "com.fasterxml.jackson.databind.BeanDescription", "com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$DoubleDeserializer", "com.fasterxml.jackson.core.filter.JsonPointerBasedFilter", "com.fasterxml.jackson.databind.introspect.AnnotatedWithParams", "com.fasterxml.jackson.core.Base64Variant", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer", "com.fasterxml.jackson.databind.ser.SerializerFactory", "com.fasterxml.jackson.databind.type.SimpleType", "com.fasterxml.jackson.databind.ser.ContextualSerializer", "com.fasterxml.jackson.databind.DeserializationConfig", "com.fasterxml.jackson.databind.MapperFeature", "com.fasterxml.jackson.core.TSFBuilder", "com.fasterxml.jackson.databind.ser.std.ClassSerializer", "com.fasterxml.jackson.databind.Module$SetupContext", "com.fasterxml.jackson.databind.ext.Java7SupportImpl", "com.fasterxml.jackson.databind.util.ClassUtil", "com.fasterxml.jackson.databind.node.ContainerNode", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$LongSerializer", "com.fasterxml.jackson.databind.deser.BeanDeserializerFactory", "com.fasterxml.jackson.databind.ser.std.StdSerializer", "com.fasterxml.jackson.databind.ser.BeanSerializerFactory", "com.fasterxml.jackson.databind.PropertyNamingStrategy", "com.fasterxml.jackson.databind.jsonschema.SchemaAware", "com.fasterxml.jackson.databind.AbstractTypeResolver", "com.fasterxml.jackson.databind.introspect.AnnotatedClassResolver", "com.fasterxml.jackson.databind.BeanProperty$Bogus", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$DoubleSerializer", "com.fasterxml.jackson.databind.ser.std.ByteBufferSerializer", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor", "com.fasterxml.jackson.databind.deser.std.StdDelegatingDeserializer", "com.fasterxml.jackson.core.Base64Variants", "com.fasterxml.jackson.databind.node.InternalNodeMapper", "com.fasterxml.jackson.databind.deser.std.ArrayBlockingQueueDeserializer", "com.fasterxml.jackson.databind.util.ArrayBuilders", "com.fasterxml.jackson.databind.ser.std.IterableSerializer", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers$AtomicIntegerSerializer", "com.fasterxml.jackson.databind.ser.VirtualBeanPropertyWriter", "com.fasterxml.jackson.core.io.IOContext", "com.fasterxml.jackson.core.PrettyPrinter", "com.fasterxml.jackson.databind.util.RawValue", "com.fasterxml.jackson.core.base.GeneratorBase", "com.fasterxml.jackson.databind.exc.PropertyBindingException", "com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector", "com.fasterxml.jackson.databind.ser.BeanSerializer", "com.fasterxml.jackson.databind.ser.DefaultSerializerProvider", "com.fasterxml.jackson.databind.node.NullNode", "com.fasterxml.jackson.databind.deser.ValueInstantiator$Base", "com.fasterxml.jackson.core.util.Separators", "com.fasterxml.jackson.databind.ser.BeanSerializerModifier", "com.fasterxml.jackson.databind.jsontype.NamedType", "com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder", "com.fasterxml.jackson.databind.introspect.ObjectIdInfo", "com.fasterxml.jackson.core.json.JsonWriteContext", "com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector", "com.fasterxml.jackson.databind.ser.impl.MapEntrySerializer", "com.fasterxml.jackson.annotation.ObjectIdGenerators$PropertyGenerator", "com.fasterxml.jackson.annotation.JacksonInject", "com.fasterxml.jackson.core.io.UTF8Writer", "com.fasterxml.jackson.databind.BeanProperty", "com.fasterxml.jackson.core.Version", "com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector", "com.fasterxml.jackson.databind.ser.std.StdDelegatingSerializer", "com.fasterxml.jackson.core.io.InputDecorator", "com.fasterxml.jackson.databind.introspect.TypeResolutionContext", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat", "com.fasterxml.jackson.core.base.ParserBase", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$IntLikeSerializer", "com.fasterxml.jackson.databind.node.BinaryNode", "com.fasterxml.jackson.databind.introspect.AnnotationMap", "com.fasterxml.jackson.databind.ser.std.ToStringSerializer", "com.fasterxml.jackson.databind.deser.DataFormatReaders", "com.fasterxml.jackson.core.JsonGenerator", "com.fasterxml.jackson.databind.deser.DefaultDeserializationContext", "com.fasterxml.jackson.databind.ser.Serializers", "com.fasterxml.jackson.databind.type.ClassStack", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$CharacterDeserializer", "com.fasterxml.jackson.core.JsonEncoding", "com.fasterxml.jackson.databind.ObjectWriter$Prefetch", "com.fasterxml.jackson.core.JsonGenerationException", "com.fasterxml.jackson.databind.ser.std.JsonValueSerializer", "com.fasterxml.jackson.core.TreeCodec", "com.fasterxml.jackson.databind.deser.impl.SetterlessProperty", "com.fasterxml.jackson.annotation.JsonAutoDetect$Value", "com.fasterxml.jackson.core.json.UTF8JsonGenerator", "com.fasterxml.jackson.databind.ser.std.EnumSetSerializer", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor", "com.fasterxml.jackson.databind.ser.std.SerializableSerializer", "com.fasterxml.jackson.databind.introspect.Annotated", "com.fasterxml.jackson.core.type.WritableTypeId", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$DelegatingKD", "com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap", "com.fasterxml.jackson.databind.deser.std.StdValueInstantiator", "com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase", "com.fasterxml.jackson.databind.util.TokenBuffer", "com.fasterxml.jackson.core.JsonParser$NumberType", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$NopIndenter", "com.fasterxml.jackson.databind.type.PlaceholderForType", "com.fasterxml.jackson.core.json.WriterBasedJsonGenerator", "com.fasterxml.jackson.databind.jsontype.TypeDeserializer", "com.fasterxml.jackson.databind.node.LongNode", "com.fasterxml.jackson.databind.deser.CreatorProperty", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonStringFormatVisitor", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$StringCtorKeyDeserializer", "com.fasterxml.jackson.core.io.NumberOutput", "com.fasterxml.jackson.databind.ObjectWriter$GeneratorSettings", "com.fasterxml.jackson.core.type.TypeReference", "com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase", "com.fasterxml.jackson.core.JsonParseException", "com.fasterxml.jackson.databind.annotation.JacksonStdImpl", "com.fasterxml.jackson.databind.ser.std.TokenBufferSerializer", "com.fasterxml.jackson.databind.exc.ValueInstantiationException", "com.fasterxml.jackson.databind.type.TypeBindings$TypeParamStash", "com.fasterxml.jackson.annotation.JsonBackReference", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonArrayFormatVisitor", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BigDecimalDeserializer", "com.fasterxml.jackson.databind.deser.impl.CreatorCandidate", "com.fasterxml.jackson.databind.cfg.SerializerFactoryConfig", "com.fasterxml.jackson.databind.ser.std.MapSerializer", "com.fasterxml.jackson.databind.ser.std.SqlDateSerializer", "com.fasterxml.jackson.databind.util.RootNameLookup", "com.fasterxml.jackson.databind.introspect.AnnotatedClass", "com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap$Bucket", "com.fasterxml.jackson.databind.deser.std.AtomicReferenceDeserializer", "com.fasterxml.jackson.databind.ser.impl.FailingSerializer", "com.fasterxml.jackson.databind.JsonMappingException", "com.fasterxml.jackson.core.io.OutputDecorator", "com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$ShortDeserializer", "com.fasterxml.jackson.databind.ser.impl.TypeWrappedSerializer", "com.fasterxml.jackson.annotation.JsonTypeInfo$As", "com.fasterxml.jackson.databind.ser.std.SqlTimeSerializer", "com.fasterxml.jackson.databind.DatabindContext", "com.fasterxml.jackson.databind.node.ObjectNode", "com.fasterxml.jackson.databind.cfg.ConfigOverride", "com.fasterxml.jackson.core.JsonParser$Feature", "com.fasterxml.jackson.core.JsonPointer", "com.fasterxml.jackson.core.io.SerializedString", "com.fasterxml.jackson.annotation.JsonMerge", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$FixedSpaceIndenter", "com.fasterxml.jackson.databind.deser.DeserializationProblemHandler", "com.fasterxml.jackson.annotation.JsonFormat$Shape", "com.fasterxml.jackson.databind.introspect.AnnotationCollector", "com.fasterxml.jackson.annotation.PropertyAccessor", "com.fasterxml.jackson.databind.introspect.AnnotatedField", "com.fasterxml.jackson.databind.deser.std.ContainerDeserializerBase", "com.fasterxml.jackson.annotation.JsonFormat$Feature", "com.fasterxml.jackson.databind.deser.ContextualDeserializer", "com.fasterxml.jackson.databind.ser.std.ArraySerializerBase", "com.fasterxml.jackson.annotation.ObjectIdGenerator", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes", "com.fasterxml.jackson.databind.cfg.HandlerInstantiator", "com.fasterxml.jackson.databind.ser.std.CalendarSerializer", "com.fasterxml.jackson.databind.annotation.JsonValueInstantiator", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BigIntegerDeserializer", "com.fasterxml.jackson.databind.ext.Java7Support", "com.fasterxml.jackson.databind.ser.std.BooleanSerializer$AsNumber", "com.fasterxml.jackson.databind.exc.InvalidDefinitionException", "com.fasterxml.jackson.databind.ser.std.BooleanSerializer", "com.fasterxml.jackson.annotation.JsonAutoDetect$1", "com.fasterxml.jackson.databind.introspect.ClassIntrospector", "com.fasterxml.jackson.databind.JsonSerializable$Base", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer", "com.fasterxml.jackson.databind.cfg.ConfigOverride$Empty", "com.fasterxml.jackson.databind.util.AccessPattern", "com.fasterxml.jackson.databind.deser.std.CollectionDeserializer", "com.fasterxml.jackson.databind.node.TreeTraversingParser", "com.fasterxml.jackson.databind.jsontype.TypeSerializer", "com.fasterxml.jackson.databind.jsonschema.JsonSchema", "com.fasterxml.jackson.core.json.JsonReadFeature", "com.fasterxml.jackson.databind.type.TypeFactory", "com.fasterxml.jackson.databind.type.ArrayType", "com.fasterxml.jackson.databind.deser.impl.ObjectIdReader", "com.fasterxml.jackson.databind.util.Named", "com.fasterxml.jackson.core.util.JsonParserDelegate", "com.fasterxml.jackson.databind.cfg.ConfigOverrides", "com.fasterxml.jackson.databind.ser.std.StdScalarSerializer", "com.fasterxml.jackson.databind.type.CollectionType", "com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer", "com.fasterxml.jackson.core.StreamWriteFeature", "com.fasterxml.jackson.annotation.JsonAutoDetect", "com.fasterxml.jackson.core.StreamReadFeature", "com.fasterxml.jackson.core.format.InputAccessor", "com.fasterxml.jackson.databind.node.ValueNode", "com.fasterxml.jackson.databind.ser.impl.IteratorSerializer", "com.fasterxml.jackson.databind.deser.std.EnumMapDeserializer", "com.fasterxml.jackson.databind.ser.BasicSerializerFactory", "com.fasterxml.jackson.databind.ser.std.NumberSerializer$1", "com.fasterxml.jackson.databind.util.ClassUtil$Ctor", "com.fasterxml.jackson.databind.ext.NioPathDeserializer", "com.fasterxml.jackson.databind.node.JsonNodeCreator", "com.fasterxml.jackson.databind.deser.SettableBeanProperty", "com.fasterxml.jackson.core.async.NonBlockingInputFeeder", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper", "com.fasterxml.jackson.core.json.ReaderBasedJsonParser", "com.fasterxml.jackson.core.JsonLocation", "com.fasterxml.jackson.databind.exc.MismatchedInputException", "com.fasterxml.jackson.databind.node.FloatNode", "com.fasterxml.jackson.databind.node.IntNode", "com.fasterxml.jackson.databind.type.TypeParser", "com.fasterxml.jackson.databind.jsontype.SubtypeResolver", "com.fasterxml.jackson.core.ObjectCodec", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$PrimitiveOrWrapperDeserializer", "com.fasterxml.jackson.databind.ser.std.EnumSerializer", "com.fasterxml.jackson.databind.cfg.ContextAttributes$Impl", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter", "com.fasterxml.jackson.databind.KeyDeserializer", "com.fasterxml.jackson.core.util.BufferRecycler", "com.fasterxml.jackson.databind.deser.impl.ErrorThrowingDeserializer", "com.fasterxml.jackson.databind.deser.impl.PropertyBasedObjectIdGenerator", "com.fasterxml.jackson.databind.ser.impl.StringCollectionSerializer", "com.fasterxml.jackson.annotation.ObjectIdResolver", "com.fasterxml.jackson.databind.DeserializationContext", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$Base", "com.fasterxml.jackson.databind.ser.std.InetSocketAddressSerializer", "com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$ByteDeserializer", "com.fasterxml.jackson.databind.node.DoubleNode", "com.fasterxml.jackson.databind.ser.PropertyWriter", "com.fasterxml.jackson.databind.deser.impl.CreatorCandidate$Param", "com.fasterxml.jackson.databind.type.ReferenceType", "com.fasterxml.jackson.core.util.ByteArrayBuilder", "com.fasterxml.jackson.databind.ser.impl.IndexedStringListSerializer", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$TableInfo", "com.fasterxml.jackson.databind.ser.std.NumberSerializer", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$NoAnnotations", "com.fasterxml.jackson.databind.Module", "com.fasterxml.jackson.annotation.JsonView", "com.fasterxml.jackson.databind.AnnotationIntrospector", "com.fasterxml.jackson.databind.ser.ContainerSerializer", "com.fasterxml.jackson.databind.ser.std.DateSerializer", "com.fasterxml.jackson.databind.ser.std.NullSerializer", "com.fasterxml.jackson.databind.deser.std.StringDeserializer", "com.fasterxml.jackson.databind.deser.std.StringArrayDeserializer", "com.fasterxml.jackson.databind.exc.InvalidTypeIdException", "com.fasterxml.jackson.databind.DeserializationFeature", "com.fasterxml.jackson.annotation.JacksonAnnotation", "com.fasterxml.jackson.databind.node.POJONode", "com.fasterxml.jackson.databind.ObjectReader", "com.fasterxml.jackson.databind.node.BaseJsonNode", "com.fasterxml.jackson.databind.node.BigIntegerNode", "com.fasterxml.jackson.databind.util.LRUMap", "com.fasterxml.jackson.databind.JsonDeserializer", "com.fasterxml.jackson.databind.util.SimpleBeanPropertyDefinition", "com.fasterxml.jackson.databind.deser.impl.MethodProperty", "com.fasterxml.jackson.annotation.JsonRawValue", "com.fasterxml.jackson.core.util.DefaultIndenter", "com.fasterxml.jackson.databind.node.ArrayNode", "com.fasterxml.jackson.annotation.JsonAutoDetect$Visibility", "com.fasterxml.jackson.databind.ser.impl.AttributePropertyWriter", "com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla", "com.fasterxml.jackson.databind.deser.std.MapDeserializer", "com.fasterxml.jackson.databind.exc.InvalidFormatException", "com.fasterxml.jackson.core.io.CharacterEscapes", "com.fasterxml.jackson.databind.deser.std.TokenBufferDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$NumberDeserializer", "com.fasterxml.jackson.core.type.ResolvedType", "com.fasterxml.jackson.databind.deser.impl.CreatorCollector", "com.fasterxml.jackson.databind.ser.std.NumberSerializers", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$LongDeserializer", "com.fasterxml.jackson.databind.annotation.JsonSerialize", "com.fasterxml.jackson.annotation.JsonIgnore", "com.fasterxml.jackson.databind.ser.impl.PropertyBasedObjectIdGenerator", "com.fasterxml.jackson.databind.introspect.AnnotatedMethod", "com.fasterxml.jackson.databind.jsontype.TypeIdResolver", "com.fasterxml.jackson.databind.util.ConstantValueInstantiator", "com.fasterxml.jackson.databind.introspect.VisibilityChecker", "com.fasterxml.jackson.core.JsonParser", "com.fasterxml.jackson.databind.introspect.AnnotatedParameter", "com.fasterxml.jackson.databind.ser.BeanPropertyWriter", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$FloatSerializer", "com.fasterxml.jackson.core.JsonProcessingException", "com.fasterxml.jackson.core.JsonStreamContext", "com.fasterxml.jackson.core.format.MatchStrength", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$Bucket", "com.fasterxml.jackson.databind.introspect.CollectorBase", "com.fasterxml.jackson.annotation.JsonCreator", "com.fasterxml.jackson.databind.cfg.MutableConfigOverride", "com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer", "com.fasterxml.jackson.core.TokenStreamFactory", "com.fasterxml.jackson.databind.deser.DefaultDeserializationContext$Impl", "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException", "com.fasterxml.jackson.core.filter.TokenFilter", "com.fasterxml.jackson.databind.util.ArrayIterator", "com.fasterxml.jackson.core.io.CharTypes", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers$AtomicBooleanSerializer", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers$AtomicLongSerializer", "com.fasterxml.jackson.databind.ser.std.InetAddressSerializer", "com.fasterxml.jackson.databind.deser.impl.CreatorCollector$StdTypeConstructor", "com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver", "com.fasterxml.jackson.core.exc.InputCoercionException", "com.fasterxml.jackson.databind.deser.std.StdDeserializer", "com.fasterxml.jackson.annotation.JsonInclude$Include", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper$Base", "com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer$TableInfo", "com.fasterxml.jackson.databind.JsonSerializer", "com.fasterxml.jackson.databind.JsonNode", "com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig", "com.fasterxml.jackson.databind.ser.ResolvableSerializer", "com.fasterxml.jackson.databind.PropertyName", "com.fasterxml.jackson.annotation.JsonCreator$Mode", "com.fasterxml.jackson.core.json.async.NonBlockingJsonParser", "com.fasterxml.jackson.databind.json.JsonMapper", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormatVisitor", "com.fasterxml.jackson.databind.deser.BasicDeserializerFactory", "com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer", "com.fasterxml.jackson.databind.node.JsonNodeFactory", "com.fasterxml.jackson.databind.ser.impl.StringArraySerializer", "com.fasterxml.jackson.databind.cfg.MapperConfig", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$StringFactoryKeyDeserializer", "com.fasterxml.jackson.annotation.JsonManagedReference", "com.fasterxml.jackson.databind.annotation.JsonDeserialize", "com.fasterxml.jackson.databind.util.ObjectBuffer", "com.fasterxml.jackson.databind.InjectableValues", "com.fasterxml.jackson.databind.MappingJsonFactory", "com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer", "com.fasterxml.jackson.databind.ser.std.TimeZoneSerializer", "com.fasterxml.jackson.core.json.async.NonBlockingJsonParserBase", "com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair", "com.fasterxml.jackson.databind.ext.NioPathSerializer", "com.fasterxml.jackson.databind.ser.std.StringSerializer", "com.fasterxml.jackson.databind.JavaType", "com.fasterxml.jackson.databind.deser.BeanDeserializer", "com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonNullFormatVisitor", "com.fasterxml.jackson.databind.node.JsonNodeType", "com.fasterxml.jackson.databind.deser.NullValueProvider", "com.fasterxml.jackson.core.util.TextBuffer", "com.fasterxml.jackson.annotation.JacksonAnnotationValue", "com.fasterxml.jackson.core.JsonFactory", "com.fasterxml.jackson.databind.util.NameTransformer", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$EnumKD", "com.fasterxml.jackson.databind.node.ShortNode", "com.fasterxml.jackson.databind.node.BooleanNode", "com.fasterxml.jackson.databind.node.MissingNode", "com.fasterxml.jackson.databind.util.StdDateFormat", "com.fasterxml.jackson.core.util.MinimalPrettyPrinter", "com.fasterxml.jackson.databind.SerializationConfig", "com.fasterxml.jackson.annotation.JsonFormat$Value", "com.fasterxml.jackson.databind.PropertyMetadata", "com.fasterxml.jackson.databind.ser.std.BeanSerializerBase", "com.fasterxml.jackson.annotation.JsonInclude$Value", "com.fasterxml.jackson.databind.deser.std.ReferenceTypeDeserializer", "com.fasterxml.jackson.databind.deser.ResolvableDeserializer", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonNumberFormatVisitor", "com.fasterxml.jackson.databind.util.TypeKey", "com.fasterxml.jackson.databind.deser.impl.NullsConstantProvider", "com.fasterxml.jackson.databind.ser.FilterProvider", "com.fasterxml.jackson.databind.introspect.SimpleMixInResolver", "com.fasterxml.jackson.annotation.JsonFormat", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers", "com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer", "com.fasterxml.jackson.databind.deser.DeserializerFactory", "com.fasterxml.jackson.databind.type.TypeModifier", "com.fasterxml.jackson.annotation.JsonTypeInfo", "com.fasterxml.jackson.annotation.JsonUnwrapped", "com.fasterxml.jackson.core.filter.FilteringParserDelegate", "com.fasterxml.jackson.databind.introspect.ClassIntrospector$MixInResolver", "com.fasterxml.jackson.core.json.JsonGeneratorImpl", "com.fasterxml.jackson.databind.deser.AbstractDeserializer", "com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer", "com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer", "com.fasterxml.jackson.databind.type.TypeBindings$AsKey", "com.fasterxml.jackson.core.JsonFactory$Feature", "com.fasterxml.jackson.databind.ser.SerializerCache", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$IntegerSerializer", "com.fasterxml.jackson.core.io.DataOutputAsStream", "com.fasterxml.jackson.core.io.SegmentedStringWriter", "com.fasterxml.jackson.databind.type.TypeBindings", "com.fasterxml.jackson.databind.ser.impl.WritableObjectId", "com.fasterxml.jackson.databind.deser.std.JsonLocationInstantiator", "com.fasterxml.jackson.databind.SerializerProvider", "com.fasterxml.jackson.core.JsonToken", "com.fasterxml.jackson.databind.cfg.ContextAttributes", "com.fasterxml.jackson.annotation.JsonIdentityInfo", "com.fasterxml.jackson.databind.deser.ValueInstantiator$Gettable", "com.fasterxml.jackson.core.JsonGenerator$Feature", "com.fasterxml.jackson.databind.cfg.BaseSettings", "com.fasterxml.jackson.databind.ObjectMapper", "com.fasterxml.jackson.core.exc.StreamReadException", "com.fasterxml.jackson.databind.ser.DefaultSerializerProvider$Impl", "com.fasterxml.jackson.databind.deser.DeserializerCache", "com.fasterxml.jackson.databind.cfg.ConfigFeature", "com.fasterxml.jackson.core.FormatSchema", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BooleanDeserializer", "com.fasterxml.jackson.databind.ser.PropertyFilter", "com.fasterxml.jackson.databind.SerializationFeature", "com.fasterxml.jackson.core.json.JsonWriteFeature", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$OneCollector" ); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(NumberSerializer_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "com.fasterxml.jackson.databind.JsonSerializer", "com.fasterxml.jackson.databind.ser.std.StdSerializer", "com.fasterxml.jackson.databind.ser.std.StdScalarSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializer", "com.fasterxml.jackson.annotation.JsonFormat$Shape", "com.fasterxml.jackson.databind.ser.std.NumberSerializer$1", "com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase", "com.fasterxml.jackson.databind.ser.std.ToStringSerializer", "com.fasterxml.jackson.core.JsonParser$NumberType", "com.fasterxml.jackson.annotation.JsonCreator$Mode", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper$Base", "com.fasterxml.jackson.core.type.ResolvedType", "com.fasterxml.jackson.databind.JavaType", "com.fasterxml.jackson.databind.type.TypeBindings", "com.fasterxml.jackson.databind.type.TypeBase", "com.fasterxml.jackson.databind.type.PlaceholderForType", "com.fasterxml.jackson.databind.util.LRUMap", "com.fasterxml.jackson.databind.type.TypeParser", "com.fasterxml.jackson.databind.type.SimpleType", "com.fasterxml.jackson.databind.type.TypeFactory", "com.fasterxml.jackson.databind.type.ArrayType", "com.fasterxml.jackson.databind.type.MapLikeType", "com.fasterxml.jackson.core.util.BufferRecycler", "com.fasterxml.jackson.core.io.IOContext", "com.fasterxml.jackson.core.util.ByteArrayBuilder", "com.fasterxml.jackson.core.JsonGenerator", "com.fasterxml.jackson.core.base.GeneratorBase", "com.fasterxml.jackson.core.io.CharTypes", "com.fasterxml.jackson.core.json.JsonGeneratorImpl", "com.fasterxml.jackson.core.json.UTF8JsonGenerator", "com.fasterxml.jackson.core.JsonStreamContext", "com.fasterxml.jackson.core.json.JsonWriteContext", "com.fasterxml.jackson.core.io.SerializedString", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter", "com.fasterxml.jackson.databind.DatabindContext", "com.fasterxml.jackson.databind.ser.impl.FailingSerializer", "com.fasterxml.jackson.databind.ser.impl.UnknownSerializer", "com.fasterxml.jackson.databind.SerializerProvider", "com.fasterxml.jackson.databind.ser.DefaultSerializerProvider", "com.fasterxml.jackson.databind.ser.DefaultSerializerProvider$Impl", "com.fasterxml.jackson.databind.ser.std.NullSerializer", "com.fasterxml.jackson.databind.ser.SerializerCache", "com.fasterxml.jackson.databind.JsonSerializable$Base", "com.fasterxml.jackson.databind.JsonNode", "com.fasterxml.jackson.databind.node.BaseJsonNode", "com.fasterxml.jackson.databind.node.ValueNode", "com.fasterxml.jackson.databind.node.NumericNode", "com.fasterxml.jackson.databind.node.LongNode", "com.fasterxml.jackson.core.TokenStreamFactory", "com.fasterxml.jackson.core.JsonFactory$Feature", "com.fasterxml.jackson.core.JsonFactory", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$TableInfo", "com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer", "com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer$TableInfo", "com.fasterxml.jackson.databind.type.ReferenceType", "com.fasterxml.jackson.core.TreeCodec", "com.fasterxml.jackson.core.ObjectCodec", "com.fasterxml.jackson.databind.AnnotationIntrospector", "com.fasterxml.jackson.databind.ext.Java7SupportImpl", "com.fasterxml.jackson.databind.util.ClassUtil", "com.fasterxml.jackson.databind.ext.Java7Support", "com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector", "com.fasterxml.jackson.databind.cfg.BaseSettings", "com.fasterxml.jackson.databind.util.StdDateFormat", "com.fasterxml.jackson.core.Base64Variant", "com.fasterxml.jackson.core.Base64Variants", "com.fasterxml.jackson.databind.ObjectMapper", "com.fasterxml.jackson.databind.MappingJsonFactory", "com.fasterxml.jackson.databind.jsontype.SubtypeResolver", "com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver", "com.fasterxml.jackson.databind.util.RootNameLookup", "com.fasterxml.jackson.databind.introspect.SimpleMixInResolver", "com.fasterxml.jackson.databind.introspect.ClassIntrospector", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$NoAnnotations", "com.fasterxml.jackson.databind.introspect.AnnotationCollector", "com.fasterxml.jackson.databind.introspect.AnnotatedClassResolver", "com.fasterxml.jackson.databind.introspect.Annotated", "com.fasterxml.jackson.databind.introspect.AnnotatedClass$Creators", "com.fasterxml.jackson.databind.introspect.AnnotatedClass", "com.fasterxml.jackson.databind.BeanDescription", "com.fasterxml.jackson.databind.introspect.BasicBeanDescription", "com.fasterxml.jackson.databind.introspect.BasicClassIntrospector", "com.fasterxml.jackson.databind.cfg.ConfigOverrides", "com.fasterxml.jackson.annotation.JsonInclude$Include", "com.fasterxml.jackson.annotation.JsonInclude$Value", "com.fasterxml.jackson.annotation.Nulls", "com.fasterxml.jackson.annotation.JsonSetter$Value", "com.fasterxml.jackson.databind.introspect.VisibilityChecker$Std", "com.fasterxml.jackson.annotation.JsonFormat$Features", "com.fasterxml.jackson.annotation.JsonFormat$Value", "com.fasterxml.jackson.databind.cfg.MapperConfig", "com.fasterxml.jackson.databind.cfg.ConfigOverride", "com.fasterxml.jackson.databind.cfg.ConfigOverride$Empty", "com.fasterxml.jackson.databind.MapperFeature", "com.fasterxml.jackson.databind.cfg.MapperConfigBase", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$NopIndenter", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$FixedSpaceIndenter", "com.fasterxml.jackson.core.util.DefaultIndenter", "com.fasterxml.jackson.core.util.Separators", "com.fasterxml.jackson.core.PrettyPrinter", "com.fasterxml.jackson.databind.SerializationConfig", "com.fasterxml.jackson.databind.cfg.ContextAttributes", "com.fasterxml.jackson.databind.cfg.ContextAttributes$Impl", "com.fasterxml.jackson.databind.DeserializationConfig", "com.fasterxml.jackson.databind.node.JsonNodeFactory", "com.fasterxml.jackson.databind.DeserializationContext", "com.fasterxml.jackson.databind.deser.DefaultDeserializationContext", "com.fasterxml.jackson.databind.deser.DefaultDeserializationContext$Impl", "com.fasterxml.jackson.databind.deser.DeserializerFactory", "com.fasterxml.jackson.databind.PropertyName", "com.fasterxml.jackson.databind.deser.BasicDeserializerFactory", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializers", "com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig", "com.fasterxml.jackson.databind.deser.BeanDeserializerFactory", "com.fasterxml.jackson.databind.deser.DeserializerCache", "com.fasterxml.jackson.databind.ser.SerializerFactory", "com.fasterxml.jackson.databind.ser.std.StringSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$Base", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$IntegerSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$LongSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$IntLikeSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$ShortSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$DoubleSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$FloatSerializer", "com.fasterxml.jackson.databind.ser.std.BooleanSerializer", "com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase", "com.fasterxml.jackson.databind.ser.std.CalendarSerializer", "com.fasterxml.jackson.databind.ser.std.DateSerializer", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers", "com.fasterxml.jackson.databind.ser.std.UUIDSerializer", "com.fasterxml.jackson.databind.ser.BasicSerializerFactory", "com.fasterxml.jackson.databind.cfg.SerializerFactoryConfig", "com.fasterxml.jackson.databind.ser.BeanSerializerFactory", "com.fasterxml.jackson.databind.ObjectReader", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$EmptyCollector", "com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector", "com.fasterxml.jackson.databind.util.ArrayIterator", "com.fasterxml.jackson.databind.JsonDeserializer", "com.fasterxml.jackson.databind.deser.std.StdDeserializer", "com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer", "com.fasterxml.jackson.databind.type.TypeBindings$AsKey", "com.fasterxml.jackson.databind.type.ClassStack", "com.fasterxml.jackson.databind.type.TypeBindings$TypeParamStash", "com.fasterxml.jackson.databind.type.CollectionLikeType", "com.fasterxml.jackson.databind.type.CollectionType", "com.fasterxml.jackson.databind.deser.impl.CreatorCollector", "com.fasterxml.jackson.databind.introspect.CollectorBase", "com.fasterxml.jackson.databind.introspect.AnnotatedCreatorCollector", "com.fasterxml.jackson.databind.util.ClassUtil$Ctor", "com.fasterxml.jackson.databind.introspect.AnnotatedMember", "com.fasterxml.jackson.databind.introspect.AnnotatedWithParams", "com.fasterxml.jackson.databind.introspect.AnnotatedConstructor", "com.fasterxml.jackson.databind.introspect.AnnotationMap", "com.fasterxml.jackson.databind.introspect.AnnotatedMethod", "com.fasterxml.jackson.annotation.JsonAutoDetect$1", "com.fasterxml.jackson.databind.deser.impl.CreatorCandidate", "com.fasterxml.jackson.databind.introspect.AnnotatedParameter", "com.fasterxml.jackson.databind.deser.impl.CreatorCandidate$Param", "com.fasterxml.jackson.databind.deser.impl.CreatorCollector$StdTypeConstructor", "com.fasterxml.jackson.databind.deser.ValueInstantiator", "com.fasterxml.jackson.databind.deser.std.StdValueInstantiator", "com.fasterxml.jackson.databind.deser.std.ContainerDeserializerBase", "com.fasterxml.jackson.databind.deser.std.CollectionDeserializer", "com.fasterxml.jackson.databind.util.AccessPattern", "com.fasterxml.jackson.databind.deser.impl.NullsConstantProvider", "com.fasterxml.jackson.databind.type.MapType", "com.fasterxml.jackson.databind.deser.std.MapDeserializer", "com.fasterxml.jackson.annotation.JsonIgnoreProperties$Value", "com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer", "com.fasterxml.jackson.databind.deser.std.StringDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$NumberDeserializer", "com.fasterxml.jackson.databind.util.LinkedNode", "com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla", "com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap", "com.fasterxml.jackson.databind.node.ContainerNode", "com.fasterxml.jackson.databind.node.ObjectNode", "com.fasterxml.jackson.databind.node.TextNode", "com.fasterxml.jackson.databind.json.JsonMapper", "com.fasterxml.jackson.core.util.MinimalPrettyPrinter", "com.fasterxml.jackson.databind.ObjectWriter", "com.fasterxml.jackson.databind.ObjectWriter$GeneratorSettings", "com.fasterxml.jackson.databind.ObjectWriter$Prefetch", "com.fasterxml.jackson.databind.node.InternalNodeMapper", "com.fasterxml.jackson.core.io.SegmentedStringWriter", "com.fasterxml.jackson.core.util.BufferRecyclers", "com.fasterxml.jackson.core.util.TextBuffer", "com.fasterxml.jackson.core.json.WriterBasedJsonGenerator", "com.fasterxml.jackson.databind.util.TypeKey", "com.fasterxml.jackson.databind.type.ResolvedRecursiveType", "com.fasterxml.jackson.databind.ser.std.SerializableSerializer", "com.fasterxml.jackson.core.JsonToken", "com.fasterxml.jackson.databind.node.JsonNodeType", "com.fasterxml.jackson.databind.module.SimpleKeyDeserializers", "com.fasterxml.jackson.databind.util.ArrayBuilders", "com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap$Bucket", "com.fasterxml.jackson.databind.deser.std.FromStringDeserializer", "com.fasterxml.jackson.databind.ext.CoreXMLDeserializers$Std", "com.fasterxml.jackson.databind.deser.Deserializers$Base", "com.fasterxml.jackson.databind.deser.AbstractDeserializer", "com.fasterxml.jackson.databind.deser.DeserializationProblemHandler", "com.fasterxml.jackson.core.util.JsonGeneratorDelegate", "com.fasterxml.jackson.core.filter.FilteringGeneratorDelegate", "com.fasterxml.jackson.core.filter.TokenFilterContext", "com.fasterxml.jackson.core.io.NumberOutput", "com.fasterxml.jackson.databind.node.NullNode", "com.fasterxml.jackson.databind.node.BooleanNode", "com.fasterxml.jackson.databind.PropertyNamingStrategy$PropertyNamingStrategyBase", "com.fasterxml.jackson.databind.PropertyNamingStrategy$SnakeCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy$UpperCamelCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy$LowerCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy$KebabCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy$LowerDotCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy", "com.fasterxml.jackson.core.type.TypeReference", "com.fasterxml.jackson.annotation.JsonAutoDetect$Value", "com.fasterxml.jackson.core.TSFBuilder", "com.fasterxml.jackson.core.JsonFactoryBuilder", "com.fasterxml.jackson.core.io.CharacterEscapes", "com.fasterxml.jackson.core.JsonpCharacterEscapes", "com.fasterxml.jackson.core.io.DataOutputAsStream", "com.fasterxml.jackson.databind.introspect.VisibilityChecker$1", "com.fasterxml.jackson.databind.BeanProperty$Bogus", "com.fasterxml.jackson.databind.InjectableValues", "com.fasterxml.jackson.databind.InjectableValues$Std", "com.fasterxml.jackson.core.io.JsonStringEncoder", "com.fasterxml.jackson.core.json.JsonReadFeature", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$PrimitiveOrWrapperDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer", "com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder", "com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap", "com.fasterxml.jackson.databind.deser.BeanDeserializerBase", "com.fasterxml.jackson.databind.deser.BeanDeserializer", "com.fasterxml.jackson.core.filter.TokenFilter", "com.fasterxml.jackson.core.JsonParser", "com.fasterxml.jackson.core.util.JsonParserDelegate", "com.fasterxml.jackson.core.filter.FilteringParserDelegate", "com.fasterxml.jackson.core.JsonProcessingException", "com.fasterxml.jackson.core.JsonGenerationException", "com.fasterxml.jackson.databind.JsonMappingException", "com.fasterxml.jackson.databind.exc.MismatchedInputException", "com.fasterxml.jackson.databind.exc.InvalidFormatException", "com.fasterxml.jackson.databind.type.TypeModifier", "com.fasterxml.jackson.core.json.DupDetector", "com.fasterxml.jackson.databind.util.NameTransformer$NopTransformer", "com.fasterxml.jackson.databind.util.NameTransformer", "com.fasterxml.jackson.databind.util.NameTransformer$1", "com.fasterxml.jackson.databind.util.NameTransformer$Chained", "com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder", "com.fasterxml.jackson.databind.ObjectMapper$DefaultTypeResolverBuilder", "com.fasterxml.jackson.annotation.JsonTypeInfo$Id", "com.fasterxml.jackson.databind.ser.FilterProvider", "com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider", "com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter", "com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter$FilterExceptFilter", "com.fasterxml.jackson.databind.module.SimpleDeserializers", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$ByteDeserializer", "com.fasterxml.jackson.core.JsonPointer", "com.fasterxml.jackson.core.filter.JsonPointerBasedFilter", "com.fasterxml.jackson.databind.deser.DataFormatReaders", "com.fasterxml.jackson.databind.node.FloatNode", "com.fasterxml.jackson.databind.introspect.TypeResolutionContext$Basic", "com.fasterxml.jackson.core.base.ParserMinimalBase", "com.fasterxml.jackson.databind.node.TreeTraversingParser", "com.fasterxml.jackson.databind.node.NodeCursor", "com.fasterxml.jackson.databind.node.NodeCursor$RootCursor", "com.fasterxml.jackson.databind.exc.InvalidDefinitionException", "com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter$SerializeExceptFilter", "com.fasterxml.jackson.databind.deser.ValueInstantiator$Base", "com.fasterxml.jackson.databind.exc.InvalidTypeIdException", "com.fasterxml.jackson.databind.type.ClassKey", "com.fasterxml.jackson.databind.ext.OptionalHandlerFactory", "com.fasterxml.jackson.databind.deser.std.JdkDeserializers", "com.fasterxml.jackson.databind.jsontype.impl.SubTypeValidator", "com.fasterxml.jackson.databind.introspect.AnnotatedFieldCollector", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodCollector", "com.fasterxml.jackson.databind.introspect.MemberKey", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$OneCollector", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodCollector$MethodBuilder", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodMap", "com.fasterxml.jackson.databind.util.BeanUtil", "com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition", "com.fasterxml.jackson.databind.AnnotationIntrospector$ReferenceProperty", "com.fasterxml.jackson.databind.AnnotationIntrospector$ReferenceProperty$Type", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder", "com.fasterxml.jackson.core.util.InternCache", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$Linked", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$9", "com.fasterxml.jackson.annotation.JsonProperty$Access", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$10", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$4", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$5", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$6", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$7", "com.fasterxml.jackson.databind.PropertyMetadata", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$2", "com.fasterxml.jackson.databind.ser.BeanSerializerBuilder", "com.fasterxml.jackson.databind.Module", "com.fasterxml.jackson.databind.module.SimpleModule", "com.fasterxml.jackson.core.Version", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$ShortDeserializer", "com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector$1", "com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector", "com.fasterxml.jackson.databind.node.IntNode", "com.fasterxml.jackson.databind.ser.BeanSerializerModifier", "com.fasterxml.jackson.databind.introspect.VirtualAnnotatedMember", "com.fasterxml.jackson.databind.BeanProperty$Std", "com.fasterxml.jackson.annotation.ObjectIdGenerator", "com.fasterxml.jackson.annotation.ObjectIdGenerators$Base", "com.fasterxml.jackson.annotation.ObjectIdGenerators$IntSequenceGenerator", "com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase", "com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver", "com.fasterxml.jackson.databind.jsontype.TypeDeserializer", "com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase", "com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeDeserializer", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$TwoAnnotations", "com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase", "com.fasterxml.jackson.databind.deser.impl.FailingDeserializer", "com.fasterxml.jackson.databind.deser.SettableBeanProperty", "com.fasterxml.jackson.databind.deser.CreatorProperty", "com.fasterxml.jackson.databind.ObjectMapper$1", "com.fasterxml.jackson.databind.node.ShortNode", "com.fasterxml.jackson.databind.AbstractTypeResolver", "com.fasterxml.jackson.databind.module.SimpleAbstractTypeResolver", "com.fasterxml.jackson.databind.ser.Serializers$Base", "com.fasterxml.jackson.databind.module.SimpleSerializers", "com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper", "com.fasterxml.jackson.core.base.ParserBase", "com.fasterxml.jackson.core.json.UTF8StreamJsonParser", "com.fasterxml.jackson.core.json.JsonReadContext", "com.fasterxml.jackson.core.json.ReaderBasedJsonParser", "com.fasterxml.jackson.core.exc.StreamReadException", "com.fasterxml.jackson.core.JsonParseException", "com.fasterxml.jackson.core.JsonLocation", "com.fasterxml.jackson.databind.jsontype.NamedType", "com.fasterxml.jackson.databind.JsonMappingException$Reference", "com.fasterxml.jackson.databind.node.ArrayNode", "com.fasterxml.jackson.databind.node.NodeCursor$ArrayCursor", "com.fasterxml.jackson.databind.introspect.AnnotatedField", "com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair", "com.fasterxml.jackson.databind.type.TypeParser$MyTokenizer", "com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer", "com.fasterxml.jackson.core.util.JsonParserSequence", "com.fasterxml.jackson.databind.introspect.AnnotatedFieldCollector$FieldBuilder", "com.fasterxml.jackson.databind.ser.std.BeanSerializerBase", "com.fasterxml.jackson.databind.ser.BeanSerializer", "com.fasterxml.jackson.databind.deser.BeanDeserializerModifier", "com.fasterxml.jackson.databind.jsontype.TypeSerializer", "com.fasterxml.jackson.databind.jsontype.impl.TypeSerializerBase", "com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeSerializer", "com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeSerializer", "com.fasterxml.jackson.databind.ser.PropertyWriter", "com.fasterxml.jackson.databind.ser.BeanPropertyWriter", "com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter", "com.fasterxml.jackson.core.json.async.NonBlockingJsonParserBase", "com.fasterxml.jackson.core.json.async.NonBlockingJsonParser", "com.fasterxml.jackson.databind.BeanProperty", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BigDecimalDeserializer", "com.fasterxml.jackson.databind.node.DecimalNode", "com.fasterxml.jackson.databind.util.NameTransformer$3", "com.fasterxml.jackson.databind.deser.ValueInstantiators$Base", "com.fasterxml.jackson.databind.module.SimpleValueInstantiators", "com.fasterxml.jackson.databind.node.DoubleNode", "com.fasterxml.jackson.databind.node.NodeCursor$ObjectCursor", "com.fasterxml.jackson.databind.node.BigIntegerNode", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$1", "com.fasterxml.jackson.databind.PropertyMetadata$MergeInfo", "com.fasterxml.jackson.databind.ser.PropertyBuilder", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$3", "com.fasterxml.jackson.databind.ser.PropertyBuilder$1", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$1", "com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap", "com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap$Empty", "com.fasterxml.jackson.databind.ser.std.ClassSerializer", "com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap$SerializerAndMapResult", "com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap$Single", "com.fasterxml.jackson.databind.util.EnumResolver", "com.fasterxml.jackson.databind.util.NameTransformer$2", "com.fasterxml.jackson.core.format.InputAccessor$Std", "com.fasterxml.jackson.annotation.ObjectIdGenerator$IdKey", "com.fasterxml.jackson.databind.KeyDeserializer", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$LongDeserializer", "com.fasterxml.jackson.databind.ser.ContainerSerializer", "com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase", "com.fasterxml.jackson.databind.ser.std.EnumSetSerializer", "com.fasterxml.jackson.databind.deser.impl.MethodProperty", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$8", "com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer", "com.fasterxml.jackson.databind.deser.std.DateDeserializers", "com.fasterxml.jackson.databind.deser.std.FromStringDeserializer$Std", "com.fasterxml.jackson.databind.util.TokenBuffer", "com.fasterxml.jackson.databind.util.TokenBuffer$Segment", "com.fasterxml.jackson.databind.util.TokenBuffer$Parser", "com.fasterxml.jackson.databind.util.TokenBufferReadContext", "com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$OneAnnotation", "com.fasterxml.jackson.databind.introspect.ObjectIdInfo", "com.fasterxml.jackson.databind.deser.std.EnumDeserializer", "com.fasterxml.jackson.databind.util.CompactStringObjectMap", "com.fasterxml.jackson.core.type.WritableTypeId", "com.fasterxml.jackson.databind.jsontype.TypeSerializer$1", "com.fasterxml.jackson.core.type.WritableTypeId$Inclusion", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$FloatDeserializer", "com.fasterxml.jackson.annotation.SimpleObjectIdResolver", "com.fasterxml.jackson.databind.ObjectMapper$3", "com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder$1", "com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer", "com.fasterxml.jackson.annotation.ObjectIdGenerators$StringIdGenerator", "com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer", "com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer", "com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BigIntegerDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$DoubleDeserializer", "com.fasterxml.jackson.databind.ser.std.EnumSerializer", "com.fasterxml.jackson.databind.util.EnumValues", "com.fasterxml.jackson.databind.deser.impl.SetterlessProperty", "com.fasterxml.jackson.databind.jsontype.impl.AsExistingPropertyTypeSerializer", "com.fasterxml.jackson.core.JsonGenerator$1", "com.fasterxml.jackson.databind.deser.impl.ObjectIdReader", "com.fasterxml.jackson.core.util.VersionUtil", "com.fasterxml.jackson.core.json.PackageVersion", "com.fasterxml.jackson.databind.jsontype.impl.AsExternalTypeDeserializer", "com.fasterxml.jackson.databind.node.MissingNode", "com.fasterxml.jackson.databind.jsontype.impl.AsExternalTypeSerializer", "com.fasterxml.jackson.databind.ser.impl.UnwrappingBeanSerializer", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$StringKD", "com.fasterxml.jackson.databind.cfg.MutableConfigOverride", "com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeSerializer", "com.fasterxml.jackson.databind.deser.BeanDeserializer$1", "com.fasterxml.jackson.databind.node.BinaryNode", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor$Base", "com.fasterxml.jackson.databind.deser.impl.FieldProperty", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BooleanDeserializer", "com.fasterxml.jackson.databind.MappingIterator", "com.fasterxml.jackson.databind.node.POJONode", "com.fasterxml.jackson.annotation.OptBoolean", "com.fasterxml.jackson.databind.util.ObjectBuffer", "com.fasterxml.jackson.databind.cfg.PackageVersion", "com.fasterxml.jackson.core.io.UTF32Reader", "com.fasterxml.jackson.core.json.UTF8DataInputJsonParser", "com.fasterxml.jackson.core.io.MergedStream", "com.fasterxml.jackson.databind.deser.impl.JavaUtilCollectionsDeserializers", "com.fasterxml.jackson.databind.JsonNode$1", "com.fasterxml.jackson.databind.ser.std.MapSerializer", "com.fasterxml.jackson.databind.ser.std.StdKeySerializer", "com.fasterxml.jackson.databind.ser.std.StdKeySerializers$StringKeySerializer", "com.fasterxml.jackson.databind.ser.std.StdKeySerializers", "com.fasterxml.jackson.databind.ser.std.StdKeySerializers$Dynamic", "com.fasterxml.jackson.databind.ser.std.ArraySerializerBase", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$BooleanArraySerializer", "com.fasterxml.jackson.databind.ser.std.ByteArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$CharArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$TypedPrimitiveArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$ShortArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$IntArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$LongArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$FloatArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$DoubleArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers", "com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer", "com.fasterxml.jackson.core.io.NumberInput", "com.fasterxml.jackson.databind.util.TokenBuffer$1", "com.fasterxml.jackson.databind.ser.std.CollectionSerializer", "com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer$ObjectDeserializer", "com.fasterxml.jackson.databind.deser.impl.ReadableObjectId", "com.fasterxml.jackson.databind.exc.PropertyBindingException", "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException", "com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer", "com.fasterxml.jackson.databind.ser.impl.TypeWrappedSerializer", "com.fasterxml.jackson.core.JsonParser$Feature", "com.fasterxml.jackson.core.JsonGenerator$Feature", "com.fasterxml.jackson.annotation.JsonAutoDetect$Visibility", "com.fasterxml.jackson.databind.SerializationFeature", "com.fasterxml.jackson.databind.DeserializationFeature", "com.fasterxml.jackson.annotation.PropertyAccessor" ); } }
a136c82dd3fa95ab9482066ba5af65e8c7b2ebcf
73f27de5ceee2a6d08d5090cc0078d46d3e7ffae
/2ºAno/P3/src/aula6/Ex2/Pessoa.java
a340a4c4014fc639c193c1ffea55f0194d5904e4
[]
no_license
JPCGameiro/UA-ECT
5808aade4ebf41ca689b63854772cc2004c26461
7fdae2b6e9e8c81e1f1303b32d21e28bd555a56d
refs/heads/master
2023-01-29T21:51:32.583147
2023-01-17T21:10:35
2023-01-17T21:10:35
181,866,524
18
15
null
null
null
null
UTF-8
Java
false
false
625
java
//João Gameiro Nº93097 //classe Pessoa package aula6.Ex2; public class Pessoa { private String nome; private int cc; private Data dataNasc; //Construtor public Pessoa(String nome, int cc, Data dataNasc) { this.nome = nome; this.cc = cc; this.dataNasc = dataNasc; } public String nome() { return nome; } public int cc() { return cc; } public Data dataNasc() { return dataNasc; } //Função para devolver uma String com os dados de uma pessoa @Override public String toString() { return "Nome: " + nome + " | Cartão de Cidadão: " + cc + " | Data de Nascimento: " + dataNasc.toString(); } }
8adfd57f48dfead337a08cdeff9b1dcda45a17af
470f1e764e48d281e3bacb40f29578506337d8f8
/src/main/java/de/codecentric/burger/command/BurgerNeuIntent.java
60e3362eb439de97a4459d5ddeea6c542bca91e1
[]
no_license
rejwan052/thymeleafKnockout
d352ebd40c736fb911d526f1f47a67393e4b9b45
4ec7c11e8917ac775aaa6449a146c3271da06cbb
refs/heads/master
2021-01-20T00:04:21.315933
2016-02-23T19:04:20
2016-02-23T19:04:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
303
java
package de.codecentric.burger.command; /** * @author Holger Grosse-Plankermann (xd98714) */ public class BurgerNeuIntent { String burgerId; public String getBurgerId() { return burgerId; } public void setBurgerId(String burgerId) { this.burgerId = burgerId; } }
9e794fa76656fc9ec37662b293c894393556156f
8fb55cfa15cea88d0d4c8e5138bc6a9186173aa1
/currency-exchange-service/src/test/java/com/rafaelfelix/microservices/currency/exchange/CurrencyExchangeServiceApplicationTests.java
b6c46e5366fbe8ff39f63e20d072363cfe4a2f6a
[]
no_license
rafaelfelixmoraes/spring-microservices
853d244348d17f5998caaa02694422b2fc627514
51eb673bdd4bb539df50d37006ba7c4c8924e935
refs/heads/master
2020-06-19T21:30:29.545223
2020-05-21T22:04:49
2020-05-21T22:04:49
196,880,579
1
0
null
null
null
null
UTF-8
Java
false
false
256
java
package com.rafaelfelix.microservices.currency.exchange; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class CurrencyExchangeServiceApplicationTests { @Test void contextLoads() { } }
d9afc61989af0cb8700b6d7d7de3e82d7a03bb35
d8cb3a4ed615dd5a6c856b472d284e3a6f6b37c4
/msa-weather-collection-weather/src/main/java/com/gwf/weather/vo/CityList.java
7812292047c7d54270249c1dd17f9e1082731a43
[]
no_license
sultan224/weather
477b4f767d559035e8f81ec241a48808fb34529c
72a0f74c31a9ad6aa744076c77348d95186eba10
refs/heads/master
2020-04-11T08:02:14.495887
2018-12-13T11:54:48
2018-12-13T11:56:48
161,630,061
0
0
null
null
null
null
UTF-8
Java
false
false
442
java
package com.gwf.weather.vo; import lombok.Data; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import java.util.List; /** * @author zhanshixia * @package com.gwf.weather.vo * @describe 城市列表结合 * @date 2018/12 */ @Data public class CityList { private List<City> cityList; }
5a784d38da2b00f3d297eba7f8390a45ecdc2813
a13d80f5dd49a907dabe3386518c057d800309d8
/src/main/java/com/techsophy/securitydemo/config/KeycloakSecurityConfig.java
5133751dc14a066f8be3d88a8e29f33f9ccf7885
[]
no_license
Rammy42/KeyCloakDemo
56106f20dd3e8e7e7e9fd59b8fa611cf6ef1520a
77b11e7a250ec1fda12f60506f338b38b21b7a44
refs/heads/master
2022-11-30T09:01:59.106085
2020-08-14T02:38:49
2020-08-14T02:38:49
287,423,513
0
0
null
null
null
null
UTF-8
Java
false
false
2,785
java
package com.techsophy.securitydemo.config; import org.keycloak.adapters.KeycloakConfigResolver; import org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver; import org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationProvider; import org.keycloak.adapters.springsecurity.config.KeycloakWebSecurityConfigurerAdapter; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.core.authority.mapping.SimpleAuthorityMapper; import org.springframework.security.core.session.SessionRegistryImpl; import org.springframework.security.web.authentication.session.RegisterSessionAuthenticationStrategy; import org.springframework.security.web.authentication.session.SessionAuthenticationStrategy; @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(jsr250Enabled = true) public class KeycloakSecurityConfig extends KeycloakWebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { super.configure(http); http.authorizeRequests() .antMatchers("/test/anonymous").permitAll() .antMatchers("/create-user").permitAll() .antMatchers("/test/user/**").hasAnyRole("user") .antMatchers("/test/admin").hasAnyRole("admin") .antMatchers("/test/all-user").hasAnyRole("user","admin") .anyRequest() .permitAll(); http.csrf().disable(); } @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { KeycloakAuthenticationProvider keycloakAuthenticationProvider = keycloakAuthenticationProvider(); keycloakAuthenticationProvider.setGrantedAuthoritiesMapper(new SimpleAuthorityMapper()); auth.authenticationProvider(keycloakAuthenticationProvider); } @Bean @Override protected SessionAuthenticationStrategy sessionAuthenticationStrategy() { return new RegisterSessionAuthenticationStrategy(new SessionRegistryImpl()); } @Bean public KeycloakConfigResolver KeycloakConfigResolver() { return new KeycloakSpringBootConfigResolver(); } }
ac13f63be03b83c49f09b92023ca3823a34ea882
7aa39790758e85e3998b712a220ef326eb1c079d
/src/main/java/springframework/yemektarifleri/yemek_tariflerid_eneme/exceptions/NotFoundException.java
de0d7404eac1b7092057a86652b5c32757cbbc21
[]
no_license
cryptolog-mathematician/spring-yemekTarifleri-deneme
794cd2b2497511c6fee66e951d628220f03cd37e
4697d60dbede5663ea676ebc34fa00a792cf37e1
refs/heads/master
2020-06-16T17:18:25.690463
2019-08-17T12:29:26
2019-08-17T12:29:26
195,648,422
0
0
null
null
null
null
UTF-8
Java
false
false
518
java
package springframework.yemektarifleri.yemek_tariflerid_eneme.exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.NOT_FOUND) public class NotFoundException extends RuntimeException { public NotFoundException() { super(); } public NotFoundException(String message) { super(message); } public NotFoundException(String message, Throwable cause) { super(message, cause); } }
8bd8541390a0ca7e7d1525792881444acadcd8fc
0add10030e434769cc0063b93e41491e5624f833
/fluentlenium-core/src/main/java/org/fluentlenium/core/filter/matcher/ContainsWordMatcher.java
65f10763d55554d2afb504f691021bb81a72ce97
[ "Apache-2.0" ]
permissive
aureatesting/FluentLenium
810ffe5815e29eda47ad3cbb30cee21324fe246a
0c227fcc9e2bb44f082716e4ce6488adf3f37129
refs/heads/master
2020-05-30T07:12:51.184216
2016-09-21T21:10:28
2016-09-21T21:10:28
68,886,886
0
5
null
2016-09-22T05:12:39
2016-09-22T05:12:39
null
UTF-8
Java
false
false
421
java
package org.fluentlenium.core.filter.matcher; public class ContainsWordMatcher extends Matcher { public ContainsWordMatcher(String value) { super(value); } @Override public MatcherType getMatcherType() { return MatcherType.CONTAINS_WORD; } @Override public boolean isSatisfiedBy(String o) { return CalculateService.contains(getPattern(), getValue(), o); } }
4373a4ce7e1fe6e7019e43006b222189a821a937
c6ceb4c8518005b8bf0d7cfea82fe26d8166874e
/android/BottosApp/app/src/main/java/com/hackathon/bottosapp/ui/SplashActivity.java
d805c70eea4d5617a28c2f6394b70119dfc97276
[]
no_license
guangxingmao/BIT
702dbd6a99da1ddcc1d858cd3157cc3cd50044ca
79dfe11bcc9e44b94ada5b282fee999ba3547d4a
refs/heads/master
2022-01-25T05:06:36.031205
2018-11-25T10:55:01
2018-11-25T10:55:01
159,004,243
1
1
null
null
null
null
UTF-8
Java
false
false
1,821
java
package com.hackathon.bottosapp.ui; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ObjectAnimator; import android.content.Intent; import android.support.v7.widget.AppCompatImageView; import android.text.TextUtils; import com.hackathon.bottosapp.MainActivity; import com.hackathon.bottosapp.R; import com.hackathon.bottosapp.base.BaseActivity; import com.hackathon.bottosapp.ui.wallet.WalletActivity; import com.hackathon.bottosapp.utils.SharedPreferencesUtils; import static com.hackathon.bottosapp.utils.SharedPreferencesUtils.BOTTOS_ACCOUNT_INFO; public class SplashActivity extends BaseActivity { @Override public int initLayout() { return R.layout.activity_splash; } @Override public void initView() { AppCompatImageView splashLogoIv = findViewById(R.id.splash_logo_iv); //1s的渐显动画 ObjectAnimator objectAnimator = ObjectAnimator.ofFloat(splashLogoIv, "alpha", 0f, 1f); objectAnimator.setDuration(1000); objectAnimator.start(); objectAnimator.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { super.onAnimationEnd(animation); //TODO 简单查询本地是否有账号,没有则创建或导入 String accountInfo = (String) SharedPreferencesUtils.getParam(SplashActivity.this, BOTTOS_ACCOUNT_INFO, ""); if (TextUtils.isEmpty(accountInfo)) { startActivity(new Intent(SplashActivity.this, WalletActivity.class)); } else { startActivity(new Intent(SplashActivity.this, MainActivity.class)); } finish(); } }); } }
223561f38c1ae8233962c9d6a5bde3f466b561e3
746ec44de1ef14668efcdf8d7f39713850990b3b
/cetus-vortal-war/src/co/com/cetus/portal/ejb/convert/MenuConverter.java
6254940654474b1aff4319e19e718bd1a91ac082
[]
no_license
CetusTech/cetus_vortal
05d2b28d1580d9a49f8c67b4c20c23c2c91fe46e
73486169f9211207f3006d153086d3c2ebadc1b2
refs/heads/master
2020-04-16T10:57:12.487345
2016-09-09T18:31:55
2016-09-09T18:31:55
46,017,758
0
0
null
null
null
null
UTF-8
Java
false
false
2,191
java
package co.com.cetus.portal.ejb.convert; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.convert.FacesConverter; import co.com.cetus.portal.web.bean.GeneralManagedBean; import co.com.cetus.vortal.business.dto.MenuDTO; import co.com.cetus.vortal.jpa.entity.Menu; import co.com.cetus.common.exception.ServiceException; @FacesConverter ( forClass = MenuDTO.class, value = "menuPickListConverter" ) public class MenuConverter extends GeneralManagedBean implements Converter { protected co.com.cetus.common.util.Converter converter = null; /** * */ private static final long serialVersionUID = -8570888805597056868L; /* * (non-Javadoc) * * @see * javax.faces.convert.Converter#getAsObject(javax.faces.context.FacesContext * , javax.faces.component.UIComponent, java.lang.String) */ @Override public Object getAsObject ( FacesContext arg0, UIComponent arg1, String value ) { MenuDTO dto = new MenuDTO(); dto.setId( Integer.parseInt( value ) ); try { converter = new co.com.cetus.common.util.Converter( "co.com.cetus.vortal.business.dto.", "co.com.cetus.vortal.jpa.entity." ); converter.convertEntityToDto( this.delegate.find( Menu.class, dto.getId() ), dto, false ); } catch ( ServiceException e ) { e.printStackTrace(); } catch ( Exception e ) { e.printStackTrace(); } return dto; } /* * (non-Javadoc) * * @see * javax.faces.convert.Converter#getAsString(javax.faces.context.FacesContext * , javax.faces.component.UIComponent, java.lang.Object) */ @Override public String getAsString ( FacesContext arg0, UIComponent arg1, Object value ) { return String.valueOf( ( ( MenuDTO ) value ).getId() ); } @Override public void initElement () { } @Override public String delete () { return null; } @Override public String update () { return null; } @Override public String add () { return null; } }
468bf40afe83fbc68e70eda3a908af920c4dc597
bdb9ba10d24d470ea8d84cbf12a0a3864d6fe018
/Pattern Prgm/Pattern14.java
0b5c9ecfd5a416eec401307f8824b8d37daa5577
[]
no_license
yogisapkal98/Java-Geek
a524b8055b0c7660c3b428082ff402716221fa67
f24ab56362970cb2ee9ee6dbe9d87d0a5e8fb867
refs/heads/main
2023-08-16T15:38:24.275845
2021-09-22T12:39:52
2021-09-22T12:39:52
409,193,081
1
0
null
null
null
null
UTF-8
Java
false
false
300
java
package basic.program; public class Pattern14 { public static void main(String[] args) { // TODO Auto-generated method stub for(int i=1;i<=5;i++) { for(int j=1;j<=5;j++) { if(j<=i) { System.out.print("@"); } } System.out.println(); } } }
35bf3745ef6e238b7ca45f0bcf0c3d1fd34c51a6
fb1d0957b5a83e9a704d387fc72e796fd769e47f
/src/main/java/com/example/demo/pojo/TbGoods.java
381ec029773dac2d26002e0aa3058c032b68ed7a
[]
no_license
ITmayun/demo
760b5caeebe9a2fbca700f83727eafd676a6d6b6
4680dd2de3b36957c1f4b03de2eb5b3cca2cd4f9
refs/heads/master
2023-02-15T16:38:04.003472
2021-01-09T11:26:55
2021-01-09T11:26:55
328,139,455
0
0
null
null
null
null
UTF-8
Java
false
false
324
java
package com.example.demo.pojo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; import java.io.Serializable; @ToString @AllArgsConstructor @NoArgsConstructor @Data public class TbGoods implements Serializable { private Long id; private String name; }
e63879c3622cef5dc76b787b0c2c1e5900205e7d
9e4a4a3f25c15153049b4f07dbb61ebf4833dbd1
/src/com/example/tictactoe/MainActivity.java
f1741bfe35f0fdba2d2da22c89db5c79db523bcc
[]
no_license
baunilha/Tic-Tac-Toe
89be81e0d9d36c07f0db6f301bc107c825721e2b
5bdb0f92a5dcf111ed3716fbaa0ec960eb023cec
refs/heads/master
2021-01-16T21:21:14.558960
2013-03-11T00:10:25
2013-03-11T00:10:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,202
java
package com.example.tictactoe; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; import android.app.Activity; import android.content.Intent; public class MainActivity extends Activity implements OnClickListener { // Declare references Button startButton; TextView titleView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // getWindow().setBackgroundDrawableResource(R.drawable.bg_front); setContentView(R.layout.activity_main); // Point the reference to its id startButton = (Button) this.findViewById(R.id.start_button); titleView = (TextView) this.findViewById(R.id.title_view); // Set a OnClickListener event startButton.setOnClickListener(this); } @Override public void onClick(View clickedView) { // View in the LogCat if the button was clicked Log.v("MainActivity", "button was clicked!"); // Create an Intent to go to the next page (activity) when the button is clicked Intent i = new Intent(this, OtherActivity.class); startActivity(i); } }
0cfb1991427bf3693275fa43c584f45e93d0a4b1
1374237fa0c18f6896c81fb331bcc96a558c37f4
/java/com/winnertel/ems/epon/iad/bbs4000/gui/r400/SniBroadcastStormSuppressionTablePanel.java
355b746960a7eae82a178871082b67adbbcb38bd
[]
no_license
fangniude/lct
0ae5bc550820676f05d03f19f7570dc2f442313e
adb490fb8d0c379a8b991c1a22684e910b950796
refs/heads/master
2020-12-02T16:37:32.690589
2017-12-25T01:56:32
2017-12-25T01:56:32
96,560,039
0
0
null
null
null
null
UTF-8
Java
false
false
10,770
java
package com.winnertel.ems.epon.iad.bbs4000.gui.r400; import com.winnertel.ems.epon.iad.bbs4000.mib.r400.SniBroadcastStormSuppressionTable; import com.winnertel.em.framework.IApplication; import com.winnertel.em.framework.gui.swing.UPanel; import com.winnertel.em.standard.util.gui.input.IntegerTextField; import com.winnertel.em.standard.util.gui.layout.HSpacer; import com.winnertel.em.standard.util.gui.layout.NTLayout; import com.winnertel.em.standard.util.gui.layout.VSpacer; import javax.swing.*; import java.awt.*; /** * The SniBroadcastStormSuppressionTablePanel class. * Created by DVM Creator */ public class SniBroadcastStormSuppressionTablePanel extends UPanel { private JLabel tfSniBroadcastStormSuppressionDeviceIndex = new JLabel(); private JLabel tfSniBroadcastStormSuppressionCardIndex = new JLabel(); private JLabel tfSniBroadcastStormSuppressionPortIndex = new JLabel(); private int[] sniUnicastStormEnableVList =new int[]{ 1,2,}; private String[] sniUnicastStormEnableTList =new String[]{ fStringMap.getString("true"), fStringMap.getString("false"), }; private JComboBox tfSniUnicastStormEnable = new JComboBox( sniUnicastStormEnableTList); private IntegerTextField tfSniUnicastStormInPacketRate = new IntegerTextField(); private IntegerTextField tfSniUnicastStormOutPacketRate = new IntegerTextField(); private int[] sniMulticastStormEnableVList =new int[]{ 1,2,}; private String[] sniMulticastStormEnableTList =new String[]{ fStringMap.getString("true"), fStringMap.getString("false"), }; private JComboBox tfSniMulticastStormEnable = new JComboBox( sniMulticastStormEnableTList); private IntegerTextField tfSniMulticastStormInPacketRate = new IntegerTextField(); private IntegerTextField tfSniMulticastStormOutPacketRate = new IntegerTextField(); private int[] sniBroadcastStormEnableVList =new int[]{ 1,2,}; private String[] sniBroadcastStormEnableTList =new String[]{ fStringMap.getString("true"), fStringMap.getString("false"), }; private JComboBox tfSniBroadcastStormEnable = new JComboBox( sniBroadcastStormEnableTList); private IntegerTextField tfSniBroadcastStormInPacketRate = new IntegerTextField(); private IntegerTextField tfSniBroadcastStormOutPacketRate = new IntegerTextField(); private final String sniBroadcastStormSuppressionDeviceIndex = fStringMap.getString("sniBroadcastStormSuppressionDeviceIndex")+" : "; private final String sniBroadcastStormSuppressionCardIndex = fStringMap.getString("sniBroadcastStormSuppressionCardIndex")+" : "; private final String sniBroadcastStormSuppressionPortIndex = fStringMap.getString("sniBroadcastStormSuppressionPortIndex")+" : "; private final String sniUnicastStormEnable = fStringMap.getString("sniUnicastStormEnable")+" : "; private final String sniUnicastStormInPacketRate = fStringMap.getString("sniUnicastStormInPacketRate")+" : "; private final String sniUnicastStormOutPacketRate = fStringMap.getString("sniUnicastStormOutPacketRate")+" : "; private final String sniMulticastStormEnable = fStringMap.getString("sniMulticastStormEnable")+" : "; private final String sniMulticastStormInPacketRate = fStringMap.getString("sniMulticastStormInPacketRate")+" : "; private final String sniMulticastStormOutPacketRate = fStringMap.getString("sniMulticastStormOutPacketRate")+" : "; private final String sniBroadcastStormEnable = fStringMap.getString("sniBroadcastStormEnable")+" : "; private final String sniBroadcastStormInPacketRate = fStringMap.getString("sniBroadcastStormInPacketRate")+" : "; private final String sniBroadcastStormOutPacketRate = fStringMap.getString("sniBroadcastStormOutPacketRate")+" : "; public SniBroadcastStormSuppressionTablePanel(IApplication app) { super(app); init(); } public void initGui() { JPanel baseInfoPanel = new JPanel(); NTLayout layout = new NTLayout(12, 3, NTLayout.FILL, NTLayout.CENTER, 5, 5); layout.setMargins(6, 10, 6, 10); baseInfoPanel.setLayout(layout); baseInfoPanel.setBorder(BorderFactory.createEtchedBorder()); baseInfoPanel.add( new JLabel(sniBroadcastStormSuppressionDeviceIndex)); baseInfoPanel.add( tfSniBroadcastStormSuppressionDeviceIndex) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniBroadcastStormSuppressionCardIndex)); baseInfoPanel.add( tfSniBroadcastStormSuppressionCardIndex) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniBroadcastStormSuppressionPortIndex)); baseInfoPanel.add( tfSniBroadcastStormSuppressionPortIndex) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniUnicastStormEnable)); tfSniUnicastStormEnable.setName(fStringMap.getString("sniUnicastStormEnable")) ; baseInfoPanel.add( tfSniUnicastStormEnable) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniUnicastStormInPacketRate)); tfSniUnicastStormInPacketRate.setName(fStringMap.getString("sniUnicastStormInPacketRate")) ; baseInfoPanel.add( tfSniUnicastStormInPacketRate) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniUnicastStormOutPacketRate)); tfSniUnicastStormOutPacketRate.setName(fStringMap.getString("sniUnicastStormOutPacketRate")) ; baseInfoPanel.add( tfSniUnicastStormOutPacketRate) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniMulticastStormEnable)); tfSniMulticastStormEnable.setName(fStringMap.getString("sniMulticastStormEnable")) ; baseInfoPanel.add( tfSniMulticastStormEnable) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniMulticastStormInPacketRate)); tfSniMulticastStormInPacketRate.setName(fStringMap.getString("sniMulticastStormInPacketRate")) ; baseInfoPanel.add( tfSniMulticastStormInPacketRate) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniMulticastStormOutPacketRate)); tfSniMulticastStormOutPacketRate.setName(fStringMap.getString("sniMulticastStormOutPacketRate")) ; baseInfoPanel.add( tfSniMulticastStormOutPacketRate) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniBroadcastStormEnable)); tfSniBroadcastStormEnable.setName(fStringMap.getString("sniBroadcastStormEnable")) ; baseInfoPanel.add( tfSniBroadcastStormEnable) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniBroadcastStormInPacketRate)); tfSniBroadcastStormInPacketRate.setName(fStringMap.getString("sniBroadcastStormInPacketRate")) ; baseInfoPanel.add( tfSniBroadcastStormInPacketRate) ; baseInfoPanel.add(new HSpacer()); baseInfoPanel.add( new JLabel(sniBroadcastStormOutPacketRate)); tfSniBroadcastStormOutPacketRate.setName(fStringMap.getString("sniBroadcastStormOutPacketRate")) ; baseInfoPanel.add( tfSniBroadcastStormOutPacketRate) ; baseInfoPanel.add(new HSpacer()); JPanel allPanel = new JPanel(); layout = new NTLayout(2, 1, NTLayout.FILL, NTLayout.FILL, 5, 3); layout.setMargins(6, 10, 6, 10); allPanel.setLayout(layout); allPanel.add(baseInfoPanel); allPanel.add(new VSpacer()); setLayout(new BorderLayout()); add(allPanel, BorderLayout.CENTER); } protected void initForm() { } public void refresh() { SniBroadcastStormSuppressionTable mbean = (SniBroadcastStormSuppressionTable) getModel(); tfSniBroadcastStormSuppressionDeviceIndex.setText(mbean.getSniBroadcastStormSuppressionDeviceIndex().toString()); tfSniBroadcastStormSuppressionCardIndex.setText(mbean.getSniBroadcastStormSuppressionCardIndex().toString()); tfSniBroadcastStormSuppressionPortIndex.setText(mbean.getSniBroadcastStormSuppressionPortIndex().toString()); tfSniUnicastStormEnable.setSelectedIndex(getIndexFromValue(sniUnicastStormEnableVList,mbean.getSniUnicastStormEnable().intValue())); tfSniUnicastStormInPacketRate.setValue(mbean.getSniUnicastStormInPacketRate().intValue()); tfSniUnicastStormOutPacketRate.setValue(mbean.getSniUnicastStormOutPacketRate().intValue()); tfSniMulticastStormEnable.setSelectedIndex(getIndexFromValue(sniMulticastStormEnableVList,mbean.getSniMulticastStormEnable().intValue())); tfSniMulticastStormInPacketRate.setValue(mbean.getSniMulticastStormInPacketRate().intValue()); tfSniMulticastStormOutPacketRate.setValue(mbean.getSniMulticastStormOutPacketRate().intValue()); tfSniBroadcastStormEnable.setSelectedIndex(getIndexFromValue(sniBroadcastStormEnableVList,mbean.getSniBroadcastStormEnable().intValue())); tfSniBroadcastStormInPacketRate.setValue(mbean.getSniBroadcastStormInPacketRate().intValue()); tfSniBroadcastStormOutPacketRate.setValue(mbean.getSniBroadcastStormOutPacketRate().intValue()); } public void updateModel() { SniBroadcastStormSuppressionTable mbean = (SniBroadcastStormSuppressionTable) getModel(); mbean.setSniUnicastStormEnable(new Integer(sniUnicastStormEnableVList[tfSniUnicastStormEnable.getSelectedIndex()])); mbean.setSniUnicastStormInPacketRate( new Integer(tfSniUnicastStormInPacketRate.getValue())); mbean.setSniUnicastStormOutPacketRate( new Integer(tfSniUnicastStormOutPacketRate.getValue())); mbean.setSniMulticastStormEnable(new Integer(sniMulticastStormEnableVList[tfSniMulticastStormEnable.getSelectedIndex()])); mbean.setSniMulticastStormInPacketRate( new Integer(tfSniMulticastStormInPacketRate.getValue())); mbean.setSniMulticastStormOutPacketRate( new Integer(tfSniMulticastStormOutPacketRate.getValue())); mbean.setSniBroadcastStormEnable(new Integer(sniBroadcastStormEnableVList[tfSniBroadcastStormEnable.getSelectedIndex()])); mbean.setSniBroadcastStormInPacketRate( new Integer(tfSniBroadcastStormInPacketRate.getValue())); mbean.setSniBroadcastStormOutPacketRate( new Integer(tfSniBroadcastStormOutPacketRate.getValue())); } public int getIndexFromValue(int[] list,int v){ for (int i = 0 ; i!=list.length; i++) { if ( list[i] == v ) return i; } return 0; } }
df8fcd67182e7f608de1dd824257966f9a58a797
bde78bb7454ebfb132dde68607fef27a20516cdf
/Java Learning/src/pack1/innerclasses/ex6/subp3/Subp3.java
4fb0e0d498b3e36843aa91b33daeab18cdd84388
[]
no_license
RPCSS/Java-Learning
fe716062a5383a7d6eba5f52ca24930afaa54e89
26bdca35b52ed6545a7c0a69fdc8c703a2bd2ed4
refs/heads/master
2020-04-08T04:18:10.091022
2018-11-25T08:13:47
2018-11-25T08:13:47
159,011,431
0
0
null
null
null
null
UTF-8
Java
false
false
1,401
java
//p.195第10章练习6,包3 package pack1.innerclasses.ex6.subp3; import pack1.innerclasses.ex6.subp1.*; import pack1.innerclasses.ex6.subp2.*; public class Subp3 extends Subp2 { static Subp1 sclret() { //向上转型 Subp2 scltmp = new Subp2(); Intreal it = scltmp.new Intreal(); //继承的可以直接创建父类的内部类,但在static方法里面,由于static不用创建类即可访问,因此在static方法里必须由内到外创建这些类(即使是继承) //it.k //报错:不可见。内部类创建的外部类所继承父类中的内部类 return it; //如果Intreal类的构造器为默认的或者不是public的这里就会提示无法访问。因为Intreal与Subp3不是继承关系,非public权限不能访问,protected也不行 //问题:Subp3继承了Subp2,而外部类可以访问其内部类的对象,为什么Subp3不能访问非public的构造器。 } class Int233 extends Intreal { void cg() { k = 0; //继承那个类,可以访问protected对象 } } public static void main(String[] args) { // TODO Auto-generated method stub //Subp2 scltmp = new Subp2(); //Subp2.Intreal ss = scltmp.new Intreal(); //ss.k = 0; /*Subp3 is = new Subp3(); Int233 ii = is.new Int233(); ii.k = 0; */ } } //class Int233 extends Subp2.Intreal { //Subp2.Intreal不可见:protected
3c7f79e559caa37a60973fcb4063be0d670caf69
d480e5166158df4c9e92152656fe0cf5359de21f
/app/src/main/java/com/example/android/worldcupguide/MoscowFragment.java
c1dbc2414d29c47e45c078df9d5d80d53d2439e9
[]
no_license
seni1/WorldCupGuide
1393f7849338aa8d8cf3b9ee6769e9008b0d1b24
621255b0ec00682fa5ac7d69e3f334b67e236be0
refs/heads/master
2020-03-18T12:08:22.748535
2018-06-16T10:24:38
2018-06-16T10:24:38
133,845,328
0
0
null
null
null
null
UTF-8
Java
false
false
3,370
java
package com.example.android.worldcupguide; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import android.widget.TextView; import java.util.ArrayList; /** * A simple {@link Fragment} subclass. */ public class MoscowFragment extends Fragment { public MoscowFragment() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.match_list, container, false); /** TODO: Insert all the code from the NumberActivity's onCreate() method after the setContentView method call*/ //Create an ArrayList of matches ArrayList<Match> matches = new ArrayList<>(); //Add the match information to the ArrayList matches.add(new Match(getString(R.string.saud_rus), getString(R.string.t_saud_rus), getString(R.string.luzhniki), R.drawable.saud_rus)); matches.add(new Match(getString(R.string.argen_iceland), getString(R.string.t_argen_iceland), getString(R.string.spartak), R.drawable.argen_iceland)); matches.add(new Match(getString(R.string.germ_mex), getString(R.string.t_germ_mex), getString(R.string.luzhniki), R.drawable.germ_mex)); matches.add(new Match(getString(R.string.pol_seneg), getString(R.string.t_pol_seneg), getString(R.string.spartak), R.drawable.pol_seneg)); matches.add(new Match(getString(R.string.port_moro), getString(R.string.t_port_moro), getString(R.string.luzhniki), R.drawable.port_moro)); matches.add(new Match(getString(R.string.belg_tunis), getString(R.string.t_belg_tunis), getString(R.string.spartak), R.drawable.belg_tunis)); matches.add(new Match(getString(R.string.den_france), getString(R.string.t_den_france), getString(R.string.luzhniki), R.drawable.den_france)); matches.add(new Match(getString(R.string.serb_braz), getString(R.string.t_serb_braz), getString(R.string.spartak), R.drawable.serb_braz)); //Create a {@link ArrayAdapter}, whose data source is a list of Strings. The //adapter knows how to create layouts for each item in the list, using the //simple_list_item1.xml resource defined in the Android framework. //This listItem layout contains a single {@link TextView}, which the adapter will set //to display a single match MatchAdapter adapter = new MatchAdapter(getActivity(), matches); //Find the {@link ListView} object in the view hierarchy of the {@link Activity} //There should be a {@link ListView} with the view ID called "match_list", which is //declared in the match_list.xml file. ListView listView = (ListView) rootView.findViewById(R.id.match_list); //Make the {@link ListView} use the {@link ArrayAdapter} we created above, so that the //{@link ListView} will display list items for each match in the list of matches. //Do this by calling the setAdapter method on the {@link ListView} object and pass in //1 argument, which is the {@link ArrayAdapter} with the variable name: "adapter" listView.setAdapter(adapter); return rootView; } }
aca872b6e13740ebd41686ca1005c86a452c6cf9
c13b8def6074b0555bb561d1085b15b89f0d9d5c
/automatic/com/mxk/model/SearchLogCriteria.java
6fc62617e07c15e1c66a154313692d6cf8cd9b89
[]
no_license
liuyijiang/mxkcrawlerservice
270fc5c66651df762a21021a076592f224227b8c
2b1df4cd7184021268236e8ea9cb103fb1f196bb
refs/heads/master
2021-01-22T02:34:10.379333
2014-02-25T06:55:26
2014-02-25T06:55:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
18,597
java
package com.mxk.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class SearchLogCriteria { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SearchLogCriteria() { oredCriteria = new ArrayList<Criteria>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<Criterion>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Integer value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Integer value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Integer value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Integer value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Integer value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Integer value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Integer> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Integer> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Integer value1, Integer value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Integer value1, Integer value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andKeywordIsNull() { addCriterion("keyword is null"); return (Criteria) this; } public Criteria andKeywordIsNotNull() { addCriterion("keyword is not null"); return (Criteria) this; } public Criteria andKeywordEqualTo(String value) { addCriterion("keyword =", value, "keyword"); return (Criteria) this; } public Criteria andKeywordNotEqualTo(String value) { addCriterion("keyword <>", value, "keyword"); return (Criteria) this; } public Criteria andKeywordGreaterThan(String value) { addCriterion("keyword >", value, "keyword"); return (Criteria) this; } public Criteria andKeywordGreaterThanOrEqualTo(String value) { addCriterion("keyword >=", value, "keyword"); return (Criteria) this; } public Criteria andKeywordLessThan(String value) { addCriterion("keyword <", value, "keyword"); return (Criteria) this; } public Criteria andKeywordLessThanOrEqualTo(String value) { addCriterion("keyword <=", value, "keyword"); return (Criteria) this; } public Criteria andKeywordLike(String value) { addCriterion("keyword like", value, "keyword"); return (Criteria) this; } public Criteria andKeywordNotLike(String value) { addCriterion("keyword not like", value, "keyword"); return (Criteria) this; } public Criteria andKeywordIn(List<String> values) { addCriterion("keyword in", values, "keyword"); return (Criteria) this; } public Criteria andKeywordNotIn(List<String> values) { addCriterion("keyword not in", values, "keyword"); return (Criteria) this; } public Criteria andKeywordBetween(String value1, String value2) { addCriterion("keyword between", value1, value2, "keyword"); return (Criteria) this; } public Criteria andKeywordNotBetween(String value1, String value2) { addCriterion("keyword not between", value1, value2, "keyword"); return (Criteria) this; } public Criteria andSearchFormIpIsNull() { addCriterion("search_form_ip is null"); return (Criteria) this; } public Criteria andSearchFormIpIsNotNull() { addCriterion("search_form_ip is not null"); return (Criteria) this; } public Criteria andSearchFormIpEqualTo(String value) { addCriterion("search_form_ip =", value, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpNotEqualTo(String value) { addCriterion("search_form_ip <>", value, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpGreaterThan(String value) { addCriterion("search_form_ip >", value, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpGreaterThanOrEqualTo(String value) { addCriterion("search_form_ip >=", value, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpLessThan(String value) { addCriterion("search_form_ip <", value, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpLessThanOrEqualTo(String value) { addCriterion("search_form_ip <=", value, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpLike(String value) { addCriterion("search_form_ip like", value, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpNotLike(String value) { addCriterion("search_form_ip not like", value, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpIn(List<String> values) { addCriterion("search_form_ip in", values, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpNotIn(List<String> values) { addCriterion("search_form_ip not in", values, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpBetween(String value1, String value2) { addCriterion("search_form_ip between", value1, value2, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFormIpNotBetween(String value1, String value2) { addCriterion("search_form_ip not between", value1, value2, "searchFormIp"); return (Criteria) this; } public Criteria andSearchFromUserIsNull() { addCriterion("search_from_user is null"); return (Criteria) this; } public Criteria andSearchFromUserIsNotNull() { addCriterion("search_from_user is not null"); return (Criteria) this; } public Criteria andSearchFromUserEqualTo(Integer value) { addCriterion("search_from_user =", value, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserNotEqualTo(Integer value) { addCriterion("search_from_user <>", value, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserGreaterThan(Integer value) { addCriterion("search_from_user >", value, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserGreaterThanOrEqualTo(Integer value) { addCriterion("search_from_user >=", value, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserLessThan(Integer value) { addCriterion("search_from_user <", value, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserLessThanOrEqualTo(Integer value) { addCriterion("search_from_user <=", value, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserIn(List<Integer> values) { addCriterion("search_from_user in", values, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserNotIn(List<Integer> values) { addCriterion("search_from_user not in", values, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserBetween(Integer value1, Integer value2) { addCriterion("search_from_user between", value1, value2, "searchFromUser"); return (Criteria) this; } public Criteria andSearchFromUserNotBetween(Integer value1, Integer value2) { addCriterion("search_from_user not between", value1, value2, "searchFromUser"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("create_time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("create_time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("create_time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("create_time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("create_time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("create_time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andSearchFromSiteIsNull() { addCriterion("search_from_site is null"); return (Criteria) this; } public Criteria andSearchFromSiteIsNotNull() { addCriterion("search_from_site is not null"); return (Criteria) this; } public Criteria andSearchFromSiteEqualTo(Integer value) { addCriterion("search_from_site =", value, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteNotEqualTo(Integer value) { addCriterion("search_from_site <>", value, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteGreaterThan(Integer value) { addCriterion("search_from_site >", value, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteGreaterThanOrEqualTo(Integer value) { addCriterion("search_from_site >=", value, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteLessThan(Integer value) { addCriterion("search_from_site <", value, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteLessThanOrEqualTo(Integer value) { addCriterion("search_from_site <=", value, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteIn(List<Integer> values) { addCriterion("search_from_site in", values, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteNotIn(List<Integer> values) { addCriterion("search_from_site not in", values, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteBetween(Integer value1, Integer value2) { addCriterion("search_from_site between", value1, value2, "searchFromSite"); return (Criteria) this; } public Criteria andSearchFromSiteNotBetween(Integer value1, Integer value2) { addCriterion("search_from_site not between", value1, value2, "searchFromSite"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
9ad9715dba0bc0eec4753ef58545fcb70b3e5dbe
62636dec929bd8f3f5d17abd64eb7a2b040def30
/app/src/main/java/gopdu/pdu/gopduversiondriver/modelresponse/HistoryFragmentResponse.java
af8d7f436c19083d2300f9e0f3cd50b5a6e29de2
[]
no_license
viking1998cp/GoPDUVersionDriver
bfc319d4c38c8ee071e04702e185511f3eaea55f
37005a55fa40e3fd453262197f7556b489567bd9
refs/heads/master
2021-03-25T21:21:48.726093
2020-05-05T01:53:56
2020-05-05T01:53:56
247,646,719
0
0
null
null
null
null
UTF-8
Java
false
false
394
java
package gopdu.pdu.gopduversiondriver.modelresponse; import java.util.ArrayList; import gopdu.pdu.gopduversiondriver.object.History; public interface HistoryFragmentResponse { void getHistorySuccess(ArrayList<History> data); void getHistoryFaild(); void getHistoryStateSuccess(String string); void getHistoryStateCancel(String string); void reciverAllDataHistory(); }
57c31b3385d24b57925097fd37c96a4de92ee70c
3f9dad6975d97dfbf7c67887b0a09180aa31e356
/src/main/java/com/gpdata/wanyou/md/controller/OntologyGroupController.java
eaaba0542373adbe3f84fc9aae1d369413f8c54b
[]
no_license
eatongliu/policy_t
303e6e3c93086d0010b6f1fbe5f48c2a32222bf5
0c394e17b59808da60f4f8e89f898dcfa28bb3cc
refs/heads/master
2022-01-14T10:32:33.463219
2016-12-27T05:01:22
2016-12-27T05:01:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,538
java
package com.gpdata.wanyou.md.controller; import com.gpdata.wanyou.base.controller.BaseController; import com.gpdata.wanyou.base.service.SimpleService; import com.gpdata.wanyou.base.vo.BeanResult; import com.gpdata.wanyou.md.entity.OntologyGroup; import com.gpdata.wanyou.md.service.OntologyService; import com.gpdata.wanyou.system.entity.User; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.Pair; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.util.List; /** * 3.1.1本体组 Created by chengchao on 16-10-12. */ @Controller @RequestMapping() public class OntologyGroupController extends BaseController { @Autowired private OntologyService ontologyService; @Autowired private SimpleService simpleService; /** * 查看选定本体组详细信息 * * @param groupid * @return */ @RequestMapping(value = "/ot/gp/{groupid}", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.GET) @ResponseBody public BeanResult getOntologyGroup(@PathVariable(value = "groupid") Integer groupid) { try { logger.debug("viewOntologyGroupInput : {}", groupid); OntologyGroup ontologyGroup = ontologyService.getGroupById(groupid); return BeanResult.success(ontologyGroup); } catch (Exception e) { logger.error("viewOntologyGroupException : ", e); return BeanResult.error("获取失败 : " + e.getMessage()); } } /** * 添加本体组 * * @param ontologyGroup * @return */ @RequestMapping(value = "/ot/gp", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.POST) @ResponseBody public BeanResult addOntologyGroup(@RequestBody OntologyGroup ontologyGroup, HttpServletRequest request) { logger.debug("addOntologyGroupInput : {}", ontologyGroup); if (StringUtils.isBlank(ontologyGroup.getCaption())) { return BeanResult.error("Caption 不可为空"); } try { User currentUser = (User) request.getAttribute("currentUser"); ontologyGroup.setUserId(String.valueOf(currentUser.getUserId())); int groupid = ontologyService.addOntologyGroup(ontologyGroup); return BeanResult.success(groupid); } catch (Exception e) { logger.error("addOntologyGroupException : ", e); return BeanResult.error("添加失败 : " + e.getMessage()); } } /** * 更新本体组 * * @param ontologyGroup * @return */ @RequestMapping(value = "/ot/gp/{groupId}", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.PUT) @ResponseBody public BeanResult updateOntologyGroup(@PathVariable Integer groupId, @RequestBody OntologyGroup ontologyGroup) { logger.debug("updateOntologyGroupInput : {}", ontologyGroup); try { ontologyGroup.setGroupId(groupId); this.simpleService.update(groupId, ontologyGroup); return BeanResult.success(groupId); } catch (Exception e) { logger.error("updateOntologyGroupException : ", e); return BeanResult.error("修改失败 : " + e.getMessage()); } } /** * 删除本体组 * * @param groupId * @return */ @RequestMapping(value = "/ot/gp/{groupId}", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.DELETE) @ResponseBody public BeanResult deleteOntologyGroup(@PathVariable(value = "groupId") Integer groupId) { logger.debug("deleteOntologyGroupInput : {}", groupId); try { ontologyService.deleteOntologyGroup(groupId); return BeanResult.success(""); } catch (Exception e) { logger.error("deleteOntologyGroupException : ", e); return BeanResult.error("删除失败 : " + e.getMessage()); } } /** * 查询本体组 * * @return */ @RequestMapping(value = "/ot/gp", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.GET) @ResponseBody public BeanResult searchOntologyGroup(@RequestParam(name = "caption", required = false) String caption , @RequestParam(name = "limit", required = false, defaultValue = "10") Integer limit , @RequestParam(name = "offset", required = false, defaultValue = "0") Integer offset) { if (logger.isDebugEnabled()) { Object[] argArray = {caption, limit, offset}; logger.debug("searchOntologyGroup caption , limit ,offset: {} , {} , {}", argArray); } BeanResult beanResult; try { if (limit > 100 || limit < 1) { limit = 10; } Pair<Integer, List<OntologyGroup>> searchResult = ontologyService .searchOntologyGroup(caption, limit, offset); beanResult = BeanResult.success(searchResult.getLeft(), searchResult.getRight()); } catch (Exception e) { logger.error("searchOntologyException : ", e); beanResult = BeanResult.error("获取失败 : " + e.getMessage()); } return beanResult; } }
5d3836bb5f40bd1f1b85d3bf6912261d9c2730b4
381b16f400db3f3fd95c8eba7b6e431b29cb7ebf
/706. Design HashMap/solution.java
945112de3632666cb44955c1b91a3ea6f6846d8b
[]
no_license
LisaFan18/lintcode
333a3a801e7ae2a723c2b194135f0d0066bfca10
df2101863d9fd8c9d251d21d8e7b47b1e3038394
refs/heads/master
2020-04-01T04:26:47.474006
2019-09-17T14:37:56
2019-09-17T14:37:56
152,863,934
0
0
null
null
null
null
UTF-8
Java
false
false
2,978
java
class MyHashMap { class ListNode { int key; int value; ListNode next; ListNode(int k, int v, ListNode n){ this.key = k; this.value = v; this.next = n; } } ListNode[] arr; final int size = 10000; private int getIndex(int key){ // https://docs.oracle.com/javase/8/docs/api/?java/lang/Integer.html // return Integer.hashCode(key) % size; return key % size; } private ListNode find(ListNode head, int key){ ListNode prev = null; ListNode curr = head; while(curr != null && curr.key != key){ prev = curr; curr = curr.next; } return prev; } /** Initialize your data structure here. */ public MyHashMap() { arr = new ListNode[size]; } /** value will always be non-negative. */ public void put(int key, int value) { int index = getIndex(key); ListNode head = arr[index]; ListNode newNode = new ListNode(key, value, null); // No collion if(head == null){ arr[index] = newNode; return; } else if(head.key == key){ head.value = value; } else { ListNode prev = find(head,key); // prev.next == null ? prev.next = newNode : prev.next.value = value; if(prev.next == null){ prev.next = newNode; } else { prev.next.value = value; } } } /** Returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key */ public int get(int key) { int index = getIndex(key); ListNode head = arr[index]; if(head == null){ // key does not exist return -1; } else if (head.key == key) { // if key is at the beginning of ll return head.value; } else { ListNode prev = find(head, key); return prev.next == null ? -1: prev.next.value; } } /** Removes the mapping of the specified value key if this map contains a mapping for the key */ public void remove(int key) { int index = getIndex(key); ListNode head = arr[index]; if(head == null){ // key does not exist } else if (head.key == key) { // if key is at the beginning of ll arr[index] = head.next; } else { ListNode prev = find(head, key); // prev.next == null ? return : prev.next = prev.next.next; if(prev.next != null){ prev.next = prev.next.next; } } } } /** * Your MyHashMap object will be instantiated and called as such: * MyHashMap obj = new MyHashMap(); * obj.put(key,value); * int param_2 = obj.get(key); * obj.remove(key); */
a31255595cf2378d54072f8a53af53079237ba5c
dd92784a9ef98071a127aa8226b2dde17ecb2e19
/src/main/java/br/com/zurcs/commons/util/validators/IsNullUtil.java
734918b5176b63f26c5c2916680a0b4d2566725c
[]
no_license
rodolfocruzbsb/commons-util
4e1c4036dc35a5d07905f03ce1e3084c3ed3ef7a
1b377c4985c866d9d78824bff3b1b4913e69ceea
refs/heads/master
2021-01-11T14:28:58.148869
2017-02-09T11:15:18
2017-02-09T11:15:18
81,441,920
0
0
null
null
null
null
UTF-8
Java
false
false
3,276
java
package br.com.zurcs.commons.util.validators; import java.io.File; import java.util.Collection; import java.util.Date; import java.util.Map; import br.com.zurcs.commons.util.intervalo.Intervalo; /** * @author Rodolfo Cruz - [email protected] */ public class IsNullUtil { private IsNullUtil() { throw new IllegalStateException("Class Not Instantiable"); } public static boolean isNull(Object value) { return value == null; } public static boolean isNotNull(final Object value) { return !isNull(value); } public static boolean isNullOrEmpty(String value) { return ( value == null ) || ( value.trim().length() == 0 ); } /** * Método responsável por * * * @param value * @return */ public static boolean isNotNullOrEmpty(final String value) { return !isNullOrEmpty(value); } public static boolean isNullOrEmpty(Object value) { return value == null; } /** * Método responsável por * * * @param value * @return */ public static boolean isNotNullOrEmpty(final Object value) { return !isNullOrEmpty(value); } public static <T> boolean isNullOrEmpty(Collection<T> collection) { return ( collection == null ) || ( collection.isEmpty() ); } /** * Método responsável por * * * @param collection * @return */ public static <T> boolean isNotNullOrEmpty(final Collection<T> collection) { return !isNullOrEmpty(collection); } public static boolean isNullOrEmpty(Number number) { return ( number == null ) || ( !( number.doubleValue() > 0 ) ); } /** * Método responsável por * * * @param number * @return */ public static boolean isNotNullOrEmpty(final Number number) { return !isNullOrEmpty(number); } public static boolean isNullOrEmpty(Date data) { return data == null; } /** * Método responsável por * * * @param data * @return */ public static boolean isNotNullOrEmpty(final Date data) { return isNullOrEmpty(data); } public static <T> boolean isNullOrEmpty(Map<T, T> map) { return ( map == null ) || ( map.isEmpty() ); } /** * Método responsável por * * * @param map * @return */ public static <T> boolean isNotNullOrEmpty(final Map<T, T> map) { return !isNullOrEmpty(map); } public static boolean isNullOrEmpty(File file) { return isNull(file) || file.length() == 0; } /** * Método responsável por * * * @param file * @return */ public static boolean isNotNullOrEmpty(final File file) { return !isNullOrEmpty(file); } public static boolean isNullOrEmpty(Object[] array) { return ( array == null ) || ( array.length == 0 ); } public static boolean isNotNullOrEmpty(final Object[] array) { return !isNullOrEmpty(array); } /** * Verifica se tem parametros vazios * * @param parameters * @return */ public static boolean isNullOrEmptyParameters(Object... parameters) { if (!isNullOrEmpty(parameters)) { for (Object item : parameters) { if (isNullOrEmpty(item)) { return true; } } } return isNullOrEmpty(parameters); } public static boolean isNullOrEmpty(Intervalo<?> intervalo) { return isNull(intervalo) || ( !isNull(intervalo) && isNullOrEmpty(intervalo.getInicio()) && isNullOrEmpty(intervalo.getFim()) ); } }
f5cff1baaa40ef7e3f6985925ab5d7cff31e8c7e
43f4294db8d075881322bcecbc89b7f49eb48aae
/gen/com/hu/quantumshare/R.java
67c9c72d27eba45fb29770782143062f9375e127
[]
no_license
wsamotshozo/quantum-share
27c4e6ae7bd64ebac73f6cb7cab59ce2a24a8369
aff1f87d7e342324aa84684bcfd77b16617c50c9
refs/heads/master
2016-09-11T02:49:42.300498
2015-05-27T19:31:19
2015-05-27T19:31:19
22,111,385
0
0
null
null
null
null
UTF-8
Java
false
false
186,220
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.hu.quantumshare; public final class R { public static final class anim { public static final int abc_fade_in=0x7f040000; public static final int abc_fade_out=0x7f040001; public static final int abc_slide_in_bottom=0x7f040002; public static final int abc_slide_in_top=0x7f040003; public static final int abc_slide_out_bottom=0x7f040004; public static final int abc_slide_out_top=0x7f040005; } public static final class array { public static final int nav_drawer_icons=0x7f0c0001; /** Nav Drawer Menu Items */ public static final int nav_drawer_items=0x7f0c0002; public static final int needs=0x7f0c0000; } public static final class attr { /** Custom divider drawable to use for elements in the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarDivider=0x7f01000f; /** Custom item state list drawable background for action bar items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarItemBackground=0x7f010010; /** Size of the Action Bar, including the contextual bar used to present Action Modes. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actionBarSize=0x7f01000e; /** Reference to a theme that should be used to inflate widgets and layouts destined for the action bar. Most of the time this will be a reference to the current theme, but when the action bar has a significantly different contrast profile than the rest of the activity the difference can become important. If this is set to @null the current theme will be used. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarSplitStyle=0x7f01000c; /** Reference to a style for the Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarStyle=0x7f01000b; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarTabBarStyle=0x7f010008; /** Default style for tabs within an action bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarTabStyle=0x7f010007; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarTabTextStyle=0x7f010009; /** Reference to a theme that should be used to inflate widgets and layouts destined for the action bar. Most of the time this will be a reference to the current theme, but when the action bar has a significantly different contrast profile than the rest of the activity the difference can become important. If this is set to @null the current theme will be used. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarWidgetTheme=0x7f01000d; /** Default action button style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionButtonStyle=0x7f010016; /** Default ActionBar dropdown style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionDropDownStyle=0x7f010047; /** An optional layout to be used as an action view. See {@link android.view.MenuItem#setActionView(android.view.View)} for more info. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionLayout=0x7f01004e; /** TextAppearance style that will be applied to text that appears within action menu items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionMenuTextAppearance=0x7f010011; /** Color for text that appears within action menu items. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int actionMenuTextColor=0x7f010012; /** Background drawable to use for action mode UI <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeBackground=0x7f01003c; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCloseButtonStyle=0x7f01003b; /** Drawable to use for the close action mode button <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCloseDrawable=0x7f01003e; /** Drawable to use for the Copy action button in Contextual Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCopyDrawable=0x7f010040; /** Drawable to use for the Cut action button in Contextual Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCutDrawable=0x7f01003f; /** Drawable to use for the Find action button in WebView selection action modes <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeFindDrawable=0x7f010044; /** Drawable to use for the Paste action button in Contextual Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModePasteDrawable=0x7f010041; /** PopupWindow style to use for action modes when showing as a window overlay. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModePopupWindowStyle=0x7f010046; /** Drawable to use for the Select all action button in Contextual Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeSelectAllDrawable=0x7f010042; /** Drawable to use for the Share action button in WebView selection action modes <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeShareDrawable=0x7f010043; /** Background drawable to use for action mode UI in the lower split bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeSplitBackground=0x7f01003d; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeStyle=0x7f01003a; /** Drawable to use for the Web Search action button in WebView selection action modes <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeWebSearchDrawable=0x7f010045; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionOverflowButtonStyle=0x7f01000a; /** The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item. See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} for more info. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actionProviderClass=0x7f010050; /** The name of an optional View class to instantiate and use as an action view. See {@link android.view.MenuItem#setActionView(android.view.View)} for more info. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actionViewClass=0x7f01004f; /** Default ActivityChooserView style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int activityChooserViewStyle=0x7f01006c; /** Specifies a background drawable for the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int background=0x7f01002f; /** Specifies a background drawable for the bottom component of a split action bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int backgroundSplit=0x7f010031; /** Specifies a background drawable for a second stacked row of the action bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int backgroundStacked=0x7f010030; /** A style that may be applied to Buttons placed within a LinearLayout with the style buttonBarStyle to form a button bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int buttonBarButtonStyle=0x7f010018; /** A style that may be applied to horizontal LinearLayouts to form a button bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int buttonBarStyle=0x7f010017; /** Specifies a layout for custom navigation. Overrides navigationMode. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int customNavigationLayout=0x7f010032; /** Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int disableChildrenWhenDisabled=0x7f010054; /** Options affecting how the action bar is displayed. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr> <tr><td><code>showHome</code></td><td>0x2</td><td></td></tr> <tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr> <tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr> <tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr> <tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr> </table> */ public static final int displayOptions=0x7f010028; /** Specifies the drawable used for item dividers. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int divider=0x7f01002e; /** A drawable that may be used as a horizontal divider between visual elements. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int dividerHorizontal=0x7f01001b; /** Size of padding on either end of a divider. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int dividerPadding=0x7f010056; /** A drawable that may be used as a vertical divider between visual elements. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int dividerVertical=0x7f01001a; /** ListPopupWindow comaptibility <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int dropDownListViewStyle=0x7f010021; /** The preferred item height for dropdown lists. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int dropdownListPreferredItemHeight=0x7f010048; /** The drawable to show in the button for expanding the activities overflow popup. <strong>Note:</strong> Clients would like to set this drawable as a clue about the action the chosen activity will perform. For example, if share activity is to be chosen the drawable should give a clue that sharing is to be performed. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int expandActivityOverflowButtonDrawable=0x7f01006b; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int height=0x7f010026; /** Specifies a drawable to use for the 'home as up' indicator. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int homeAsUpIndicator=0x7f010013; /** Specifies a layout to use for the "home" section of the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int homeLayout=0x7f010033; /** Specifies the drawable used for the application icon. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int icon=0x7f01002c; /** The default state of the SearchView. If true, it will be iconified when not in use and expanded when clicked. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int iconifiedByDefault=0x7f01005a; /** Specifies a style resource to use for an indeterminate progress spinner. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int indeterminateProgressStyle=0x7f010035; /** The maximal number of items initially shown in the activity list. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int initialActivityCount=0x7f01006a; /** Specifies whether the theme is light, otherwise it is dark. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int isLightTheme=0x7f010059; /** Specifies padding that should be applied to the left and right sides of system-provided items in the bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int itemPadding=0x7f010037; /** Drawable used as a background for selected list items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int listChoiceBackgroundIndicator=0x7f01004c; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int listPopupWindowStyle=0x7f010022; /** The preferred list item height. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemHeight=0x7f01001c; /** A larger, more robust list item height. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemHeightLarge=0x7f01001e; /** A smaller, sleeker list item height. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemHeightSmall=0x7f01001d; /** The preferred padding along the left edge of list items. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemPaddingLeft=0x7f01001f; /** The preferred padding along the right edge of list items. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemPaddingRight=0x7f010020; /** Specifies the drawable used for the application logo. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int logo=0x7f01002d; /** The type of navigation to use. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr> <tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr> <tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr> </table> */ public static final int navigationMode=0x7f010027; /** Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int paddingEnd=0x7f010039; /** Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int paddingStart=0x7f010038; /** Default Panel Menu style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int panelMenuListTheme=0x7f01004b; /** Default Panel Menu width. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int panelMenuListWidth=0x7f01004a; /** Default PopupMenu style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int popupMenuStyle=0x7f010049; /** Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown". This layout must contain a TextView with the id {@code @android:id/text1} to be populated with the prompt text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int popupPromptView=0x7f010053; /** Specifies the horizontal padding on either end for an embedded progress bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int progressBarPadding=0x7f010036; /** Specifies a style resource to use for an embedded progress bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int progressBarStyle=0x7f010034; /** The prompt to display when the spinner's dialog is shown. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int prompt=0x7f010051; /** An optional query hint string to be displayed in the empty query field. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int queryHint=0x7f01005b; /** SearchView dropdown background <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchDropdownBackground=0x7f01005c; /** The list item height for search results. @hide <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int searchResultListItemHeight=0x7f010065; /** SearchView AutoCompleteTextView style <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewAutoCompleteTextView=0x7f010069; /** SearchView close button icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewCloseIcon=0x7f01005d; /** SearchView query refinement icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewEditQuery=0x7f010061; /** SearchView query refinement icon background <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewEditQueryBackground=0x7f010062; /** SearchView Go button icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewGoIcon=0x7f01005e; /** SearchView Search icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewSearchIcon=0x7f01005f; /** SearchView text field background for the left section <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewTextField=0x7f010063; /** SearchView text field background for the right section <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewTextFieldRight=0x7f010064; /** SearchView Voice button icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewVoiceIcon=0x7f010060; /** A style that may be applied to buttons or other selectable items that should react to pressed and focus states, but that do not have a clear visual border along the edges. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int selectableItemBackground=0x7f010019; /** How this item should display in the Action Bar, if present. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always". </td></tr> <tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always". </td></tr> <tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr> <tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation. </td></tr> <tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container. </td></tr> </table> */ public static final int showAsAction=0x7f01004d; /** Setting for which dividers to show. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>none</code></td><td>0</td><td></td></tr> <tr><td><code>beginning</code></td><td>1</td><td></td></tr> <tr><td><code>middle</code></td><td>2</td><td></td></tr> <tr><td><code>end</code></td><td>4</td><td></td></tr> </table> */ public static final int showDividers=0x7f010055; /** Default Spinner style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int spinnerDropDownItemStyle=0x7f010058; /** Display mode for spinner options. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr> <tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown anchored to the spinner widget itself. </td></tr> </table> */ public static final int spinnerMode=0x7f010052; /** Default Spinner style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int spinnerStyle=0x7f010057; /** Specifies subtitle text used for navigationMode="normal" <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int subtitle=0x7f010029; /** Specifies a style to use for subtitle text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int subtitleTextStyle=0x7f01002b; /** Present the text in ALL CAPS. This may use a small-caps form when available. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a boolean value, either "<code>true</code>" or "<code>false</code>". */ public static final int textAllCaps=0x7f01006d; /** Text color, typeface, size, and style for the text inside of a popup menu. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceLargePopupMenu=0x7f010014; /** The preferred TextAppearance for the primary text of list items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceListItem=0x7f010023; /** The preferred TextAppearance for the primary text of small list items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceListItemSmall=0x7f010024; /** Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceSearchResultSubtitle=0x7f010067; /** Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceSearchResultTitle=0x7f010066; /** Text color, typeface, size, and style for small text inside of a popup menu. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceSmallPopupMenu=0x7f010015; /** Text color for urls in search suggestions, used by things like global search <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int textColorSearchUrl=0x7f010068; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int title=0x7f010025; /** Specifies a style to use for title text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int titleTextStyle=0x7f01002a; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowActionBar=0x7f010000; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowActionBarOverlay=0x7f010001; /** A fixed height for the window along the major axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension. <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowFixedHeightMajor=0x7f010006; /** A fixed height for the window along the minor axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension. <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowFixedHeightMinor=0x7f010004; /** A fixed width for the window along the major axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension. <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowFixedWidthMajor=0x7f010003; /** A fixed width for the window along the minor axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension. <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowFixedWidthMinor=0x7f010005; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowSplitActionBar=0x7f010002; } public static final class bool { public static final int abc_action_bar_embed_tabs_pre_jb=0x7f060000; public static final int abc_action_bar_expanded_action_views_exclusive=0x7f060001; /** Whether action menu items should be displayed in ALLCAPS or not. Defaults to true. If this is not appropriate for specific locales it should be disabled in that locale's resources. */ public static final int abc_config_actionMenuItemAllCaps=0x7f060005; /** Whether action menu items should obey the "withText" showAsAction flag. This may be set to false for situations where space is extremely limited. Whether action menu items should obey the "withText" showAsAction. This may be set to false for situations where space is extremely limited. */ public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f060004; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f060003; public static final int abc_split_action_bar_is_narrow=0x7f060002; } public static final class color { public static final int abc_search_url_text_holo=0x7f070009; public static final int abc_search_url_text_normal=0x7f070000; public static final int abc_search_url_text_pressed=0x7f070002; public static final int abc_search_url_text_selected=0x7f070001; public static final int counter_bg=0x7f070006; public static final int counter_text_color=0x7f070003; public static final int list_background=0x7f070007; public static final int list_background_pressed=0x7f070005; public static final int list_divider=0x7f070008; public static final int list_item_title=0x7f070004; } public static final class dimen { /** Default height of an action bar. Default height of an action bar. Default height of an action bar. Default height of an action bar. Default height of an action bar. */ public static final int abc_action_bar_default_height=0x7f080002; /** Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. */ public static final int abc_action_bar_icon_vertical_padding=0x7f080003; /** Size of the indeterminate Progress Bar Size of the indeterminate Progress Bar */ public static final int abc_action_bar_progress_bar_size=0x7f08000a; /** Maximum height for a stacked tab bar as part of an action bar */ public static final int abc_action_bar_stacked_max_height=0x7f080009; /** Maximum width for a stacked action bar tab. This prevents action bar tabs from becoming too wide on a wide screen when only a few are present. */ public static final int abc_action_bar_stacked_tab_max_width=0x7f080001; /** Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles */ public static final int abc_action_bar_subtitle_bottom_margin=0x7f080007; /** Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles */ public static final int abc_action_bar_subtitle_text_size=0x7f080005; /** Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles */ public static final int abc_action_bar_subtitle_top_margin=0x7f080006; /** Text size for action bar titles Text size for action bar titles Text size for action bar titles Text size for action bar titles Text size for action bar titles */ public static final int abc_action_bar_title_text_size=0x7f080004; /** Minimum width for an action button in the menu area of an action bar Minimum width for an action button in the menu area of an action bar Minimum width for an action button in the menu area of an action bar */ public static final int abc_action_button_min_width=0x7f080008; /** The maximum width we would prefer dialogs to be. 0 if there is no maximum (let them grow as large as the screen). Actual values are specified for -large and -xlarge configurations. see comment in values/config.xml see comment in values/config.xml */ public static final int abc_config_prefDialogWidth=0x7f080000; /** Width of the icon in a dropdown list */ public static final int abc_dropdownitem_icon_width=0x7f080010; /** Text padding for dropdown items */ public static final int abc_dropdownitem_text_padding_left=0x7f08000e; public static final int abc_dropdownitem_text_padding_right=0x7f08000f; public static final int abc_panel_menu_list_width=0x7f08000b; /** Preferred width of the search view. */ public static final int abc_search_view_preferred_width=0x7f08000d; /** Minimum width of the search view text entry area. Minimum width of the search view text entry area. Minimum width of the search view text entry area. Minimum width of the search view text entry area. */ public static final int abc_search_view_text_min_width=0x7f08000c; /** Default screen margins, per the Android Design guidelines. Example customization of dimensions originally defined in res/values/dimens.xml (such as screen margins) for screens with more than 820dp of available width. This would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). */ public static final int activity_horizontal_margin=0x7f080015; public static final int activity_vertical_margin=0x7f080016; /** The platform's desired fixed height for a dialog along the major axis (the screen is in portrait). This may be either a fraction or a dimension. The platform's desired fixed height for a dialog along the major axis (the screen is in portrait). This may be either a fraction or a dimension. The platform's desired fixed height for a dialog along the major axis (the screen is in portrait). This may be either a fraction or a dimension. */ public static final int dialog_fixed_height_major=0x7f080013; /** The platform's desired fixed height for a dialog along the minor axis (the screen is in landscape). This may be either a fraction or a dimension. The platform's desired fixed height for a dialog along the minor axis (the screen is in landscape). This may be either a fraction or a dimension. The platform's desired fixed height for a dialog along the minor axis (the screen is in landscape). This may be either a fraction or a dimension. */ public static final int dialog_fixed_height_minor=0x7f080014; /** The platform's desired fixed width for a dialog along the major axis (the screen is in landscape). This may be either a fraction or a dimension. The platform's desired fixed width for a dialog along the major axis (the screen is in landscape). This may be either a fraction or a dimension. The platform's desired fixed width for a dialog along the major axis (the screen is in landscape). This may be either a fraction or a dimension. */ public static final int dialog_fixed_width_major=0x7f080011; /** The platform's desired fixed width for a dialog along the minor axis (the screen is in portrait). This may be either a fraction or a dimension. The platform's desired fixed width for a dialog along the minor axis (the screen is in portrait). This may be either a fraction or a dimension. The platform's desired fixed width for a dialog along the minor axis (the screen is in portrait). This may be either a fraction or a dimension. */ public static final int dialog_fixed_width_minor=0x7f080012; public static final int navigation_drawer_width=0x7f080017; } public static final class drawable { public static final int abc_ab_bottom_solid_dark_holo=0x7f020000; public static final int abc_ab_bottom_solid_light_holo=0x7f020001; public static final int abc_ab_bottom_transparent_dark_holo=0x7f020002; public static final int abc_ab_bottom_transparent_light_holo=0x7f020003; public static final int abc_ab_share_pack_holo_dark=0x7f020004; public static final int abc_ab_share_pack_holo_light=0x7f020005; public static final int abc_ab_solid_dark_holo=0x7f020006; public static final int abc_ab_solid_light_holo=0x7f020007; public static final int abc_ab_stacked_solid_dark_holo=0x7f020008; public static final int abc_ab_stacked_solid_light_holo=0x7f020009; public static final int abc_ab_stacked_transparent_dark_holo=0x7f02000a; public static final int abc_ab_stacked_transparent_light_holo=0x7f02000b; public static final int abc_ab_transparent_dark_holo=0x7f02000c; public static final int abc_ab_transparent_light_holo=0x7f02000d; public static final int abc_cab_background_bottom_holo_dark=0x7f02000e; public static final int abc_cab_background_bottom_holo_light=0x7f02000f; public static final int abc_cab_background_top_holo_dark=0x7f020010; public static final int abc_cab_background_top_holo_light=0x7f020011; public static final int abc_ic_ab_back_holo_dark=0x7f020012; public static final int abc_ic_ab_back_holo_light=0x7f020013; public static final int abc_ic_cab_done_holo_dark=0x7f020014; public static final int abc_ic_cab_done_holo_light=0x7f020015; public static final int abc_ic_clear=0x7f020016; public static final int abc_ic_clear_disabled=0x7f020017; public static final int abc_ic_clear_holo_light=0x7f020018; public static final int abc_ic_clear_normal=0x7f020019; public static final int abc_ic_clear_search_api_disabled_holo_light=0x7f02001a; public static final int abc_ic_clear_search_api_holo_light=0x7f02001b; public static final int abc_ic_commit_search_api_holo_dark=0x7f02001c; public static final int abc_ic_commit_search_api_holo_light=0x7f02001d; public static final int abc_ic_go=0x7f02001e; public static final int abc_ic_go_search_api_holo_light=0x7f02001f; public static final int abc_ic_menu_moreoverflow_normal_holo_dark=0x7f020020; public static final int abc_ic_menu_moreoverflow_normal_holo_light=0x7f020021; public static final int abc_ic_menu_share_holo_dark=0x7f020022; public static final int abc_ic_menu_share_holo_light=0x7f020023; public static final int abc_ic_search=0x7f020024; public static final int abc_ic_search_api_holo_light=0x7f020025; public static final int abc_ic_voice_search=0x7f020026; public static final int abc_ic_voice_search_api_holo_light=0x7f020027; public static final int abc_item_background_holo_dark=0x7f020028; public static final int abc_item_background_holo_light=0x7f020029; public static final int abc_list_divider_holo_dark=0x7f02002a; public static final int abc_list_divider_holo_light=0x7f02002b; public static final int abc_list_focused_holo=0x7f02002c; public static final int abc_list_longpressed_holo=0x7f02002d; public static final int abc_list_pressed_holo_dark=0x7f02002e; public static final int abc_list_pressed_holo_light=0x7f02002f; public static final int abc_list_selector_background_transition_holo_dark=0x7f020030; public static final int abc_list_selector_background_transition_holo_light=0x7f020031; public static final int abc_list_selector_disabled_holo_dark=0x7f020032; public static final int abc_list_selector_disabled_holo_light=0x7f020033; public static final int abc_list_selector_holo_dark=0x7f020034; public static final int abc_list_selector_holo_light=0x7f020035; public static final int abc_menu_dropdown_panel_holo_dark=0x7f020036; public static final int abc_menu_dropdown_panel_holo_light=0x7f020037; public static final int abc_menu_hardkey_panel_holo_dark=0x7f020038; public static final int abc_menu_hardkey_panel_holo_light=0x7f020039; public static final int abc_search_dropdown_dark=0x7f02003a; public static final int abc_search_dropdown_light=0x7f02003b; public static final int abc_spinner_ab_default_holo_dark=0x7f02003c; public static final int abc_spinner_ab_default_holo_light=0x7f02003d; public static final int abc_spinner_ab_disabled_holo_dark=0x7f02003e; public static final int abc_spinner_ab_disabled_holo_light=0x7f02003f; public static final int abc_spinner_ab_focused_holo_dark=0x7f020040; public static final int abc_spinner_ab_focused_holo_light=0x7f020041; public static final int abc_spinner_ab_holo_dark=0x7f020042; public static final int abc_spinner_ab_holo_light=0x7f020043; public static final int abc_spinner_ab_pressed_holo_dark=0x7f020044; public static final int abc_spinner_ab_pressed_holo_light=0x7f020045; public static final int abc_tab_indicator_ab_holo=0x7f020046; public static final int abc_tab_selected_focused_holo=0x7f020047; public static final int abc_tab_selected_holo=0x7f020048; public static final int abc_tab_selected_pressed_holo=0x7f020049; public static final int abc_tab_unselected_pressed_holo=0x7f02004a; public static final int abc_textfield_search_default_holo_dark=0x7f02004b; public static final int abc_textfield_search_default_holo_light=0x7f02004c; public static final int abc_textfield_search_right_default_holo_dark=0x7f02004d; public static final int abc_textfield_search_right_default_holo_light=0x7f02004e; public static final int abc_textfield_search_right_selected_holo_dark=0x7f02004f; public static final int abc_textfield_search_right_selected_holo_light=0x7f020050; public static final int abc_textfield_search_selected_holo_dark=0x7f020051; public static final int abc_textfield_search_selected_holo_light=0x7f020052; public static final int abc_textfield_searchview_holo_dark=0x7f020053; public static final int abc_textfield_searchview_holo_light=0x7f020054; public static final int abc_textfield_searchview_right_holo_dark=0x7f020055; public static final int abc_textfield_searchview_right_holo_light=0x7f020056; public static final int border=0x7f020057; public static final int drawer_shadow=0x7f020058; public static final int ic_drawer=0x7f020059; public static final int ic_launcher=0x7f02005a; public static final int list_item_bg_normal=0x7f02005b; public static final int list_item_bg_pressed=0x7f02005c; public static final int list_selector=0x7f02005d; } public static final class id { public static final int accept=0x7f050041; public static final int action_bar=0x7f05001c; public static final int action_bar_activity_content=0x7f050015; public static final int action_bar_container=0x7f05001b; public static final int action_bar_overlay_layout=0x7f05001f; public static final int action_bar_root=0x7f05001a; public static final int action_bar_subtitle=0x7f050023; public static final int action_bar_title=0x7f050022; public static final int action_context_bar=0x7f05001d; public static final int action_example=0x7f050076; public static final int action_menu_divider=0x7f050016; public static final int action_menu_presenter=0x7f050017; public static final int action_mode_close_button=0x7f050024; public static final int action_settings=0x7f050075; public static final int activity_chooser_view_content=0x7f050025; public static final int always=0x7f05000b; public static final int beginning=0x7f050011; public static final int browseTask=0x7f050065; public static final int cancel=0x7f050059; public static final int checkbox=0x7f05002d; public static final int collapseActionView=0x7f05000d; public static final int container=0x7f05003c; public static final int counter=0x7f050055; public static final int createTask=0x7f050064; public static final int decline=0x7f050042; public static final int default_activity_button=0x7f050028; public static final int dialog=0x7f05000e; public static final int disableHome=0x7f050008; public static final int drawer_layout=0x7f050043; public static final int dropdown=0x7f05000f; public static final int edit=0x7f050069; public static final int edit_query=0x7f050030; public static final int email=0x7f050051; public static final int end=0x7f050013; public static final int enter=0x7f050052; public static final int expand_activities_button=0x7f050026; public static final int expanded_menu=0x7f05002c; public static final int fpassword=0x7f05004b; public static final int frame_container=0x7f05004c; public static final int home=0x7f050014; public static final int homeAsUp=0x7f050005; public static final int icon=0x7f05002a; public static final int ifRoom=0x7f05000a; public static final int image=0x7f050027; public static final int imageView1=0x7f050068; public static final int instructions=0x7f050062; public static final int label=0x7f05006b; public static final int listMode=0x7f050001; public static final int list_item=0x7f050029; public static final int list_slidermenu=0x7f05004d; public static final int login=0x7f050049; public static final int logout=0x7f050066; public static final int middle=0x7f050012; public static final int name=0x7f050056; public static final int navigation_drawer=0x7f050044; public static final int need=0x7f05003d; public static final int needs=0x7f05005f; public static final int never=0x7f050009; public static final int none=0x7f050010; public static final int normal=0x7f050000; public static final int owner=0x7f050053; public static final int pager=0x7f05004e; public static final int password=0x7f050048; public static final int password2=0x7f050050; public static final int phone=0x7f050057; public static final int place=0x7f050061; public static final int profile=0x7f050063; public static final int progress_circular=0x7f050018; public static final int progress_horizontal=0x7f050019; public static final int radio=0x7f05002f; public static final int ratingBar1=0x7f05006e; public static final int ratingBar2=0x7f050070; public static final int scroll=0x7f05005b; public static final int search_badge=0x7f050032; public static final int search_bar=0x7f050031; public static final int search_button=0x7f050033; public static final int search_close_btn=0x7f050038; public static final int search_edit_frame=0x7f050034; public static final int search_go_btn=0x7f05003a; public static final int search_mag_icon=0x7f050035; public static final int search_plate=0x7f050036; public static final int search_src_text=0x7f050037; public static final int search_voice_btn=0x7f05003b; public static final int secondLine=0x7f05006a; public static final int section_label=0x7f05005e; public static final int shortcut=0x7f05002e; public static final int showCustom=0x7f050007; public static final int showHome=0x7f050004; public static final int showTitle=0x7f050006; public static final int signup=0x7f05004a; public static final int special=0x7f050040; public static final int split_action_bar=0x7f05001e; public static final int submit=0x7f050058; public static final int submit_area=0x7f050039; public static final int tabMode=0x7f050002; public static final int taker=0x7f050054; public static final int tasks=0x7f05005a; public static final int text=0x7f050072; public static final int textView=0x7f05005d; public static final int textView1=0x7f05005c; public static final int textView2=0x7f05006c; public static final int textView3=0x7f05006d; public static final int textView4=0x7f05006f; public static final int textView5=0x7f050071; public static final int time=0x7f050060; public static final int title=0x7f05002b; public static final int top_action_bar=0x7f050020; public static final int txtLabel=0x7f050067; public static final int txtpassword=0x7f050047; public static final int txtpassword2=0x7f05004f; public static final int txtuser=0x7f050074; public static final int txtusername=0x7f050045; public static final int txtwelcome=0x7f050073; public static final int up=0x7f050021; public static final int useLogo=0x7f050003; public static final int username=0x7f050046; public static final int when=0x7f05003e; public static final int where=0x7f05003f; public static final int withText=0x7f05000c; } public static final class integer { /** The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. */ public static final int abc_max_action_buttons=0x7f090000; } public static final class layout { public static final int abc_action_bar_decor=0x7f030000; public static final int abc_action_bar_decor_include=0x7f030001; public static final int abc_action_bar_decor_overlay=0x7f030002; public static final int abc_action_bar_home=0x7f030003; public static final int abc_action_bar_tab=0x7f030004; public static final int abc_action_bar_tabbar=0x7f030005; public static final int abc_action_bar_title_item=0x7f030006; public static final int abc_action_bar_view_list_nav_layout=0x7f030007; public static final int abc_action_menu_item_layout=0x7f030008; public static final int abc_action_menu_layout=0x7f030009; public static final int abc_action_mode_bar=0x7f03000a; public static final int abc_action_mode_close_item=0x7f03000b; public static final int abc_activity_chooser_view=0x7f03000c; public static final int abc_activity_chooser_view_include=0x7f03000d; public static final int abc_activity_chooser_view_list_item=0x7f03000e; public static final int abc_expanded_menu_layout=0x7f03000f; public static final int abc_list_menu_item_checkbox=0x7f030010; public static final int abc_list_menu_item_icon=0x7f030011; public static final int abc_list_menu_item_layout=0x7f030012; public static final int abc_list_menu_item_radio=0x7f030013; public static final int abc_popup_menu_item_layout=0x7f030014; public static final int abc_search_dropdown_item_icons_2line=0x7f030015; public static final int abc_search_view=0x7f030016; public static final int abc_simple_decor=0x7f030017; public static final int activity_accept=0x7f030018; public static final int activity_create_task=0x7f030019; public static final int activity_login=0x7f03001a; public static final int activity_main=0x7f03001b; public static final int activity_mregn=0x7f03001c; public static final int activity_respond=0x7f03001d; public static final int activity_signup=0x7f03001e; public static final int activity_tasktaker=0x7f03001f; public static final int dialog_forgot_password=0x7f030020; public static final int dialog_task=0x7f030021; public static final int dialog_task_detail=0x7f030022; public static final int drawer_list_item=0x7f030023; public static final int edit_profile=0x7f030024; public static final int fragment_accept=0x7f030025; public static final int fragment_browse=0x7f030026; public static final int fragment_browse_table=0x7f030027; public static final int fragment_circles=0x7f030028; public static final int fragment_create_task=0x7f030029; public static final int fragment_createtask=0x7f03002a; public static final int fragment_dashboard=0x7f03002b; public static final int fragment_home=0x7f03002c; public static final int fragment_login=0x7f03002d; public static final int fragment_main=0x7f03002e; public static final int fragment_mregn=0x7f03002f; public static final int fragment_navigation_drawer=0x7f030030; public static final int fragment_profile=0x7f030031; public static final int fragment_respond=0x7f030032; public static final int list_rowlayout=0x7f030033; public static final int profile=0x7f030034; public static final int spinner_item=0x7f030035; public static final int support_simple_spinner_dropdown_item=0x7f030036; public static final int welcome=0x7f030037; } public static final class menu { public static final int accept=0x7f0d0000; public static final int create_task=0x7f0d0001; public static final int global=0x7f0d0002; public static final int login=0x7f0d0003; public static final int main=0x7f0d0004; public static final int mregn=0x7f0d0005; public static final int respond=0x7f0d0006; } public static final class string { public static final int Welcome=0x7f0a0016; /** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE] */ public static final int abc_action_bar_home_description=0x7f0a0001; /** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE] */ public static final int abc_action_bar_up_description=0x7f0a0002; /** Content description for the action menu overflow button. [CHAR LIMIT=NONE] */ public static final int abc_action_menu_overflow_description=0x7f0a0003; /** Label for the "Done" button on the far left of action mode toolbars. */ public static final int abc_action_mode_done=0x7f0a0000; /** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25] */ public static final int abc_activity_chooser_view_see_all=0x7f0a000a; /** ActivityChooserView - accessibility support Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE] */ public static final int abc_activitychooserview_choose_application=0x7f0a0009; /** SearchView accessibility description for clear button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_clear=0x7f0a0006; /** SearchView accessibility description for search text field [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_query=0x7f0a0005; /** SearchView accessibility description for search button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_search=0x7f0a0004; /** SearchView accessibility description for submit button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_submit=0x7f0a0007; /** SearchView accessibility description for voice button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_voice=0x7f0a0008; /** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] */ public static final int abc_shareactionprovider_share_with=0x7f0a000c; /** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] */ public static final int abc_shareactionprovider_share_with_application=0x7f0a000b; public static final int accept=0x7f0a002f; public static final int action_example=0x7f0a0029; public static final int action_settings=0x7f0a000f; public static final int app_name=0x7f0a000d; public static final int confirmPassword=0x7f0a0015; public static final int createtask=0x7f0a0023; public static final int decline=0x7f0a0030; /** Content Description */ public static final int desc_list_item_icon=0x7f0a002c; public static final int drawer_close=0x7f0a002b; public static final int drawer_open=0x7f0a002a; public static final int friends=0x7f0a0025; public static final int hello_world=0x7f0a000e; public static final int loginBtn=0x7f0a0011; public static final int logoutBtn=0x7f0a0013; public static final int main_section1=0x7f0a0018; public static final int main_section2=0x7f0a0019; public static final int main_section3=0x7f0a001a; public static final int navigation_drawer_close=0x7f0a0028; public static final int navigation_drawer_open=0x7f0a0027; public static final int need=0x7f0a001b; public static final int password=0x7f0a0014; public static final int profile=0x7f0a0026; public static final int signupBtn=0x7f0a0012; public static final int special=0x7f0a001e; public static final int submit=0x7f0a001f; public static final int taskhistory=0x7f0a0024; public static final int title_activity_accept=0x7f0a002d; public static final int title_activity_circles=0x7f0a0021; public static final int title_activity_create_task=0x7f0a0022; public static final int title_activity_main=0x7f0a0017; public static final int title_activity_profile=0x7f0a0020; public static final int title_activity_respond=0x7f0a002e; public static final int username=0x7f0a0010; public static final int when=0x7f0a001c; public static final int where=0x7f0a001d; } public static final class style { public static final int ActionBarCompat=0x7f0b008b; /** Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. API 11 theme customizations can go here. Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. API 14 theme customizations can go here. */ public static final int AppBaseTheme=0x7f0b008e; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f0b008f; public static final int DashboardButton=0x7f0b008c; public static final int FooterBar=0x7f0b008d; /** Mimic text appearance in select_dialog_item.xml */ public static final int TextAppearance_AppCompat_Base_CompactMenu_Dialog=0x7f0b0063; public static final int TextAppearance_AppCompat_Base_SearchResult=0x7f0b006d; public static final int TextAppearance_AppCompat_Base_SearchResult_Subtitle=0x7f0b006f; /** Search View result styles */ public static final int TextAppearance_AppCompat_Base_SearchResult_Title=0x7f0b006e; public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Large=0x7f0b0069; public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Small=0x7f0b006a; public static final int TextAppearance_AppCompat_Light_Base_SearchResult=0x7f0b0070; public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle=0x7f0b0072; /** TextAppearance.Holo.Light.SearchResult.* are private so we extend from the default versions instead (which are exactly the same). */ public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Title=0x7f0b0071; public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large=0x7f0b006b; public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small=0x7f0b006c; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0b0035; public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0b0034; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0b0030; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0b0031; public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0b0033; public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0b0032; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0b001a; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0b0006; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0b0008; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0b0005; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0b0007; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0b001e; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0b0020; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0b001d; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0b001f; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Menu=0x7f0b0054; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle=0x7f0b0056; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse=0x7f0b0058; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title=0x7f0b0055; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse=0x7f0b0057; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle=0x7f0b0051; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse=0x7f0b0053; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title=0x7f0b0050; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse=0x7f0b0052; public static final int TextAppearance_AppCompat_Widget_Base_DropDownItem=0x7f0b0061; public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0b0021; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0b002e; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0b002f; public static final int TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item=0x7f0b0062; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0b0028; /** Themes in the "Theme.AppCompat" family will contain an action bar by default. If Holo themes are available on the current platform version they will be used. A limited Holo-styled action bar will be provided on platform versions older than 3.0. (API 11) These theme declarations contain any version-independent specification. Items that need to vary based on platform version should be defined in the corresponding "Theme.Base" theme. Platform-independent theme providing an action bar in a dark-themed activity. */ public static final int Theme_AppCompat=0x7f0b0077; /** Menu/item attributes */ public static final int Theme_AppCompat_Base_CompactMenu=0x7f0b0083; public static final int Theme_AppCompat_Base_CompactMenu_Dialog=0x7f0b0084; /** Menu/item attributes */ public static final int Theme_AppCompat_CompactMenu=0x7f0b007c; public static final int Theme_AppCompat_CompactMenu_Dialog=0x7f0b007d; public static final int Theme_AppCompat_DialogWhenLarge=0x7f0b007a; /** Platform-independent theme providing an action bar in a light-themed activity. */ public static final int Theme_AppCompat_Light=0x7f0b0078; /** Platform-independent theme providing an action bar in a dark-themed activity. */ public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0b0079; public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0b007b; /** Base platform-dependent theme */ public static final int Theme_Base=0x7f0b007e; /** Base platform-dependent theme providing an action bar in a dark-themed activity. Base platform-dependent theme providing an action bar in a dark-themed activity. */ public static final int Theme_Base_AppCompat=0x7f0b0080; public static final int Theme_Base_AppCompat_Dialog_FixedSize=0x7f0b0087; public static final int Theme_Base_AppCompat_Dialog_Light_FixedSize=0x7f0b0088; public static final int Theme_Base_AppCompat_DialogWhenLarge=0x7f0b0085; /** As we have defined the theme in values-large (for compat) and values-large takes precedence over values-v14, we need to reset back to the Holo parent in values-large-v14. As the themes in values-v14 & values-large-v14 are exactly the same, these "double base" themes can be inherited from in both values-v14 and values-large-v14. */ public static final int Theme_Base_AppCompat_DialogWhenLarge_Base=0x7f0b0089; /** Base platform-dependent theme providing an action bar in a light-themed activity. Base platform-dependent theme providing an action bar in a light-themed activity. */ public static final int Theme_Base_AppCompat_Light=0x7f0b0081; /** Base platform-dependent theme providing a dark action bar in a light-themed activity. Base platform-dependent theme providing a dark action bar in a light-themed activity. */ public static final int Theme_Base_AppCompat_Light_DarkActionBar=0x7f0b0082; public static final int Theme_Base_AppCompat_Light_DialogWhenLarge=0x7f0b0086; public static final int Theme_Base_AppCompat_Light_DialogWhenLarge_Base=0x7f0b008a; /** Base platform-dependent theme providing a light-themed activity. */ public static final int Theme_Base_Light=0x7f0b007f; /** Styles in here can be extended for customisation in your application. Each utilises one of the Base styles. If Holo themes are available on the current platform version they will be used instead of the compat styles. */ public static final int Widget_AppCompat_ActionBar=0x7f0b0000; public static final int Widget_AppCompat_ActionBar_Solid=0x7f0b0002; public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0b0011; public static final int Widget_AppCompat_ActionBar_TabText=0x7f0b0017; public static final int Widget_AppCompat_ActionBar_TabView=0x7f0b0014; public static final int Widget_AppCompat_ActionButton=0x7f0b000b; public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0b000d; public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0b000f; public static final int Widget_AppCompat_ActionMode=0x7f0b001b; public static final int Widget_AppCompat_ActivityChooserView=0x7f0b0038; public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0b0036; public static final int Widget_AppCompat_Base_ActionBar=0x7f0b003a; public static final int Widget_AppCompat_Base_ActionBar_Solid=0x7f0b003c; public static final int Widget_AppCompat_Base_ActionBar_TabBar=0x7f0b0045; public static final int Widget_AppCompat_Base_ActionBar_TabText=0x7f0b004b; public static final int Widget_AppCompat_Base_ActionBar_TabView=0x7f0b0048; /** Action Button Styles */ public static final int Widget_AppCompat_Base_ActionButton=0x7f0b003f; public static final int Widget_AppCompat_Base_ActionButton_CloseMode=0x7f0b0041; public static final int Widget_AppCompat_Base_ActionButton_Overflow=0x7f0b0043; public static final int Widget_AppCompat_Base_ActionMode=0x7f0b004e; public static final int Widget_AppCompat_Base_ActivityChooserView=0x7f0b0075; /** AutoCompleteTextView styles (for SearchView) */ public static final int Widget_AppCompat_Base_AutoCompleteTextView=0x7f0b0073; public static final int Widget_AppCompat_Base_DropDownItem_Spinner=0x7f0b005d; /** Popup Menu */ public static final int Widget_AppCompat_Base_ListPopupWindow=0x7f0b0065; /** Spinner Widgets */ public static final int Widget_AppCompat_Base_ListView_DropDown=0x7f0b005f; public static final int Widget_AppCompat_Base_ListView_Menu=0x7f0b0064; public static final int Widget_AppCompat_Base_PopupMenu=0x7f0b0067; public static final int Widget_AppCompat_Base_ProgressBar=0x7f0b005a; /** Progress Bar */ public static final int Widget_AppCompat_Base_ProgressBar_Horizontal=0x7f0b0059; /** Action Bar Spinner Widgets */ public static final int Widget_AppCompat_Base_Spinner=0x7f0b005b; public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0b0024; public static final int Widget_AppCompat_Light_ActionBar=0x7f0b0001; public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0b0003; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0b0004; public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0b0012; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0b0013; public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0b0018; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0b0019; public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0b0015; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0b0016; public static final int Widget_AppCompat_Light_ActionButton=0x7f0b000c; public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0b000e; public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0b0010; public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0b001c; public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0b0039; public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0b0037; public static final int Widget_AppCompat_Light_Base_ActionBar=0x7f0b003b; public static final int Widget_AppCompat_Light_Base_ActionBar_Solid=0x7f0b003d; public static final int Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse=0x7f0b003e; public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar=0x7f0b0046; public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse=0x7f0b0047; public static final int Widget_AppCompat_Light_Base_ActionBar_TabText=0x7f0b004c; public static final int Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse=0x7f0b004d; public static final int Widget_AppCompat_Light_Base_ActionBar_TabView=0x7f0b0049; public static final int Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse=0x7f0b004a; public static final int Widget_AppCompat_Light_Base_ActionButton=0x7f0b0040; public static final int Widget_AppCompat_Light_Base_ActionButton_CloseMode=0x7f0b0042; public static final int Widget_AppCompat_Light_Base_ActionButton_Overflow=0x7f0b0044; public static final int Widget_AppCompat_Light_Base_ActionMode_Inverse=0x7f0b004f; public static final int Widget_AppCompat_Light_Base_ActivityChooserView=0x7f0b0076; public static final int Widget_AppCompat_Light_Base_AutoCompleteTextView=0x7f0b0074; public static final int Widget_AppCompat_Light_Base_DropDownItem_Spinner=0x7f0b005e; public static final int Widget_AppCompat_Light_Base_ListPopupWindow=0x7f0b0066; public static final int Widget_AppCompat_Light_Base_ListView_DropDown=0x7f0b0060; public static final int Widget_AppCompat_Light_Base_PopupMenu=0x7f0b0068; public static final int Widget_AppCompat_Light_Base_Spinner=0x7f0b005c; public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0b0025; public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0b002a; public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0b0027; public static final int Widget_AppCompat_Light_PopupMenu=0x7f0b002c; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0b0023; public static final int Widget_AppCompat_ListPopupWindow=0x7f0b0029; public static final int Widget_AppCompat_ListView_DropDown=0x7f0b0026; public static final int Widget_AppCompat_ListView_Menu=0x7f0b002d; public static final int Widget_AppCompat_PopupMenu=0x7f0b002b; public static final int Widget_AppCompat_ProgressBar=0x7f0b000a; public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0b0009; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0b0022; } public static final class styleable { /** ============================================ Attributes used to style the Action Bar. These should be set on your theme; the default actionBarStyle will propagate them to the correct elements as needed. Please Note: when overriding attributes for an ActionBar style you must specify each attribute twice: once with the "android:" namespace prefix and once without. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionBar_background com.hu.quantumshare:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr> <tr><td><code>{@link #ActionBar_backgroundSplit com.hu.quantumshare:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr> <tr><td><code>{@link #ActionBar_backgroundStacked com.hu.quantumshare:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr> <tr><td><code>{@link #ActionBar_customNavigationLayout com.hu.quantumshare:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr> <tr><td><code>{@link #ActionBar_displayOptions com.hu.quantumshare:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr> <tr><td><code>{@link #ActionBar_divider com.hu.quantumshare:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr> <tr><td><code>{@link #ActionBar_height com.hu.quantumshare:height}</code></td><td> Specifies a fixed height.</td></tr> <tr><td><code>{@link #ActionBar_homeLayout com.hu.quantumshare:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr> <tr><td><code>{@link #ActionBar_icon com.hu.quantumshare:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr> <tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.hu.quantumshare:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr> <tr><td><code>{@link #ActionBar_itemPadding com.hu.quantumshare:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of system-provided items in the bar.</td></tr> <tr><td><code>{@link #ActionBar_logo com.hu.quantumshare:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr> <tr><td><code>{@link #ActionBar_navigationMode com.hu.quantumshare:navigationMode}</code></td><td> The type of navigation to use.</td></tr> <tr><td><code>{@link #ActionBar_progressBarPadding com.hu.quantumshare:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr> <tr><td><code>{@link #ActionBar_progressBarStyle com.hu.quantumshare:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr> <tr><td><code>{@link #ActionBar_subtitle com.hu.quantumshare:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #ActionBar_subtitleTextStyle com.hu.quantumshare:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr> <tr><td><code>{@link #ActionBar_title com.hu.quantumshare:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #ActionBar_titleTextStyle com.hu.quantumshare:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr> </table> @see #ActionBar_background @see #ActionBar_backgroundSplit @see #ActionBar_backgroundStacked @see #ActionBar_customNavigationLayout @see #ActionBar_displayOptions @see #ActionBar_divider @see #ActionBar_height @see #ActionBar_homeLayout @see #ActionBar_icon @see #ActionBar_indeterminateProgressStyle @see #ActionBar_itemPadding @see #ActionBar_logo @see #ActionBar_navigationMode @see #ActionBar_progressBarPadding @see #ActionBar_progressBarStyle @see #ActionBar_subtitle @see #ActionBar_subtitleTextStyle @see #ActionBar_title @see #ActionBar_titleTextStyle */ public static final int[] ActionBar = { 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037 }; /** <p> @attr description Specifies a background drawable for the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:background */ public static final int ActionBar_background = 10; /** <p> @attr description Specifies a background drawable for the bottom component of a split action bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:backgroundSplit */ public static final int ActionBar_backgroundSplit = 12; /** <p> @attr description Specifies a background drawable for a second stacked row of the action bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:backgroundStacked */ public static final int ActionBar_backgroundStacked = 11; /** <p> @attr description Specifies a layout for custom navigation. Overrides navigationMode. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:customNavigationLayout */ public static final int ActionBar_customNavigationLayout = 13; /** <p> @attr description Options affecting how the action bar is displayed. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr> <tr><td><code>showHome</code></td><td>0x2</td><td></td></tr> <tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr> <tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr> <tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr> <tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr> </table> <p>This is a private symbol. @attr name com.hu.quantumshare:displayOptions */ public static final int ActionBar_displayOptions = 3; /** <p> @attr description Specifies the drawable used for item dividers. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:divider */ public static final int ActionBar_divider = 9; /** <p> @attr description Specifies a fixed height. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:height */ public static final int ActionBar_height = 1; /** <p> @attr description Specifies a layout to use for the "home" section of the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:homeLayout */ public static final int ActionBar_homeLayout = 14; /** <p> @attr description Specifies the drawable used for the application icon. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:icon */ public static final int ActionBar_icon = 7; /** <p> @attr description Specifies a style resource to use for an indeterminate progress spinner. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:indeterminateProgressStyle */ public static final int ActionBar_indeterminateProgressStyle = 16; /** <p> @attr description Specifies padding that should be applied to the left and right sides of system-provided items in the bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:itemPadding */ public static final int ActionBar_itemPadding = 18; /** <p> @attr description Specifies the drawable used for the application logo. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:logo */ public static final int ActionBar_logo = 8; /** <p> @attr description The type of navigation to use. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr> <tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr> <tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr> </table> <p>This is a private symbol. @attr name com.hu.quantumshare:navigationMode */ public static final int ActionBar_navigationMode = 2; /** <p> @attr description Specifies the horizontal padding on either end for an embedded progress bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:progressBarPadding */ public static final int ActionBar_progressBarPadding = 17; /** <p> @attr description Specifies a style resource to use for an embedded progress bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:progressBarStyle */ public static final int ActionBar_progressBarStyle = 15; /** <p> @attr description Specifies subtitle text used for navigationMode="normal" <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:subtitle */ public static final int ActionBar_subtitle = 4; /** <p> @attr description Specifies a style to use for subtitle text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:subtitleTextStyle */ public static final int ActionBar_subtitleTextStyle = 6; /** <p> @attr description Specifies title text used for navigationMode="normal" <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:title */ public static final int ActionBar_title = 0; /** <p> @attr description Specifies a style to use for title text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:titleTextStyle */ public static final int ActionBar_titleTextStyle = 5; /** Valid LayoutParams for views placed in the action bar as custom views. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr> </table> @see #ActionBarLayout_android_layout_gravity */ public static final int[] ActionBarLayout = { 0x010100b3 }; /** <p>This symbol is the offset where the {@link android.R.attr#layout_gravity} attribute's value can be found in the {@link #ActionBarLayout} array. @attr name android:layout_gravity */ public static final int ActionBarLayout_android_layout_gravity = 0; /** These attributes are meant to be specified and customized by the app. The system will read and apply them as needed. These attributes control properties of the activity window, such as whether an action bar should be present and whether it should overlay content. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionBarWindow_windowActionBar com.hu.quantumshare:windowActionBar}</code></td><td></td></tr> <tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay com.hu.quantumshare:windowActionBarOverlay}</code></td><td></td></tr> <tr><td><code>{@link #ActionBarWindow_windowFixedHeightMajor com.hu.quantumshare:windowFixedHeightMajor}</code></td><td> A fixed height for the window along the major axis of the screen, that is, when in portrait.</td></tr> <tr><td><code>{@link #ActionBarWindow_windowFixedHeightMinor com.hu.quantumshare:windowFixedHeightMinor}</code></td><td> A fixed height for the window along the minor axis of the screen, that is, when in landscape.</td></tr> <tr><td><code>{@link #ActionBarWindow_windowFixedWidthMajor com.hu.quantumshare:windowFixedWidthMajor}</code></td><td> A fixed width for the window along the major axis of the screen, that is, when in landscape.</td></tr> <tr><td><code>{@link #ActionBarWindow_windowFixedWidthMinor com.hu.quantumshare:windowFixedWidthMinor}</code></td><td> A fixed width for the window along the minor axis of the screen, that is, when in portrait.</td></tr> <tr><td><code>{@link #ActionBarWindow_windowSplitActionBar com.hu.quantumshare:windowSplitActionBar}</code></td><td></td></tr> </table> @see #ActionBarWindow_windowActionBar @see #ActionBarWindow_windowActionBarOverlay @see #ActionBarWindow_windowFixedHeightMajor @see #ActionBarWindow_windowFixedHeightMinor @see #ActionBarWindow_windowFixedWidthMajor @see #ActionBarWindow_windowFixedWidthMinor @see #ActionBarWindow_windowSplitActionBar */ public static final int[] ActionBarWindow = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006 }; /** <p>This symbol is the offset where the {@link com.hu.quantumshare.R.attr#windowActionBar} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.hu.quantumshare:windowActionBar */ public static final int ActionBarWindow_windowActionBar = 0; /** <p>This symbol is the offset where the {@link com.hu.quantumshare.R.attr#windowActionBarOverlay} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.hu.quantumshare:windowActionBarOverlay */ public static final int ActionBarWindow_windowActionBarOverlay = 1; /** <p> @attr description A fixed height for the window along the major axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension. <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:windowFixedHeightMajor */ public static final int ActionBarWindow_windowFixedHeightMajor = 6; /** <p> @attr description A fixed height for the window along the minor axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension. <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:windowFixedHeightMinor */ public static final int ActionBarWindow_windowFixedHeightMinor = 4; /** <p> @attr description A fixed width for the window along the major axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension. <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:windowFixedWidthMajor */ public static final int ActionBarWindow_windowFixedWidthMajor = 3; /** <p> @attr description A fixed width for the window along the minor axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension. <p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:windowFixedWidthMinor */ public static final int ActionBarWindow_windowFixedWidthMinor = 5; /** <p>This symbol is the offset where the {@link com.hu.quantumshare.R.attr#windowSplitActionBar} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.hu.quantumshare:windowSplitActionBar */ public static final int ActionBarWindow_windowSplitActionBar = 2; /** Attributes that can be used with a ActionMenuItemView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr> </table> @see #ActionMenuItemView_android_minWidth */ public static final int[] ActionMenuItemView = { 0x0101013f }; /** <p>This symbol is the offset where the {@link android.R.attr#minWidth} attribute's value can be found in the {@link #ActionMenuItemView} array. @attr name android:minWidth */ public static final int ActionMenuItemView_android_minWidth = 0; /** Size of padding on either end of a divider. */ public static final int[] ActionMenuView = { }; /** Attributes that can be used with a ActionMode. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionMode_background com.hu.quantumshare:background}</code></td><td> Specifies a background for the action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_backgroundSplit com.hu.quantumshare:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_height com.hu.quantumshare:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_subtitleTextStyle com.hu.quantumshare:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr> <tr><td><code>{@link #ActionMode_titleTextStyle com.hu.quantumshare:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr> </table> @see #ActionMode_background @see #ActionMode_backgroundSplit @see #ActionMode_height @see #ActionMode_subtitleTextStyle @see #ActionMode_titleTextStyle */ public static final int[] ActionMode = { 0x7f010026, 0x7f01002a, 0x7f01002b, 0x7f01002f, 0x7f010031 }; /** <p> @attr description Specifies a background for the action mode bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:background */ public static final int ActionMode_background = 3; /** <p> @attr description Specifies a background for the split action mode bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:backgroundSplit */ public static final int ActionMode_backgroundSplit = 4; /** <p> @attr description Specifies a fixed height for the action mode bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:height */ public static final int ActionMode_height = 0; /** <p> @attr description Specifies a style to use for subtitle text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:subtitleTextStyle */ public static final int ActionMode_subtitleTextStyle = 2; /** <p> @attr description Specifies a style to use for title text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:titleTextStyle */ public static final int ActionMode_titleTextStyle = 1; /** Attrbitutes for a ActivityChooserView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.hu.quantumshare:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr> <tr><td><code>{@link #ActivityChooserView_initialActivityCount com.hu.quantumshare:initialActivityCount}</code></td><td> The maximal number of items initially shown in the activity list.</td></tr> </table> @see #ActivityChooserView_expandActivityOverflowButtonDrawable @see #ActivityChooserView_initialActivityCount */ public static final int[] ActivityChooserView = { 0x7f01006a, 0x7f01006b }; /** <p> @attr description The drawable to show in the button for expanding the activities overflow popup. <strong>Note:</strong> Clients would like to set this drawable as a clue about the action the chosen activity will perform. For example, if share activity is to be chosen the drawable should give a clue that sharing is to be performed. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:expandActivityOverflowButtonDrawable */ public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; /** <p> @attr description The maximal number of items initially shown in the activity list. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:initialActivityCount */ public static final int ActivityChooserView_initialActivityCount = 0; /** Attributes that can be used with a CompatTextView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #CompatTextView_textAllCaps com.hu.quantumshare:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr> </table> @see #CompatTextView_textAllCaps */ public static final int[] CompatTextView = { 0x7f01006d }; /** <p> @attr description Present the text in ALL CAPS. This may use a small-caps form when available. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This is a private symbol. @attr name com.hu.quantumshare:textAllCaps */ public static final int CompatTextView_textAllCaps = 0; /** Attributes that can be used with a LinearLayoutICS. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #LinearLayoutICS_divider com.hu.quantumshare:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr> <tr><td><code>{@link #LinearLayoutICS_dividerPadding com.hu.quantumshare:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr> <tr><td><code>{@link #LinearLayoutICS_showDividers com.hu.quantumshare:showDividers}</code></td><td> Setting for which dividers to show.</td></tr> </table> @see #LinearLayoutICS_divider @see #LinearLayoutICS_dividerPadding @see #LinearLayoutICS_showDividers */ public static final int[] LinearLayoutICS = { 0x7f01002e, 0x7f010055, 0x7f010056 }; /** <p> @attr description Drawable to use as a vertical divider between buttons. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:divider */ public static final int LinearLayoutICS_divider = 0; /** <p> @attr description Size of padding on either end of a divider. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:dividerPadding */ public static final int LinearLayoutICS_dividerPadding = 2; /** <p> @attr description Setting for which dividers to show. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>none</code></td><td>0</td><td></td></tr> <tr><td><code>beginning</code></td><td>1</td><td></td></tr> <tr><td><code>middle</code></td><td>2</td><td></td></tr> <tr><td><code>end</code></td><td>4</td><td></td></tr> </table> <p>This is a private symbol. @attr name com.hu.quantumshare:showDividers */ public static final int LinearLayoutICS_showDividers = 1; /** Base attributes that are available to all groups. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td> Whether the items are capable of displaying a check mark.</td></tr> <tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td> Whether the items are enabled.</td></tr> <tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td> The ID of the group.</td></tr> <tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td> The category applied to all items within this group.</td></tr> <tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to all items within this group.</td></tr> <tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td> Whether the items are shown/visible.</td></tr> </table> @see #MenuGroup_android_checkableBehavior @see #MenuGroup_android_enabled @see #MenuGroup_android_id @see #MenuGroup_android_menuCategory @see #MenuGroup_android_orderInCategory @see #MenuGroup_android_visible */ public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; /** <p> @attr description Whether the items are capable of displaying a check mark. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#checkableBehavior}. @attr name android:checkableBehavior */ public static final int MenuGroup_android_checkableBehavior = 5; /** <p> @attr description Whether the items are enabled. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#enabled}. @attr name android:enabled */ public static final int MenuGroup_android_enabled = 0; /** <p> @attr description The ID of the group. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#id}. @attr name android:id */ public static final int MenuGroup_android_id = 1; /** <p> @attr description The category applied to all items within this group. (This will be or'ed with the orderInCategory attribute.) <p>This corresponds to the global attribute resource symbol {@link android.R.attr#menuCategory}. @attr name android:menuCategory */ public static final int MenuGroup_android_menuCategory = 3; /** <p> @attr description The order within the category applied to all items within this group. (This will be or'ed with the category attribute.) <p>This corresponds to the global attribute resource symbol {@link android.R.attr#orderInCategory}. @attr name android:orderInCategory */ public static final int MenuGroup_android_orderInCategory = 4; /** <p> @attr description Whether the items are shown/visible. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#visible}. @attr name android:visible */ public static final int MenuGroup_android_visible = 2; /** Base attributes that are available to all Item objects. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #MenuItem_actionLayout com.hu.quantumshare:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr> <tr><td><code>{@link #MenuItem_actionProviderClass com.hu.quantumshare:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item.</td></tr> <tr><td><code>{@link #MenuItem_actionViewClass com.hu.quantumshare:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an action view.</td></tr> <tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr> <tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr> <tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr> <tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr> <tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr> <tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr> <tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr> <tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr> <tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be called when the item is clicked.</td></tr> <tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr> <tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr> <tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr> <tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr> <tr><td><code>{@link #MenuItem_showAsAction com.hu.quantumshare:showAsAction}</code></td><td> How this item should display in the Action Bar, if present.</td></tr> </table> @see #MenuItem_actionLayout @see #MenuItem_actionProviderClass @see #MenuItem_actionViewClass @see #MenuItem_android_alphabeticShortcut @see #MenuItem_android_checkable @see #MenuItem_android_checked @see #MenuItem_android_enabled @see #MenuItem_android_icon @see #MenuItem_android_id @see #MenuItem_android_menuCategory @see #MenuItem_android_numericShortcut @see #MenuItem_android_onClick @see #MenuItem_android_orderInCategory @see #MenuItem_android_title @see #MenuItem_android_titleCondensed @see #MenuItem_android_visible @see #MenuItem_showAsAction */ public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050 }; /** <p> @attr description An optional layout to be used as an action view. See {@link android.view.MenuItem#setActionView(android.view.View)} for more info. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:actionLayout */ public static final int MenuItem_actionLayout = 14; /** <p> @attr description The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item. See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} for more info. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:actionProviderClass */ public static final int MenuItem_actionProviderClass = 16; /** <p> @attr description The name of an optional View class to instantiate and use as an action view. See {@link android.view.MenuItem#setActionView(android.view.View)} for more info. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:actionViewClass */ public static final int MenuItem_actionViewClass = 15; /** <p> @attr description The alphabetic shortcut key. This is the shortcut when using a keyboard with alphabetic keys. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#alphabeticShortcut}. @attr name android:alphabeticShortcut */ public static final int MenuItem_android_alphabeticShortcut = 9; /** <p> @attr description Whether the item is capable of displaying a check mark. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#checkable}. @attr name android:checkable */ public static final int MenuItem_android_checkable = 11; /** <p> @attr description Whether the item is checked. Note that you must first have enabled checking with the checkable attribute or else the check mark will not appear. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#checked}. @attr name android:checked */ public static final int MenuItem_android_checked = 3; /** <p> @attr description Whether the item is enabled. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#enabled}. @attr name android:enabled */ public static final int MenuItem_android_enabled = 1; /** <p> @attr description The icon associated with this item. This icon will not always be shown, so the title should be sufficient in describing this item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#icon}. @attr name android:icon */ public static final int MenuItem_android_icon = 0; /** <p> @attr description The ID of the item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#id}. @attr name android:id */ public static final int MenuItem_android_id = 2; /** <p> @attr description The category applied to the item. (This will be or'ed with the orderInCategory attribute.) <p>This corresponds to the global attribute resource symbol {@link android.R.attr#menuCategory}. @attr name android:menuCategory */ public static final int MenuItem_android_menuCategory = 5; /** <p> @attr description The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) keyboard. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#numericShortcut}. @attr name android:numericShortcut */ public static final int MenuItem_android_numericShortcut = 10; /** <p> @attr description Name of a method on the Context used to inflate the menu that will be called when the item is clicked. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#onClick}. @attr name android:onClick */ public static final int MenuItem_android_onClick = 12; /** <p> @attr description The order within the category applied to the item. (This will be or'ed with the category attribute.) <p>This corresponds to the global attribute resource symbol {@link android.R.attr#orderInCategory}. @attr name android:orderInCategory */ public static final int MenuItem_android_orderInCategory = 6; /** <p> @attr description The title associated with the item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#title}. @attr name android:title */ public static final int MenuItem_android_title = 7; /** <p> @attr description The condensed title associated with the item. This is used in situations where the normal title may be too long to be displayed. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#titleCondensed}. @attr name android:titleCondensed */ public static final int MenuItem_android_titleCondensed = 8; /** <p> @attr description Whether the item is shown/visible. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#visible}. @attr name android:visible */ public static final int MenuItem_android_visible = 4; /** <p> @attr description How this item should display in the Action Bar, if present. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always". </td></tr> <tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always". </td></tr> <tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr> <tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation. </td></tr> <tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container. </td></tr> </table> <p>This is a private symbol. @attr name com.hu.quantumshare:showAsAction */ public static final int MenuItem_showAsAction = 13; /** Attributes that can be used with a MenuView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td> Default background for the menu header.</td></tr> <tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td> Default horizontal divider between rows of menu items.</td></tr> <tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td> Default background for each menu item.</td></tr> <tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td> Default disabled icon alpha for each menu item that shows an icon.</td></tr> <tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td> Default appearance of menu item text.</td></tr> <tr><td><code>{@link #MenuView_android_preserveIconSpacing android:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</td></tr> <tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td> Default vertical divider between menu items.</td></tr> <tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td> Default animations for the menu.</td></tr> </table> @see #MenuView_android_headerBackground @see #MenuView_android_horizontalDivider @see #MenuView_android_itemBackground @see #MenuView_android_itemIconDisabledAlpha @see #MenuView_android_itemTextAppearance @see #MenuView_android_preserveIconSpacing @see #MenuView_android_verticalDivider @see #MenuView_android_windowAnimationStyle */ public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x01010435 }; /** <p> @attr description Default background for the menu header. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#headerBackground}. @attr name android:headerBackground */ public static final int MenuView_android_headerBackground = 4; /** <p> @attr description Default horizontal divider between rows of menu items. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#horizontalDivider}. @attr name android:horizontalDivider */ public static final int MenuView_android_horizontalDivider = 2; /** <p> @attr description Default background for each menu item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#itemBackground}. @attr name android:itemBackground */ public static final int MenuView_android_itemBackground = 5; /** <p> @attr description Default disabled icon alpha for each menu item that shows an icon. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#itemIconDisabledAlpha}. @attr name android:itemIconDisabledAlpha */ public static final int MenuView_android_itemIconDisabledAlpha = 6; /** <p> @attr description Default appearance of menu item text. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#itemTextAppearance}. @attr name android:itemTextAppearance */ public static final int MenuView_android_itemTextAppearance = 1; /** <p> @attr description Whether space should be reserved in layout when an icon is missing. <p>This is a private symbol. @attr name android:preserveIconSpacing */ public static final int MenuView_android_preserveIconSpacing = 7; /** <p> @attr description Default vertical divider between menu items. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#verticalDivider}. @attr name android:verticalDivider */ public static final int MenuView_android_verticalDivider = 3; /** <p> @attr description Default animations for the menu. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#windowAnimationStyle}. @attr name android:windowAnimationStyle */ public static final int MenuView_android_windowAnimationStyle = 0; /** Attributes that can be used with a SearchView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td> The IME options to set on the query text field.</td></tr> <tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td> The input type to set on the query text field.</td></tr> <tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td> An optional maximum width of the SearchView.</td></tr> <tr><td><code>{@link #SearchView_iconifiedByDefault com.hu.quantumshare:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr> <tr><td><code>{@link #SearchView_queryHint com.hu.quantumshare:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr> </table> @see #SearchView_android_imeOptions @see #SearchView_android_inputType @see #SearchView_android_maxWidth @see #SearchView_iconifiedByDefault @see #SearchView_queryHint */ public static final int[] SearchView = { 0x0101011f, 0x01010220, 0x01010264, 0x7f01005a, 0x7f01005b }; /** <p> @attr description The IME options to set on the query text field. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#imeOptions}. @attr name android:imeOptions */ public static final int SearchView_android_imeOptions = 2; /** <p> @attr description The input type to set on the query text field. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#inputType}. @attr name android:inputType */ public static final int SearchView_android_inputType = 1; /** <p> @attr description An optional maximum width of the SearchView. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#maxWidth}. @attr name android:maxWidth */ public static final int SearchView_android_maxWidth = 0; /** <p> @attr description The default state of the SearchView. If true, it will be iconified when not in use and expanded when clicked. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:iconifiedByDefault */ public static final int SearchView_iconifiedByDefault = 3; /** <p> @attr description An optional query hint string to be displayed in the empty query field. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:queryHint */ public static final int SearchView_queryHint = 4; /** Attributes that can be used with a Spinner. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Horizontal offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td> List selector to use for spinnerMode="dropdown" display.</td></tr> <tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Vertical offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td> Width of the dropdown in spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td> Gravity setting for positioning the currently selected item.</td></tr> <tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td> Background drawable to use for the dropdown in spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_disableChildrenWhenDisabled com.hu.quantumshare:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled.</td></tr> <tr><td><code>{@link #Spinner_popupPromptView com.hu.quantumshare:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_prompt com.hu.quantumshare:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr> <tr><td><code>{@link #Spinner_spinnerMode com.hu.quantumshare:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr> </table> @see #Spinner_android_dropDownHorizontalOffset @see #Spinner_android_dropDownSelector @see #Spinner_android_dropDownVerticalOffset @see #Spinner_android_dropDownWidth @see #Spinner_android_gravity @see #Spinner_android_popupBackground @see #Spinner_disableChildrenWhenDisabled @see #Spinner_popupPromptView @see #Spinner_prompt @see #Spinner_spinnerMode */ public static final int[] Spinner = { 0x010100af, 0x01010175, 0x01010176, 0x01010262, 0x010102ac, 0x010102ad, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054 }; /** <p> @attr description Horizontal offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown". <p>This corresponds to the global attribute resource symbol {@link android.R.attr#dropDownHorizontalOffset}. @attr name android:dropDownHorizontalOffset */ public static final int Spinner_android_dropDownHorizontalOffset = 4; /** <p> @attr description List selector to use for spinnerMode="dropdown" display. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#dropDownSelector}. @attr name android:dropDownSelector */ public static final int Spinner_android_dropDownSelector = 1; /** <p> @attr description Vertical offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown". <p>This corresponds to the global attribute resource symbol {@link android.R.attr#dropDownVerticalOffset}. @attr name android:dropDownVerticalOffset */ public static final int Spinner_android_dropDownVerticalOffset = 5; /** <p> @attr description Width of the dropdown in spinnerMode="dropdown". <p>This corresponds to the global attribute resource symbol {@link android.R.attr#dropDownWidth}. @attr name android:dropDownWidth */ public static final int Spinner_android_dropDownWidth = 3; /** <p> @attr description Gravity setting for positioning the currently selected item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#gravity}. @attr name android:gravity */ public static final int Spinner_android_gravity = 0; /** <p> @attr description Background drawable to use for the dropdown in spinnerMode="dropdown". <p>This corresponds to the global attribute resource symbol {@link android.R.attr#popupBackground}. @attr name android:popupBackground */ public static final int Spinner_android_popupBackground = 2; /** <p> @attr description Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:disableChildrenWhenDisabled */ public static final int Spinner_disableChildrenWhenDisabled = 9; /** <p> @attr description Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown". This layout must contain a TextView with the id {@code @android:id/text1} to be populated with the prompt text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:popupPromptView */ public static final int Spinner_popupPromptView = 8; /** <p> @attr description The prompt to display when the spinner's dialog is shown. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:prompt */ public static final int Spinner_prompt = 6; /** <p> @attr description Display mode for spinner options. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr> <tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown anchored to the spinner widget itself. </td></tr> </table> <p>This is a private symbol. @attr name com.hu.quantumshare:spinnerMode */ public static final int Spinner_spinnerMode = 7; /** These are the standard attributes that make up a complete theme. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #Theme_actionDropDownStyle com.hu.quantumshare:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr> <tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.hu.quantumshare:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr> <tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.hu.quantumshare:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr> <tr><td><code>{@link #Theme_panelMenuListTheme com.hu.quantumshare:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr> <tr><td><code>{@link #Theme_panelMenuListWidth com.hu.quantumshare:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr> <tr><td><code>{@link #Theme_popupMenuStyle com.hu.quantumshare:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr> </table> @see #Theme_actionDropDownStyle @see #Theme_dropdownListPreferredItemHeight @see #Theme_listChoiceBackgroundIndicator @see #Theme_panelMenuListTheme @see #Theme_panelMenuListWidth @see #Theme_popupMenuStyle */ public static final int[] Theme = { 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c }; /** <p> @attr description Default ActionBar dropdown style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:actionDropDownStyle */ public static final int Theme_actionDropDownStyle = 0; /** <p> @attr description The preferred item height for dropdown lists. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:dropdownListPreferredItemHeight */ public static final int Theme_dropdownListPreferredItemHeight = 1; /** <p> @attr description Drawable used as a background for selected list items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:listChoiceBackgroundIndicator */ public static final int Theme_listChoiceBackgroundIndicator = 5; /** <p> @attr description Default Panel Menu style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:panelMenuListTheme */ public static final int Theme_panelMenuListTheme = 4; /** <p> @attr description Default Panel Menu width. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:panelMenuListWidth */ public static final int Theme_panelMenuListWidth = 3; /** <p> @attr description Default PopupMenu style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.hu.quantumshare:popupMenuStyle */ public static final int Theme_popupMenuStyle = 2; /** Attributes that can be used with a View. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td> Boolean that controls whether a view can take focus.</td></tr> <tr><td><code>{@link #View_paddingEnd com.hu.quantumshare:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr> <tr><td><code>{@link #View_paddingStart com.hu.quantumshare:paddingStart}</code></td><td> Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.</td></tr> </table> @see #View_android_focusable @see #View_paddingEnd @see #View_paddingStart */ public static final int[] View = { 0x010100da, 0x7f010038, 0x7f010039 }; /** <p> @attr description Boolean that controls whether a view can take focus. By default the user can not move focus to a view; by setting this attribute to true the view is allowed to take focus. This value does not impact the behavior of directly calling {@link android.view.View#requestFocus}, which will always request focus regardless of this view. It only impacts where focus navigation will try to move focus. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#focusable}. @attr name android:focusable */ public static final int View_android_focusable = 0; /** <p> @attr description Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:paddingEnd */ public static final int View_paddingEnd = 2; /** <p> @attr description Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.hu.quantumshare:paddingStart */ public static final int View_paddingStart = 1; }; }
5925932a5a9b33fe543752805fd7f4468740bb8e
dc431339d2f69c4e6e31b0fc81e134334242f3ad
/src/cn/edu/zufe/web003/bean/SeatService.java
910fb738ec386380cd61c1d731ba7509fe113387
[]
no_license
zufetpb/Web003
c682e054a899d3c53a3676da7a18f2f31df609a7
ca4b7f943c2ad77a0c252ac8f152a1ddd271341d
refs/heads/master
2023-05-28T23:21:23.256348
2021-06-03T09:51:13
2021-06-03T09:51:13
373,354,063
0
0
null
null
null
null
UTF-8
Java
false
false
2,375
java
package cn.edu.zufe.web003.bean; import cn.edu.zufe.web003.database.DbUtil; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanListHandler; import java.sql.Connection; import java.sql.SQLException; import java.text.MessageFormat; import java.util.ArrayList; import java.util.List; public class SeatService { public static List<Seat> getSeats() throws SQLException { List<Seat> seats = new ArrayList<>(); Connection connection = DbUtil.getConnection(); QueryRunner runner = new QueryRunner(); String sql = "select * from t_seats"; seats = runner.query(connection, sql, new BeanListHandler<>(Seat.class)); DbUtil.closeConnection(connection); return seats; } public static boolean isUsingSeat(int id) throws SQLException { List<Seat> seats = new ArrayList<>(); Connection connection = DbUtil.getConnection(); QueryRunner runner = new QueryRunner(); String sql = MessageFormat.format("select * from t_users where id = ''{0}'' and usingSeat = false",id); seats = runner.query(connection, sql, new BeanListHandler<>(Seat.class)); if(seats.size() == 0) { return true; } return false; } public static boolean orderSeat(User user,int id) throws SQLException { Connection connection = DbUtil.getConnection(); QueryRunner runner = new QueryRunner(); String sql = "update t_users set usingSeat=?, seatId=? where id=?;"; runner.update(connection, sql, true, id, user.getId()); sql = "update t_seats set beUsing=?, userId=?, userName=? where id=?;"; runner.update(connection, sql, true, user.getId(), user.getUserName(), id); DbUtil.closeConnection(connection); return false; } public static boolean returnSeat(User user,int id) throws SQLException { Connection connection = DbUtil.getConnection(); QueryRunner runner = new QueryRunner(); String sql = "update t_users set usingSeat=?, seatId=? where id=?;"; runner.update(connection, sql, false, null, user.getId()); sql = "update t_seats set beUsing=?, userId=?, userName=? where id=?;"; runner.update(connection, sql, false, null, null, id); DbUtil.closeConnection(connection); return false; } }
[ "jackie@[email protected]" ]
1e01e901e464b8f7070f0df4145b58581e1d574e
a6d0afd3878c63e4be92881b6eee00829eb71609
/Examen1/src/Suspension.java
95d984f9356b4a50b085a1878046aa6ee5e5ca4d
[]
no_license
andresRA30/Examen
aabbad4fa2c85f745381849b72322c2793bacc82
ace19001a4f22ba2cfd7dc86a010561ee8be20db
refs/heads/master
2020-05-05T06:03:42.444304
2019-04-06T01:35:05
2019-04-06T01:35:05
179,773,613
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
public class Suspension implements Horquillas{ @Override public void soyTipo() { // TODO Auto-generated method stub System.out.println("Soy Suspenciones"); } }
afb5c01c9e9a2c65675fdcc3bd56bc7beed2e3d9
d33be4101bf202728f8325a4789e5417b533f765
/src/main/java/cn/iocoder/dashboard/modules/infra/convert/job/InfJobConvert.java
2f871361c80ad7e3b3eeb043704e52174773664c
[ "MIT" ]
permissive
zhangpengfeifei/ruoyi-vue-pro
3896a4f08b6eec22a6bdb4f756d191f2eaea7193
ce7ccd067909cb1e02a5e535e52ad470b2923b67
refs/heads/master
2023-03-27T09:30:29.083404
2021-03-14T15:08:44
2021-03-14T15:08:44
347,375,744
0
0
MIT
2021-03-14T15:08:44
2021-03-13T13:18:46
null
UTF-8
Java
false
false
1,093
java
package cn.iocoder.dashboard.modules.infra.convert.job; import cn.iocoder.dashboard.common.pojo.PageResult; import cn.iocoder.dashboard.modules.infra.controller.job.vo.job.InfJobCreateReqVO; import cn.iocoder.dashboard.modules.infra.controller.job.vo.job.InfJobExcelVO; import cn.iocoder.dashboard.modules.infra.controller.job.vo.job.InfJobRespVO; import cn.iocoder.dashboard.modules.infra.controller.job.vo.job.InfJobUpdateReqVO; import cn.iocoder.dashboard.modules.infra.dal.dataobject.job.InfJobDO; import org.mapstruct.Mapper; import org.mapstruct.factory.Mappers; import java.util.List; /** * 定时任务 Convert * * @author 芋道源码 */ @Mapper public interface InfJobConvert { InfJobConvert INSTANCE = Mappers.getMapper(InfJobConvert.class); InfJobDO convert(InfJobCreateReqVO bean); InfJobDO convert(InfJobUpdateReqVO bean); InfJobRespVO convert(InfJobDO bean); List<InfJobRespVO> convertList(List<InfJobDO> list); PageResult<InfJobRespVO> convertPage(PageResult<InfJobDO> page); List<InfJobExcelVO> convertList02(List<InfJobDO> list); }
788ab21750b14216e38cedd1d2f3fc0f281d3f08
e63896c70148240b83205018e2cbaf44316f0d13
/albums/src/main/java/com/matthew/albums/repositories/UserRepository.java
d4f2f13f3cd0e658588be7285ca4c0aa7b2751f8
[]
no_license
java-june-2021/lectureCode
8fac23688cc4f971a65e1a4eaa27b6b461761d69
00af0fb3485df4b1c502543a20860ca4e8ea3334
refs/heads/master
2023-06-15T09:16:58.926245
2021-07-13T01:17:29
2021-07-13T01:17:29
374,844,724
0
2
null
null
null
null
UTF-8
Java
false
false
355
java
package com.matthew.albums.repositories; import java.util.List; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import com.matthew.albums.models.User; @Repository public interface UserRepository extends CrudRepository<User, Long>{ List<User> findAll(); // SELECT * FROM users }
f952311da09e26d2bbf46f70109426f27efb31b1
5ff79a60dc1e59c70854e1efc4db4cde06f94dc8
/lab6/src/DatabaseReader.java
61454d80bcd3e47b6a9fc463159302e10e4ae088
[]
no_license
kaplinav/java-practise
c177367adefad58bb27a3dc538645cda49433286
90c8fbd7513c9d3db093389bc924670efbfff2cb
refs/heads/master
2020-08-16T08:15:37.904318
2019-10-30T21:13:02
2019-10-30T21:13:02
215,478,787
0
0
null
null
null
null
UTF-8
Java
false
false
1,012
java
import java.lang.Thread; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author User */ public class DatabaseReader extends DatabaseWorker { public DatabaseReader(String name, Database db) { super(name, db); } @Override public void run(){ while (true) { sendMessage("is sleeping"); //System.err.println(super.getName() + " is sleeping"); sleepSomeTime(); sendMessage("wants to read"); //System.err.println(super.getName() + " wants to read"); db.startRead(); sendMessage("is reading"); //System.err.println(super.getName() + " is reading"); Database.doIO(); db.endRead(); sendMessage("is done reading"); //System.err.println(super.getName() + " is reading"); } } }
5349a9ed018fbadcc056b24768d7203afce8e991
4bdf74d8dbb210d29db0fdf1ae97aad08929612c
/data_test/79877/Game.java
27c3552f5fceb01ac3f25f7d5de4d161133bb91e
[]
no_license
huyenhuyen1204/APR_data
cba03642f68ce543690a75bcefaf2e0682df5e7e
cb9b78b9e973202e9945d90e81d1bfaef0f9255c
refs/heads/master
2023-05-13T21:52:20.294382
2021-06-02T17:52:30
2021-06-02T17:52:30
373,250,240
0
0
null
null
null
null
UTF-8
Java
false
false
1,136
java
import java.util.ArrayList; public class Game { private Board board = new Board(); private ArrayList<Move> moveHistory = new ArrayList<>(); public Game(Board board) { this.board = board; } public Board getBoard() { return board; } public void setBoard(Board board) { this.board = board; } public ArrayList<Move> getMoveHistory() { return moveHistory; } public void setMoveHistory(ArrayList<Move> moveHistory) { this.moveHistory = moveHistory; } public void movePiece(Piece piece, int x, int y) { if (board.validate(x, y)) { if (piece.canMove(board, x, y)) { if (board.getPieces() != null) { Move move = new Move(piece.getX(), x, piece.getY(), y, piece, board.getAt(x, y)); moveHistory.add(move); } else { Move move = new Move(piece.getX(), x, piece.getY(), y, piece); moveHistory.add(move); } piece.setX(x); piece.setY(y); } } } }
ae9166435eb0184b932333735208eb69cf8b4f60
d7051eb86429b3174ba10ae339ff1cabea42d6f1
/Logical Questions/src/logicalQuestions/PrintINDEX.java
9071f6c74a4c812768b135c758a6a35ae332f022
[]
no_license
jyothipgk315/Logical-Questions
ffd997d1d82437a342273ab993a00f3f74b92863
66991428abde75840590ab17b37da2eda1b8532d
refs/heads/master
2020-09-20T20:28:40.936163
2019-11-28T06:22:03
2019-11-28T06:22:03
224,583,692
0
0
null
null
null
null
UTF-8
Java
false
false
672
java
package logicalQuestions; import java.util.Scanner; public class PrintINDEX { public static void main(String[] args) { // Print their index else print -1. Scanner s=new Scanner(System.in); int n=s.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++) { a[i]=s.nextInt(); } System.out.println("enter the number to be searched :"); int q=s.nextInt(); int j ,i,f=0; for( i=0;i<n;i++) { if(a[i]==q) { j=i; f=1; break; } else { f=0; } } if(f!=0) { System.out.println(" index"+i); } else { System.out.println("-1"); } } }
[ "USER@FACE-83" ]
USER@FACE-83
84e0bff890b2461ae0bf0127d138d8e556495131
289b142ed19347f14ca267f21ca60130b71282cc
/singleton/src/com/reflection/EnumSingleton.java
c6966d6a761db9b502678f967d5a18498e3e853f
[]
no_license
tejpratapkus/design-patterns
ea8cad2ad6555f862065247b2b2043de87219b00
f9a24895087fd7f18754a3d01614abef61874217
refs/heads/master
2022-07-17T19:55:11.660937
2020-05-19T17:42:33
2020-05-19T17:42:33
264,990,015
0
0
null
null
null
null
UTF-8
Java
false
false
65
java
package com.reflection; public enum EnumSingleton { INSTANCE }
5cd29e77024872df52e59e4314b1599449fbc075
c779e8e6d1474387a25c80e5702110c7ab3ec7bd
/atcrowdfunding07-member-parent/atcrowdfunding13-member-project-consumer/src/main/java/com/atguigu/crowd/config/OSSProperties.java
445a7199544345e0159ff670f1b7fa7b9c46b77d
[]
no_license
java-jxg/atggcrowdfunding
c752cbde7a68130fc2d150325b2e77d962ed02d7
bab4eaa1dc1c3f69fd35043c666cea926a555c13
refs/heads/master
2022-11-29T11:19:27.214229
2020-08-15T02:05:42
2020-08-15T02:05:42
287,657,374
0
0
null
null
null
null
UTF-8
Java
false
false
545
java
package com.atguigu.crowd.config; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @Data @NoArgsConstructor @AllArgsConstructor @Component @ConfigurationProperties(prefix = "aliyun.oss") public class OSSProperties { private String endPoint; private String bucketName; private String accessKeyId; private String accessKeySecret; private String bucketDomain; }
18a7da772285ef2c941475e9d5f2f42eda36bdb8
b7e3c720e41b62f9fb5103ca8fb0b5e4eb1984cc
/crm02/src/main/java/com/xlh/crm/dto/ActManageListRespDTO.java
febc4b67911ab83f33b5aa1f708e6818886152a4
[]
no_license
13661892653/crm
dbf30f5ec2da92640883edfe32417a07c3dc5cf5
9df1f863cf88191ac70730c5fb0b232e9d72f70a
refs/heads/master
2021-09-18T10:30:10.519700
2018-07-13T01:59:43
2018-07-13T01:59:43
86,162,620
0
0
null
null
null
null
UTF-8
Java
false
false
1,410
java
package com.xlh.crm.dto; import java.util.List; /** * Created by ysl on 2017/5/26. */ public class ActManageListRespDTO { /*查询总记录数*/ private int totalRecCount = 0; /*总页数,由计算得出*/ private int totalPageCount = 0; /*请求参数返回前端*/ private PageReqDTO reqParams; /*活动列表*/ private List<ActShowDTO> actListContents; /*单个活动信息*/ private ActShowDTO actSglContents; public int getTotalRecCount() { return totalRecCount; } public void setTotalRecCount(int totalRecCount) { this.totalRecCount = totalRecCount; } public int getTotalPageCount() { return totalPageCount; } public void setTotalPageCount(int totalPageCount) { this.totalPageCount = totalPageCount; } public PageReqDTO getReqParams() { return reqParams; } public void setReqParams(PageReqDTO reqParams) { this.reqParams = reqParams; } public List<ActShowDTO> getActListContents() { return actListContents; } public void setActListContents(List<ActShowDTO> actListContents) { this.actListContents = actListContents; } public ActShowDTO getActSglContents() { return actSglContents; } public void setActSglContents(ActShowDTO actSglContents) { this.actSglContents = actSglContents; } }
0240cdec10e3992c85027e7ed7dd19dfa2164dfd
e34b2fbb5e0919f39b98dcb75e9acbff84917cf8
/src/main/java/com/example/demo/SignUpController.java
ed1104350fddbc7d208332b878ec9ca182573853
[]
no_license
SanjaySinghChauhan/demo
446e4081424f1a631144390da5fc640b0d3c957d
2fe65906f9aa68a1d49b81a6f9e900e60f32ad51
refs/heads/master
2022-05-17T09:52:11.591385
2019-07-04T07:21:23
2019-07-04T07:21:23
194,852,429
0
0
null
null
null
null
UTF-8
Java
false
false
12,242
java
package com.example.demo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import com.example.demo.Entity.User; import com.example.demo.Service.ISignUpService; @RestController @CrossOrigin(origins = "*", allowedHeaders = "*") public class SignUpController { @Autowired ISignUpService signUpService; @RequestMapping("/hello") public String hello(){ return"Hello!"; } // @CrossOrigin(origins = "http://localhost:4200") @RequestMapping(value= "/SignUp", method=RequestMethod.POST) @ResponseBody //String SignUp(@PathVariable("userEmail") String email, @PathVariable("Password") String pass) { String SignUp(@RequestBody User user,BindingResult bindingResult) { //String SignUp(@RequestParam("userEmail") String email, @RequestParam("password") String pass) { if(user.getUserEmail() !="" && user.getUserPassword() !="") { signUpService.signUpFormSubmition(user); System.out.println(user.getUserEmail() + " "+ user.getUserPassword()); } //signUpService.signUpFormSubmition(user); return "Its started"; } @CrossOrigin(origins = "http://localhost:4200") @RequestMapping(value= "/topics",produces = {MediaType.APPLICATION_JSON_VALUE}, method=RequestMethod.GET) String topics () { //Object o = "{'friends': ['Michael', 'Tom', 'Daniel', 'John', 'Nick']}"; return "[\r\n" + " {\r\n" + " \"id\": 1,\r\n" + " \"name\": \"Leanne Graham\",\r\n" + " \"username\": \"Bret\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Kulas Light\",\r\n" + " \"suite\": \"Apt. 556\",\r\n" + " \"city\": \"Gwenborough\",\r\n" + " \"zipcode\": \"92998-3874\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"-37.3159\",\r\n" + " \"lng\": \"81.1496\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"1-770-736-8031 x56442\",\r\n" + " \"website\": \"hildegard.org\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Romaguera-Crona\",\r\n" + " \"catchPhrase\": \"Multi-layered client-server neural-net\",\r\n" + " \"bs\": \"harness real-time e-markets\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 2,\r\n" + " \"name\": \"Ervin Howell\",\r\n" + " \"username\": \"Antonette\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Victor Plains\",\r\n" + " \"suite\": \"Suite 879\",\r\n" + " \"city\": \"Wisokyburgh\",\r\n" + " \"zipcode\": \"90566-7771\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"-43.9509\",\r\n" + " \"lng\": \"-34.4618\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"010-692-6593 x09125\",\r\n" + " \"website\": \"anastasia.net\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Deckow-Crist\",\r\n" + " \"catchPhrase\": \"Proactive didactic contingency\",\r\n" + " \"bs\": \"synergize scalable supply-chains\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 3,\r\n" + " \"name\": \"Clementine Bauch\",\r\n" + " \"username\": \"Samantha\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Douglas Extension\",\r\n" + " \"suite\": \"Suite 847\",\r\n" + " \"city\": \"McKenziehaven\",\r\n" + " \"zipcode\": \"59590-4157\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"-68.6102\",\r\n" + " \"lng\": \"-47.0653\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"1-463-123-4447\",\r\n" + " \"website\": \"ramiro.info\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Romaguera-Jacobson\",\r\n" + " \"catchPhrase\": \"Face to face bifurcated interface\",\r\n" + " \"bs\": \"e-enable strategic applications\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 4,\r\n" + " \"name\": \"Patricia Lebsack\",\r\n" + " \"username\": \"Karianne\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Hoeger Mall\",\r\n" + " \"suite\": \"Apt. 692\",\r\n" + " \"city\": \"South Elvis\",\r\n" + " \"zipcode\": \"53919-4257\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"29.4572\",\r\n" + " \"lng\": \"-164.2990\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"493-170-9623 x156\",\r\n" + " \"website\": \"kale.biz\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Robel-Corkery\",\r\n" + " \"catchPhrase\": \"Multi-tiered zero tolerance productivity\",\r\n" + " \"bs\": \"transition cutting-edge web services\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 5,\r\n" + " \"name\": \"Chelsey Dietrich\",\r\n" + " \"username\": \"Kamren\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Skiles Walks\",\r\n" + " \"suite\": \"Suite 351\",\r\n" + " \"city\": \"Roscoeview\",\r\n" + " \"zipcode\": \"33263\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"-31.8129\",\r\n" + " \"lng\": \"62.5342\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"(254)954-1289\",\r\n" + " \"website\": \"demarco.info\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Keebler LLC\",\r\n" + " \"catchPhrase\": \"User-centric fault-tolerant solution\",\r\n" + " \"bs\": \"revolutionize end-to-end systems\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 6,\r\n" + " \"name\": \"Mrs. Dennis Schulist\",\r\n" + " \"username\": \"Leopoldo_Corkery\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Norberto Crossing\",\r\n" + " \"suite\": \"Apt. 950\",\r\n" + " \"city\": \"South Christy\",\r\n" + " \"zipcode\": \"23505-1337\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"-71.4197\",\r\n" + " \"lng\": \"71.7478\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"1-477-935-8478 x6430\",\r\n" + " \"website\": \"ola.org\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Considine-Lockman\",\r\n" + " \"catchPhrase\": \"Synchronised bottom-line interface\",\r\n" + " \"bs\": \"e-enable innovative applications\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 7,\r\n" + " \"name\": \"Kurtis Weissnat\",\r\n" + " \"username\": \"Elwyn.Skiles\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Rex Trail\",\r\n" + " \"suite\": \"Suite 280\",\r\n" + " \"city\": \"Howemouth\",\r\n" + " \"zipcode\": \"58804-1099\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"24.8918\",\r\n" + " \"lng\": \"21.8984\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"210.067.6132\",\r\n" + " \"website\": \"elvis.io\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Johns Group\",\r\n" + " \"catchPhrase\": \"Configurable multimedia task-force\",\r\n" + " \"bs\": \"generate enterprise e-tailers\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 8,\r\n" + " \"name\": \"Nicholas Runolfsdottir V\",\r\n" + " \"username\": \"Maxime_Nienow\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Ellsworth Summit\",\r\n" + " \"suite\": \"Suite 729\",\r\n" + " \"city\": \"Aliyaview\",\r\n" + " \"zipcode\": \"45169\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"-14.3990\",\r\n" + " \"lng\": \"-120.7677\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"586.493.6943 x140\",\r\n" + " \"website\": \"jacynthe.com\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Abernathy Group\",\r\n" + " \"catchPhrase\": \"Implemented secondary concept\",\r\n" + " \"bs\": \"e-enable extensible e-tailers\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 9,\r\n" + " \"name\": \"Glenna Reichert\",\r\n" + " \"username\": \"Delphine\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Dayna Park\",\r\n" + " \"suite\": \"Suite 449\",\r\n" + " \"city\": \"Bartholomebury\",\r\n" + " \"zipcode\": \"76495-3109\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"24.6463\",\r\n" + " \"lng\": \"-168.8889\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"(775)976-6794 x41206\",\r\n" + " \"website\": \"conrad.com\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Yost and Sons\",\r\n" + " \"catchPhrase\": \"Switchable contextually-based project\",\r\n" + " \"bs\": \"aggregate real-time technologies\"\r\n" + " }\r\n" + " },\r\n" + " {\r\n" + " \"id\": 10,\r\n" + " \"name\": \"Clementina DuBuque\",\r\n" + " \"username\": \"Moriah.Stanton\",\r\n" + " \"email\": \"[email protected]\",\r\n" + " \"address\": {\r\n" + " \"street\": \"Kattie Turnpike\",\r\n" + " \"suite\": \"Suite 198\",\r\n" + " \"city\": \"Lebsackbury\",\r\n" + " \"zipcode\": \"31428-2261\",\r\n" + " \"geo\": {\r\n" + " \"lat\": \"-38.2386\",\r\n" + " \"lng\": \"57.2232\"\r\n" + " }\r\n" + " },\r\n" + " \"phone\": \"024-648-3804\",\r\n" + " \"website\": \"ambrose.net\",\r\n" + " \"company\": {\r\n" + " \"name\": \"Hoeger LLC\",\r\n" + " \"catchPhrase\": \"Centralized empowering task-force\",\r\n" + " \"bs\": \"target end-to-end models\"\r\n" + " }\r\n" + " }\r\n" + "]"; } }
d2027b0995d120d3e3b894d0126a1c7b17be1f03
fffa852761f5f5ba27e7531d98165ed4653890e8
/hometasks/src/calculator/CalculatorController.java
a828b8fce6ced0c80bbad1439287d1ae95816ef2
[]
no_license
z0976190100/Homebrew
184dbec1cd3ed0c95cfcab268cb4c83b9f2755f0
195d9e712f2a69e5f9fe1045c17fc8792aa1fad7
refs/heads/master
2021-09-05T17:39:14.485547
2018-01-30T00:33:53
2018-01-30T00:33:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,639
java
package calculator; import java.math.BigDecimal; import java.text.DecimalFormat; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; import static calculator.BinaryOps.*; import static calculator.CalculatorStack.eStack; import static calculator.InputOutput.locale; class CalculatorController { // registration of binary ops static Map<String, BinaryOps> binaryOperationMap = new HashMap<>(); static Map<String, UtilOps> utilitaryOpsMap = new HashMap<>(); static { binaryOperationMap.put("+", ADDING); binaryOperationMap.put("-", SUBSTRACTION); binaryOperationMap.put("/", DIVISION); binaryOperationMap.put("*", MULTIPLICATION); } static void startCalc() { eStack = new LinkedList<>(); System.out.println("0"); DecimalFormat df = new DecimalFormat(); df.setParseBigDecimal(true); locale = "ua"; getOperandX(); } static void getOperandX() { String par = InputOutput.getUserInput(); try { BigDecimal opX = new BigDecimal(par); eStack.push(opX); dispatchOperator(); } catch (NumberFormatException e) { System.out.println("wrong input, NaN : "); getOperandX(); } } static void getOperandY() { String par = InputOutput.getUserInput(); try { BigDecimal opY = new MyBigDecimal(par); eStack.push(opY); return; } catch (NumberFormatException e) { System.out.println("wrong input, NaN: "); getOperandY(); } } static void dispatchOperator() { String par = InputOutput.getUserInputOperator(); // if unary // if binary if (binaryOperationMap.containsKey(par)) { binaryOperationMap.get(par).getBiOp().alterEvaluate(); dispatchOperator(); } switch (par) { case "d": eStack.pop(); getOperandX(); //clear last input; break; case "c": startCalc(); break; case "=": // result output, clear eStack, put result on top, any input wait state break; case "out": System.exit(0); break; default: System.out.println("wrong input, operator is required."); dispatchOperator(); } } static BigDecimal binaryCase() { getOperandY(); return eStack.pop(); } }
6c11c8fd2a9a5860f8a044ee7977d0470e42aaa1
7dcfcd03c184accdb1d47458ed6d867dff9e431a
/app/src/main/java/com/secretk/move/ui/fragment/MainBlueGzFragment.java
7f9dcd83fa5f3d60618bbaebaae1c8d12eeaa5b0
[]
no_license
ltg263/move2.0
ba14143f8db60f0c9f3f140d3d6afcca27c0497d
4291f3f5e206f3013d36a6cb9e2f0fc08ff4d10f
refs/heads/master
2020-03-29T05:39:21.095868
2018-09-21T06:59:08
2018-09-21T06:59:08
149,592,083
0
0
null
null
null
null
UTF-8
Java
false
false
8,094
java
package com.secretk.move.ui.fragment; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.ScrollView; import android.widget.TextView; import com.scwang.smartrefresh.layout.SmartRefreshLayout; import com.scwang.smartrefresh.layout.api.RefreshLayout; import com.scwang.smartrefresh.layout.listener.OnLoadMoreListener; import com.scwang.smartrefresh.layout.listener.OnRefreshListener; import com.secretk.move.R; import com.secretk.move.apiService.HttpCallBackImpl; import com.secretk.move.apiService.RetrofitUtil; import com.secretk.move.apiService.RxHttpParams; import com.secretk.move.base.LazyFragment; import com.secretk.move.baseManager.Constants; import com.secretk.move.bean.CommonListBase; import com.secretk.move.listener.ItemClickListener; import com.secretk.move.ui.activity.LoginHomeActivity; import com.secretk.move.ui.adapter.MainRfFragmentRecyclerAdapter; import com.secretk.move.utils.IntentUtil; import com.secretk.move.utils.LogUtil; import com.secretk.move.utils.MD5; import com.secretk.move.utils.PolicyUtil; import com.secretk.move.utils.SharedUtils; import com.secretk.move.view.RecycleScrollView; import org.json.JSONException; import org.json.JSONObject; import butterknife.BindView; /** * 作者: litongge * 时间: 2018/6/8 13:46 * 邮箱;[email protected] * 描述:主页 --发现 */ public class MainBlueGzFragment extends LazyFragment implements ItemClickListener { @BindView(R.id.recycler) RecyclerView recycler; @BindView(R.id.refreshLayout) SmartRefreshLayout refreshLayout; @BindView(R.id.tv_icon) ImageView tvIcon; @BindView(R.id.tv_name) TextView tvName; @BindView(R.id.tv_submit) TextView tvSubmit; @BindView(R.id.rl_top_theme) RelativeLayout rlTopTheme; private MainRfFragmentRecyclerAdapter adapter; int pageIndex = 1; boolean showFragment = false; String tokenLs = ""; @BindView(R.id.rcv) RecycleScrollView rcv; @Override public int setFragmentView() { return R.layout.fragment_main_gz; } @Override public void initViews() { setVerticalManager(recycler); initRefresh(); adapter = new MainRfFragmentRecyclerAdapter(getActivity()); recycler.setAdapter(adapter); adapter.setItemListener(this); // rlTopTheme.setVisibility(View.VISIBLE); // tvIcon.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.ic_go_login)); // tvName.setVisibility(View.VISIBLE); // tvSubmit.setText(getActivity().getResources().getString(R.string.go_login)); } private void initRefresh() { /** * 下拉刷新 */ refreshLayout.setOnRefreshListener(new OnRefreshListener() { @Override public void onRefresh(RefreshLayout refreshlayout) { pageIndex = 1; onFirstUserVisible(); } }); refreshLayout.setOnLoadMoreListener(new OnLoadMoreListener() { @Override public void onLoadMore(RefreshLayout refreshLayout) { onFirstUserVisible(); } }); tvSubmit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if(isLoginZt){ pageIndex=1; onFirstUserVisible(); }else { IntentUtil.startActivity(LoginHomeActivity.class); } } }); } public void dblclickRefresh() { if (getUserVisibleHint()) { if(rcv.getScrollY()!=0){ rcv.fullScroll(ScrollView.FOCUS_UP); } refreshLayout.autoRefresh(); } } @Override public void onFirstUserVisible() { tokenLs = token; if (!isLoginZt) { showFragment = true; refreshLayout.setVisibility(View.GONE); rlTopTheme.setVisibility(View.VISIBLE); tvName.setVisibility(View.VISIBLE); convertView.findViewById(R.id.no_data).setVisibility(View.VISIBLE); tvIcon.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.ic_go_login)); tvSubmit.setText(getActivity().getResources().getString(R.string.go_login)); tvName.setVisibility(View.VISIBLE); tvName.setText("您尚未登陆,无法预览已关注内容"); return; } if (!showFragment) { loadingDialog.show(); } showFragment = true; final String token = SharedUtils.singleton().get("token", ""); JSONObject node = new JSONObject(); try { node.put("token", token); node.put("pageIndex", pageIndex++); node.put("pageSize", Constants.PAGE_SIZE); } catch (JSONException e) { e.printStackTrace(); } RxHttpParams params = new RxHttpParams.Build() .url(Constants.MAIN_FOLLOW) .addQuery("policy", PolicyUtil.encryptPolicy(node.toString())) .addQuery("sign", MD5.Md5(node.toString())) .build(); RetrofitUtil.request(params, CommonListBase.class, new HttpCallBackImpl<CommonListBase>() { @Override public void onCompleted(CommonListBase bean) { CommonListBase.DataBean.DetailsBean detailsBean = bean.getData().getFollows(); LogUtil.w("detailsBean.getCurPageNum():"+detailsBean.getCurPageNum()); LogUtil.w("detailsBean.getPageCount():"+detailsBean.getPageCount()); if (detailsBean.getCurPageNum() == detailsBean.getPageCount()) { refreshLayout.finishLoadMoreWithNoMoreData(); } if (bean.getData().getFollows().getRows() == null && pageIndex == 2) { convertView.findViewById(R.id.no_data).setVisibility(View.VISIBLE); tvIcon.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.ic_not_gznr)); tvName.setVisibility(View.INVISIBLE); tvSubmit.setText(getActivity().getResources().getString(R.string.not_refresh)); refreshLayout.setVisibility(View.GONE); return; } if(bean.getData().getFollows().getRows() == null){ refreshLayout.finishLoadMoreWithNoMoreData(); return; } refreshLayout.setVisibility(View.VISIBLE); convertView.findViewById(R.id.no_data).setVisibility(View.GONE); if (pageIndex > 2) { adapter.setAddData(detailsBean.getRows()); } else { adapter.setData(detailsBean.getRows()); } } @Override public void onFinish() { super.onFinish(); if (refreshLayout.isEnableRefresh()) { refreshLayout.finishRefresh(); } if (refreshLayout.isEnableLoadMore()) { refreshLayout.finishLoadMore(); } loadingDialog.dismiss(); } }); } @Override public void onResume() { super.onResume(); if (showFragment && !tokenLs.equals(token)) { pageIndex = 1; onFirstUserVisible(); } } @Override public void onItemClick(View view, int postion) { if (isLoginZt) { int postId = adapter.getDataIndex(postion).getPostId(); int postType = adapter.getDataIndex(postion).getPostType(); IntentUtil.go2DetailsByType(postType, String.valueOf(postId)); } else { IntentUtil.startActivity(LoginHomeActivity.class); } } @Override public void onItemLongClick(View view, int postion) { } }
dd5e8fc03ea383247305cb15bd82227776467312
450c4ea31ac34027f21747ad46acecf0f7b2ade6
/compare-comply/src/main/java/com/ibm/watson/developer_cloud/compare_comply/v1/model/ClassifyElementsOptions.java
35ef2785f1facc95bb172117bbbefc010c0ea98c
[ "Apache-2.0" ]
permissive
amanoese/java-sdk
b06a16de994607b38cc7d434c1a42cb0345556d8
5d1bee87ed882fdbb5de3d97564779aa7e97fb38
refs/heads/master
2020-04-17T03:09:39.967828
2019-01-16T20:53:13
2019-01-16T20:53:13
166,169,610
0
0
Apache-2.0
2019-01-17T06:03:10
2019-01-17T06:03:09
null
UTF-8
Java
false
false
5,290
java
/* * Copyright 2018 IBM Corp. 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 agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ package com.ibm.watson.developer_cloud.compare_comply.v1.model; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import com.ibm.watson.developer_cloud.service.model.GenericModel; import com.ibm.watson.developer_cloud.util.Validator; /** * The classifyElements options. */ public class ClassifyElementsOptions extends GenericModel { /** * The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, * the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the * standalone methods as well as to the methods' use in batch-processing requests. */ public interface ModelId { /** contracts. */ String CONTRACTS = "contracts"; /** tables. */ String TABLES = "tables"; } private InputStream file; private String filename; private String modelId; private String fileContentType; /** * Builder. */ public static class Builder { private InputStream file; private String filename; private String modelId; private String fileContentType; private Builder(ClassifyElementsOptions classifyElementsOptions) { file = classifyElementsOptions.file; filename = classifyElementsOptions.filename; modelId = classifyElementsOptions.modelId; fileContentType = classifyElementsOptions.fileContentType; } /** * Instantiates a new builder. */ public Builder() { } /** * Instantiates a new builder with required properties. * * @param file the file */ public Builder(InputStream file) { this.file = file; } /** * Builds a ClassifyElementsOptions. * * @return the classifyElementsOptions */ public ClassifyElementsOptions build() { return new ClassifyElementsOptions(this); } /** * Set the file. * * @param file the file * @return the ClassifyElementsOptions builder */ public Builder file(InputStream file) { this.file = file; return this; } /** * Set the filename. * * @param filename the filename * @return the ClassifyElementsOptions builder */ public Builder filename(String filename) { this.filename = filename; return this; } /** * Set the modelId. * * @param modelId the modelId * @return the ClassifyElementsOptions builder */ public Builder modelId(String modelId) { this.modelId = modelId; return this; } /** * Set the fileContentType. * * @param fileContentType the fileContentType * @return the ClassifyElementsOptions builder */ public Builder fileContentType(String fileContentType) { this.fileContentType = fileContentType; return this; } /** * Set the file. * * @param file the file * @return the ClassifyElementsOptions builder * * @throws FileNotFoundException if the file could not be found */ public Builder file(File file) throws FileNotFoundException { this.file = new FileInputStream(file); this.filename = file.getName(); return this; } } private ClassifyElementsOptions(Builder builder) { Validator.notNull(builder.file, "file cannot be null"); file = builder.file; filename = builder.filename; modelId = builder.modelId; fileContentType = builder.fileContentType; } /** * New builder. * * @return a ClassifyElementsOptions builder */ public Builder newBuilder() { return new Builder(this); } /** * Gets the file. * * The file to classify. * * @return the file */ public InputStream file() { return file; } /** * Gets the filename. * * The filename for file. * * @return the filename */ public String filename() { return filename; } /** * Gets the modelId. * * The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, * the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the * standalone methods as well as to the methods' use in batch-processing requests. * * @return the modelId */ public String modelId() { return modelId; } /** * Gets the fileContentType. * * The content type of file. Values for this parameter can be obtained from the HttpMediaType class. * * @return the fileContentType */ public String fileContentType() { return fileContentType; } }
85bd3104ff12fb4691f934ab2f420de6508c9cb7
80d6db61cda1c3c1c47edceda6b83f75b5e685fa
/src/main/java/com/kodilla/testing/shape/CircleClass.java
f138d5aa6fbd623bf0cb1c7a34b93e6aed12a628
[]
no_license
Magdalenkie/JUnit_TestFigures
023c789ba4039e3623e62c3d5039bdb242513f38
31b8069c4962fefab02cfc99e8b51429f8dc99ea
refs/heads/master
2020-03-21T21:30:58.191757
2018-06-28T21:05:49
2018-06-28T21:05:49
139,067,538
0
0
null
null
null
null
UTF-8
Java
false
false
389
java
package com.kodilla.testing.shape; public class CircleClass implements Shape { private String name; private int field; public CircleClass(String name, int field) { this.name = name; this.field = field; } @Override public String getShapeName() { return name; } @Override public int getField() { return field; } }
bf8776254357532d6ca0b067555186d9698ddbe2
c6c29059dbb417e403e97fd9a7c9a7c06093b1e4
/src/test/java/com/lawbase/config/LawbaseAuditorAwareTest.java
7f1b4317a767ebf2c03f18eb2d0d7a9c0e572e74
[]
no_license
KnightApu/Lawbase
51fc3f397ce164cdb177c0139ab9f728374b5768
e149545f351fe1d85737e484ed1ec4ec234dba8e
refs/heads/master
2021-05-26T07:12:25.404161
2018-10-04T04:12:25
2018-10-04T04:12:25
127,845,966
0
0
null
null
null
null
UTF-8
Java
false
false
1,773
java
package com.lawbase.config; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.stub; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.data.domain.AuditorAware; import org.springframework.security.core.context.SecurityContext; import org.springframework.test.context.TestPropertySource; import org.springframework.test.context.junit4.SpringRunner; import com.adhocmaster.context.SecurityContextFacade; import com.adhocmaster.mongo.user.MongoUserRepository; import com.adhocmaster.mongo.user.User; @RunWith(SpringRunner.class) @SpringBootTest @TestPropertySource( locations = "classpath:application-test.properties" ) public class LawbaseAuditorAwareTest { private String testUsername = "test1482922679289"; private SecurityContextFacade mockSecurityContextFacade; private SecurityContext mockSecurityContext; @Autowired private MongoUserRepository userRepository; @Autowired AuditorAware<User> auditorAware; AuditorAware<User> mockAuditorAware; @Before public void setUp() throws Exception { mockSecurityContextFacade = mock(SecurityContextFacade.class); mockSecurityContext = mock(SecurityContext.class); stub(mockSecurityContextFacade.getContext()).toReturn(mockSecurityContext); //stub( auditorAware.getCurrentAuditor() ).toReturn( userRepository.findByUserName( testUsername ) ); } @Test public void test() { System.out.println( auditorAware ); System.out.println( auditorAware.getCurrentAuditor() ); } }
30896fff4c90f9f8374e5d96536fe19ba815cba3
9f60bab6d17875c49aac9394307669e532802892
/app/src/androidTest/java/com/example/a2lab/ExampleInstrumentedTest.java
8dc9897dc615ef130d220e9b8cb3748efad68dcc
[]
no_license
EmilijaDom/2lab
88b5a0848c07f46b2a387fbe5936d6ced18563d3
1754be5686e47f91e35937d85693b3216f249d2f
refs/heads/master
2023-04-22T18:50:59.016091
2021-04-28T15:59:04
2021-04-28T15:59:04
362,527,965
0
0
null
null
null
null
UTF-8
Java
false
false
748
java
package com.example.a2lab; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.example.a2lab", appContext.getPackageName()); } }
051f7294aeba4a1e19147031fa4c645a70e559d6
e8bd4806d8753efc8bc836bcd830eadf6ce17c39
/src/com/yc/service/impl/BrandService.java
e77f6b8c12710688a629678ab48ba5896f277183
[]
no_license
jiangbo12345/v1
43d6d343dd68ce1ac258def0684e09cea9661cb9
1ac6c02446f652fab2fa8dbd771e35c0608f810b
refs/heads/master
2021-01-16T01:02:47.177149
2015-03-16T02:31:01
2015-03-16T02:31:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
484
java
package com.yc.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.yc.dao.orm.commons.GenericDao; import com.yc.entity.Brand; import com.yc.service.IBrandService; @Component public class BrandService extends GenericService<Brand> implements IBrandService { @Autowired GenericDao<Brand> brandService; @Override GenericDao<Brand> getDao() { return brandService; } }
73efe029c7e81769ed016f4308354d96e6610c2c
13a6304fb513e319ae0cad1326d9411360d86b53
/MyButton.java
5091c7e5f8817d11d326b5c9fb51116cc5196486
[]
no_license
pramod1997/MINI-OS
ad3c3c38b8755e06271eae9a546e8e4afbf50854
9441394d29c707c2e87283799bb235f9c770c657
refs/heads/master
2020-06-14T22:14:35.179118
2016-12-02T14:54:27
2016-12-02T14:54:27
75,404,390
1
0
null
null
null
null
UTF-8
Java
false
false
9,202
java
package os; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Frame; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Insets; import java.awt.RenderingHints; import java.awt.Shape; import java.awt.Stroke; import java.awt.event.ComponentEvent; import java.awt.event.ComponentListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.geom.Area; import java.awt.geom.Rectangle2D; import java.awt.geom.RoundRectangle2D; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.UIManager; public class MyButton extends JButton implements ComponentListener, KeyListener { protected static final int DEFAULT_WIDTH = 100; protected static final int DEFAULT_HEIGHT = 40; protected static final Insets INSETS_MARGIN = new Insets(2, 5, 2, 5); protected static final int BORDER_WIDTH = 5; protected double m_dWidthFill = 0d; protected double m_dHeightFill = 0d; protected Shape m_shape = null; protected Area m_areaFill = null; protected Area m_areaDraw = null; protected RoundRectangle2D m_rrect2dFill = null; protected Rectangle2D m_rect2dAFill = null; protected Rectangle2D m_rect2dBFill = null; protected double m_dWidthDraw = 0d; protected double m_dHeightDraw = 0d; protected RoundRectangle2D m_rrect2dDraw = null; protected Rectangle2D m_rect2dADraw = null; protected Rectangle2D m_rect2dBDraw = null; protected int m_nStringWidthMax = 0; protected int m_nMinWidth = 0; // ////////////////////////////////////////////// public MyButton(String strLabel) { this(strLabel, 0); } // ////////////////////////////////////////////// public MyButton(String strLabel, int nMinWidth) { super(strLabel); setFont(new Font("Vardana", Font.BOLD, 10)); m_nMinWidth = nMinWidth; this.setContentAreaFilled(false); this.setMargin(INSETS_MARGIN); this.setFocusPainted(false); this.addComponentListener(this); this.addKeyListener(this); // determine the buttons initial size ---------------------- // WARNING: Use UIManager font, else font here is not dynamic Font font = (Font) UIManager.get("Button.font"); Frame frame = JOptionPane.getRootFrame(); FontMetrics fm = frame.getFontMetrics(font); m_nStringWidthMax = fm.stringWidth(this.getText()); m_nStringWidthMax = Math.max(m_nStringWidthMax, fm.stringWidth(this .getText())); // WARNING: use getMargin. it refers to dist btwn text and border. // also use getInsets. it refers to the width of the border int nWidth = Math.max(m_nMinWidth, m_nStringWidthMax + this.getMargin().left + this.getInsets().left + this.getMargin().right + this.getInsets().right); this.setPreferredSize(new Dimension(nWidth, DEFAULT_HEIGHT)); // set the initial draw and fill dimensions ------------------ m_dWidthFill = (double) this.getPreferredSize().width - 1; m_dHeightFill = (double) this.getPreferredSize().height - 1; m_dWidthDraw = ((double) this.getPreferredSize().width - 1) - (BORDER_WIDTH - 1); m_dHeightDraw = ((double) this.getPreferredSize().height - 1) - (BORDER_WIDTH - 1); this.setShape(); } // ////////////////////////////////////////////// public void setButtonText(String strText) { super.setText(strText); int nWidth = Math.max(m_nMinWidth, m_nStringWidthMax + this.getInsets().left + this.getInsets().right); int nHeight = Math.max(0, this.getPreferredSize().height); this.setPreferredSize(new Dimension(nWidth, nHeight)); m_dWidthFill = this.getBounds().width - 1; m_dHeightFill = this.getBounds().height - 1; if (m_dWidthFill <= 0 || m_dHeightFill <= 0) { m_dWidthFill = (double) this.getPreferredSize().width - 1; m_dHeightFill = (double) this.getPreferredSize().height - 1; } m_dWidthDraw = m_dWidthFill - (BORDER_WIDTH - 1); m_dHeightDraw = m_dHeightFill - (BORDER_WIDTH - 1); this.setShape(); } // ////////////////////////////////////////////// protected void setShape() { // area -------------------------------------- double dArcLengthFill = Math.min(m_dWidthFill, m_dHeightFill); double dOffsetFill = dArcLengthFill / 2; m_rrect2dFill = new RoundRectangle2D.Double(0d, 0d, m_dWidthFill, m_dHeightFill, dArcLengthFill, dArcLengthFill); // WARNING: arclength and archeight are divided by 2 // when they get into the roundedrectangle shape m_rect2dAFill = new Rectangle2D.Double(0d, dOffsetFill, m_dWidthFill - dOffsetFill, m_dHeightFill - dOffsetFill); m_rect2dBFill = new Rectangle2D.Double(dOffsetFill, 0d, m_dWidthFill - dOffsetFill, m_dHeightFill - dOffsetFill); m_areaFill = new Area(m_rrect2dFill); m_areaFill.add(new Area(m_rect2dAFill)); m_areaFill.add(new Area(m_rect2dBFill)); // border ------------------------------------------------ double dArcLengthDraw = Math.min(m_dWidthDraw, m_dHeightDraw); double dOffsetDraw = dArcLengthDraw / 2; m_rrect2dDraw = new RoundRectangle2D.Double((BORDER_WIDTH - 1) / 2, (BORDER_WIDTH - 1) / 2, m_dWidthDraw, m_dHeightDraw, dArcLengthDraw, dArcLengthDraw); m_rect2dADraw = new Rectangle2D.Double((BORDER_WIDTH - 1) / 2, dOffsetDraw + (BORDER_WIDTH - 1) / 2, m_dWidthDraw - dOffsetDraw, m_dHeightDraw - dOffsetDraw); m_rect2dBDraw = new Rectangle2D.Double(dOffsetDraw + (BORDER_WIDTH - 1) / 2, (BORDER_WIDTH - 1) / 2, m_dWidthDraw - dOffsetDraw, m_dHeightDraw - dOffsetDraw); m_areaDraw = new Area(m_rrect2dDraw); m_areaDraw.add(new Area(m_rect2dADraw)); m_areaDraw.add(new Area(m_rect2dBDraw)); } // ////////////////////////////////////////////// protected void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g; RenderingHints hints = new RenderingHints( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHints(hints); if (getModel().isArmed()) { g2.setColor(Color.cyan); } else { if (this.hasFocus()) { g2.setColor(Color.red); } else { g2.setColor(Color.yellow); } } g2.fill(m_areaFill); super.paintComponent(g2); } // ////////////////////////////////////////////// protected void paintBorder(Graphics g) { Graphics2D g2 = (Graphics2D) g; RenderingHints hints = new RenderingHints( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHints(hints); g2.setColor(Color.black); Stroke strokeOld = g2.getStroke(); g2.setStroke(new BasicStroke(BORDER_WIDTH, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); g2.draw(m_areaDraw); if (this.hasFocus()) { g2.setColor(Color.white); g2.draw(m_areaDraw); } g2.setStroke(strokeOld); } // ////////////////////////////////////////////// public boolean contains(int nX, int nY) { if (null == m_shape || m_shape.getBounds().equals(getBounds())) { m_shape = new Rectangle2D.Float(0, 0, this.getBounds().width, this .getBounds().height); } return m_shape.contains(nX, nY); } // ////////////////////////////////////////////// // ////////////////////////////////////////////// // Needed if we want this button to resize public void componentResized(ComponentEvent e) { m_shape = new Rectangle2D.Float(0, 0, this.getBounds().width, this .getBounds().height); m_dWidthFill = (double) this.getBounds().width - 1; m_dHeightFill = (double) this.getBounds().height - 1; m_dWidthDraw = ((double) this.getBounds().width - 1) - (BORDER_WIDTH - 1); m_dHeightDraw = ((double) this.getBounds().height - 1) - (BORDER_WIDTH - 1); this.setShape(); }; // ////////////////////////////////////////////// public void componentHidden(ComponentEvent e) { }; public void componentMoved(ComponentEvent e) { }; public void componentShown(ComponentEvent e) { }; // ////////////////////////////////////////////// // ////////////////////////////////////////////// // This is so the button is triggered when it has focus // and we press the Enter key. public void keyPressed(KeyEvent e) { if (e.getSource() == this && e.getKeyCode() == KeyEvent.VK_ENTER) { this.doClick(); } } // ////////////////////////////////////////////// public void keyReleased(KeyEvent e) { } public void keyTyped(KeyEvent e) { } // ////////////////////////////////////////////// // ////////////////////////////////////////////// public static void main(String[] args) { JFrame frame = new JFrame("GUI"); frame.getContentPane().setLayout(new FlowLayout()); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(new MyButton("OK", 100)); frame.getContentPane().add(new MyButton("Cancel", 100)); frame.getContentPane().add(new MyButton("Help", 100)); frame.getContentPane().add(new MyButton("Start", 100)); frame.pack(); frame.setVisible(true); } }
cc2769ff1d0f371d98fabac40e4b596e9f0f18bf
f254497e22b4ccfa6c23eec53a47125de079b806
/PatronMemento/src/Logic/Player.java
28c430b601a65e8598f65722814569fc7cd0cb4c
[]
no_license
CamiloBonillaHernandez/Workspace
8b22a080664a44d4644aa5b39a638f0017bf0c0b
2f972739b873621aca7499cd2192dcaae8e19c05
refs/heads/master
2021-07-18T23:05:13.229565
2017-10-23T22:39:07
2017-10-23T22:39:07
107,877,439
0
0
null
null
null
null
UTF-8
Java
false
false
639
java
package Logic; public class Player { private String name; private String location; public Player(String name,String location){ this.name = name; this.location = location; } public Memento saveToMemento(){ System.out.println("Current Location: "+ location); return new Memento(location); } public void restoreToMemento(Memento m){ location = m.getSavedLocation(); } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } }
d184d2f99385573f90fc3d1994d93e678ee4ce67
0a65f208cb5d898fc360c89f8d67e5d5b576ad7e
/voms-admin-server/src/main/java/org/glite/security/voms/admin/event/vo/attribute/AttributeDescriptionDeletedEvent.java
cb5d2f1bb07bcbc3d7624a6fbdcd83c49afc782e
[]
no_license
dpavlos/voms-admin-server
367db87af09163e3e3d586c3a636ed42e5713446
dc832b0ef376228abe7a86191ff1460917ac3cb5
refs/heads/master
2021-01-12T18:13:52.739553
2016-10-12T14:31:24
2016-10-12T14:31:24
71,340,115
0
0
null
2016-10-19T09:19:24
2016-10-19T09:19:24
null
UTF-8
Java
false
false
1,118
java
/** * Copyright (c) Istituto Nazionale di Fisica Nucleare (INFN). 2006-2016 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.glite.security.voms.admin.event.vo.attribute; import org.glite.security.voms.admin.event.EventDescription; import org.glite.security.voms.admin.persistence.model.VOMSAttributeDescription; @EventDescription(message = "deleted attribute class '%s'", params = { "attributeClassName" }) public class AttributeDescriptionDeletedEvent extends AttributeDescriptionEvent { public AttributeDescriptionDeletedEvent(VOMSAttributeDescription ad) { super(ad); } }
41bfe54e988048d847ea9638dde9079b0fd132da
d3f800f9035a998649bf405b47a5b66477918c24
/06. Inheritance - Exercises/04. Need For Speed/Main.java
ea7b6712e606b0ca685bbe48aa052cb6c7af91fd
[]
no_license
yavor300/Java-OOP
eeadc0a56ace933595c8c8d64641e5ce5940c970
a9a43d12e717941850afe073e117681114bb0061
refs/heads/main
2023-01-04T05:28:05.516132
2020-10-22T18:49:16
2020-10-22T18:49:16
306,398,227
1
1
null
null
null
null
UTF-8
Java
false
false
4,983
java
package vehicle; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; import java.util.List; public class Main { public static Integer[] parseLineOfNumbers(String line) { String[] numberString = line.split(", "); Integer[] numbers = new Integer[numberString.length]; for (int i = 0; i < numbers.length; i++) { numbers[i] = Integer.parseInt(numberString[i]); } return numbers; } private static void removeIndex(int[] numbers, int[] newNumbers, int indexToRemove) { for (int i = 0; i < newNumbers.length; i++) { if (i >= indexToRemove) { newNumbers[i] = numbers[i + 1]; } else { newNumbers[i] = numbers[i]; } } numbers = newNumbers; } private static List<Integer> getIntegersInList(String line) { List<Integer> numbers = new ArrayList<>(); String[] strings = line.split(" "); for (String numberString : strings) { numbers.add(Integer.parseInt(numberString)); } return numbers; } //FIND DUPLICATED OBJECT IN A LIST // static Product findProduct(String name, List<Product> products) { // for (Product product : products) { // if (product.getName().equals(name)) { // return product; // } // } // return null; // } //REPEAT A WORD DEPENDING OT IT'S LETTERS COUNT private static String repeat(String word, int length) { String[] repeated = new String[length]; for (int i = 0; i < repeated.length; i++) { repeated[i] = word; } return String.join("", repeated); } private static void characterMultiplier(String firstString, String secondString) { int sum = 0; for (int i = 0; i < firstString.length() && i < secondString.length(); i++) { sum += firstString.charAt(i) * secondString.charAt(i); } if (firstString.length() > secondString.length()) { for (int i = secondString.length(); i < firstString.length(); i++) { sum += firstString.charAt(i); } } else { for (int i = firstString.length(); i < secondString.length(); i++) { sum += secondString.charAt(i); } } System.out.println(sum); } //FILLING THE MATRIX /*for (int row = 0; row < n; row++) { String[] input = scanner.nextLine().split("\\s+"); for (int col = 0; col < input.length; col++) { matrix[row][col] = Integer.parseInt(input[col]); } }*/ //BOTH DIAGONALS /*int row = 0; int col = 0; int primarySum = 0; while (row < n && col < n) { primarySum += matrix[row][col]; row++; col++; } row--; col = 0; int secondarySum = 0; while (row >= 0 && col < n) { secondarySum += matrix[row][col]; row--; col++; }*/ /*ArrayList<ArrayList<Integer>> matrix = new ArrayList<>(); int value = 1; for (int row = 0; row < numbers[0]; row++) { ArrayList<Integer> rowList = new ArrayList<>(); for (int col = 0; col < numbers[1]; col++) { rowList.add(value); value++; } matrix.add(rowList); }*/ /* private static double calcFact(double number) { long fact = 1; for (int i = 1; i <= number; i++) { fact *= i; } return fact; } */ //IS MATRIX IN RANGE private static boolean isInRange(int playerRow, int playerCol, char[][] matrix) { return playerRow >= 0 && playerRow < matrix.length && playerCol >= 0 && playerCol < matrix[playerRow].length; } //TRAP CHECKER private static boolean isOnTrap(int playerRow, int playerCol, char[][] matrix) { return matrix[playerRow][playerCol] == 'B'; } //BONUS CHECKER private static boolean isOnBonus(int playerRow, int playerCol, char[][] matrix) { return matrix[playerRow][playerCol] == '*'; } //FINAL CHECKER private static boolean isOnFinish(int playerRow, int playerCol, int finalRow, int finalCol) { return (playerRow == finalRow) && (playerCol == finalCol); } // PRINT MATRIX private static void printMatrix(String[][] matrix) { for (int row = 0; row < matrix.length; row++) { for (int col = 0; col < matrix[row].length; col++) { System.out.print(matrix[row][col] + " "); } System.out.println(); } } public static void main(String[] args) throws Exception { BufferedReader bfr = new BufferedReader(new InputStreamReader(System.in)); } }
a685066bb1f86adb29413b92cdca79f6d1659b0e
b66bdee811ed0eaea0b221fea851f59dd41e66ec
/src/org/keyczar/RsaPrivateKey$RsaPrivateStream$1.java
c9a59f4bc8d20576216601586d07bec8700254bf
[]
no_license
reverseengineeringer/com.grubhub.android
3006a82613df5f0183e28c5e599ae5119f99d8da
5f035a4c036c9793483d0f2350aec2997989f0bb
refs/heads/master
2021-01-10T05:08:31.437366
2016-03-19T20:41:23
2016-03-19T20:41:23
54,286,207
0
0
null
null
null
null
UTF-8
Java
false
false
633
java
package org.keyczar; import java.nio.ByteBuffer; import org.keyczar.interfaces.VerifyingStream; class RsaPrivateKey$RsaPrivateStream$1 implements VerifyingStream { RsaPrivateKey$RsaPrivateStream$1(RsaPrivateKey.RsaPrivateStream paramRsaPrivateStream) {} public int digestSize() { return 0; } public void initVerify() {} public void updateVerify(ByteBuffer paramByteBuffer) {} public boolean verify(ByteBuffer paramByteBuffer) { return true; } } /* Location: * Qualified Name: org.keyczar.RsaPrivateKey.RsaPrivateStream.1 * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
124ba0b9711b6188ce8797ef876516370168f94a
2f5411b48a1ab0ce35ec37bc85d0ba187d988a90
/src/main/java/bo/com/ahosoft/arrestcontron/service/util/SystemParameterConstants.java
f89ccf00e23128f92f5458d8c7e53d2c540807c7
[]
no_license
Arturo1214/arrest-control
79aac495009bc7f850386e93056a673334b04b6e
40149d5042d245568c7487ab46d3d56f0e9557a3
refs/heads/master
2023-07-27T01:26:56.254734
2020-07-09T13:55:09
2020-07-09T13:55:09
278,378,407
0
1
null
2023-07-15T05:40:22
2020-07-09T13:53:20
Java
UTF-8
Java
false
false
220
java
package bo.com.ahosoft.arrestcontron.service.util; public final class SystemParameterConstants { public static final String MAXIMUM_RECORD_TIME = "MAXIMUM_RECORD_TIME"; private SystemParameterConstants() {} }
d1a722d6ef62907ab66eddcae0b0f801d28b9a5a
a3843d79da6223fe6d36b6a23cdd47ddda23d626
/app/src/androidTest/java/com/example/android/locationproject/ExampleInstrumentedTest.java
e4bd1fc3c9b9b2a9a8b16908c7382cdd5a539860
[]
no_license
adityakhati/Locationproject
89b5c84c4091028833f4e580ce7478d6b4bf0627
68d3a5e790f2f3216b9f34f1cfdcfc9022644cc7
refs/heads/master
2020-08-23T13:17:51.505582
2019-10-21T17:24:49
2019-10-21T17:24:49
200,399,806
0
0
null
null
null
null
UTF-8
Java
false
false
754
java
package com.example.android.locationproject; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.example.android.locationproject", appContext.getPackageName()); } }
4ae0a659f0b576458feea08b30bd90dfaa75844d
861bb25808bf35f4180a715c91b90fbb63649f54
/src/main/java/com/restSample/ServiceApplication.java
bf3578e9191e11a4f05cd80bcb7d7207eee26085
[]
no_license
goolya/RestSample
f3598b3faf36391bfc08293f8a1db6a96039f272
3a2d51472c79e988bddf5d5176a1670412e64363
refs/heads/master
2021-07-09T21:56:30.862584
2017-10-10T05:20:23
2017-10-10T05:20:23
106,370,889
0
0
null
null
null
null
UTF-8
Java
false
false
2,314
java
package com.restSample; import com.fasterxml.jackson.databind.Module; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import org.springframework.boot.SpringApplication; import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jms.JmsAutoConfiguration; import org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; import org.springframework.retry.annotation.EnableRetry; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.validation.beanvalidation.MethodValidationPostProcessor; import org.springframework.web.client.RestTemplate; import javax.annotation.PostConstruct; import java.util.TimeZone; @SpringBootApplication @EnableAutoConfiguration @EnableScheduling @EnableRetry public class ServiceApplication implements HealthIndicator { public static void main(String[] args) throws Exception { SpringApplication.run(ServiceApplication.class, args); } @PostConstruct public void postConstruct() { // set the JVM timezone to UTC TimeZone.setDefault(TimeZone.getTimeZone("UTC")); } @Override public Health health() { return Health.up().withDetail("health", true).build(); } @Bean public Module javaDateModule() { return new JavaTimeModule(); } @Bean public ObjectMapper objectMapper() { ObjectMapper mapper = Jackson2ObjectMapperBuilder.json().build(); mapper.registerModule(new JavaTimeModule()); mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); return mapper; } @Bean public RestTemplate restTemplate() { return new RestTemplate(); } @Bean MethodValidationPostProcessor methodValidationPostProcessor() { return new MethodValidationPostProcessor(); } }
340270f209c075261dac468273bcde1c4dcdcfc0
e912fd9ad9a44ad2d818fe90336cc8163c52e185
/misionTIC2/src/misiontic/ciclo2/semana4/rectangulo/MainGUI.java
9034cee424e04374fd7f0bc11d254d60272d18e3
[]
no_license
Ziborsoft/misionTIC-ciclo2
758595d939d2d8b2769d5539c5dbe9e4abf15c82
e8ffc62ca3c7e7eec5c5d2f5ce5b1e3e822e4309
refs/heads/main
2023-07-23T17:27:00.611658
2021-08-28T17:44:10
2021-08-28T17:44:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
402
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package misiontic.ciclo2.semana4.rectangulo; /** * * @author emanuel */ public class MainGUI { public static void main(String[] args) { RectanguloFrame rectanguloFrame = new RectanguloFrame(); } }
f01c8de35d55472c77fc1e4f2ddcaaf545c621c7
4ce47e9fd027d2e88d3dc63385438b646432da4d
/src/java/edu/biu/scapi/interactiveMidProtocols/sigmaProtocol/and/SigmaANDVerifierComputation.java
6901033538ce621eaf2545665e8a00add03e641d
[ "MIT" ]
permissive
BenjaminJonahZhang/scapi
02432355779ee8aa5d5df9aecd6bb557d8fa30f4
3dc697dee5ebc633c1c2afc30e425a59e843c840
refs/heads/master
2020-03-15T11:44:29.032404
2018-01-08T13:38:28
2018-01-08T13:38:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,978
java
/** * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Copyright (c) 2012 - SCAPI (http://crypto.biu.ac.il/scapi) * This file is part of the SCAPI project. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * We request that any publication and/or code referring to and/or based on SCAPI contain an appropriate citation to SCAPI, including a reference to * http://crypto.biu.ac.il/SCAPI. * * SCAPI uses Crypto++, Miracl, NTL and Bouncy Castle. Please see these projects for any further licensing issues. * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * */ package edu.biu.scapi.interactiveMidProtocols.sigmaProtocol.and; import java.security.SecureRandom; import java.util.ArrayList; import edu.biu.scapi.interactiveMidProtocols.sigmaProtocol.SigmaVerifierComputation; import edu.biu.scapi.interactiveMidProtocols.sigmaProtocol.utility.SigmaCommonInput; import edu.biu.scapi.interactiveMidProtocols.sigmaProtocol.utility.SigmaMultipleMsg; import edu.biu.scapi.interactiveMidProtocols.sigmaProtocol.utility.SigmaProtocolMsg; /** * Concrete implementation of Sigma Protocol verifier computation.<p> * * This protocol is used for a prover to convince a verifier that the AND of any number of statements are true, * where each statement can be proven by an associated Sigma protocol.<p> * * The pseudo code of this protocol can be found in Protocol 1.14 of pseudo codes document at <a href="http://cryptobiu.github.io/scapi/SDK_Pseudocode.pdf">http://cryptobiu.github.io/scapi/SDK_Pseudocode.pdf</a>.<p> * * @author Cryptography and Computer Security Research Group Department of Computer Science Bar-Ilan University (Moriya Farbstein) * */ public class SigmaANDVerifierComputation implements SigmaVerifierComputation{ /* This class computes the following calculations: SAMPLE a random challenge e <- {0, 1}^t ACC IFF all verifier checks are ACC. */ private ArrayList<SigmaVerifierComputation> verifiers; // Underlying Sigma protocol's verifier to the AND calculation. private int len; // number of underlying verifiers. private byte[] e; //The challenge. private int t; //Soundness parameter. private SecureRandom random; /** * Constructor that gets the underlying verifiers. * @param verifiers array of SigmaVerifierComputation, where each object represent a statement * and the prover wants to prove to the verify that that the AND of all statements are true. * @param t soundness parameter. t MUST be equal to all t values of the underlying verifiers object. * @param random source of randomness * @throws IllegalArgumentException if the given t is not equal to all t values of the underlying verifiers object. */ public SigmaANDVerifierComputation(ArrayList<SigmaVerifierComputation> verifiers, int t, SecureRandom random) { //If the given t is different from one of the underlying object's t values, throw exception. for (int i = 0; i < verifiers.size(); i++){ if (t != verifiers.get(i).getSoundnessParam()){ throw new IllegalArgumentException("the given t does not equal to one of the t values in the underlying verifiers objects."); } } this.verifiers = verifiers; len = verifiers.size(); this.t = t; this.random = random; } /** * Returns the soundness parameter for this Sigma protocol. * @return t soundness parameter */ public int getSoundnessParam(){ return t; } /** * Sets the inputs for each one of the underlying verifier. * @param input MUST be an instance of SigmaANDCommonInput. * @throws IllegalArgumentException if input is not an instance of SigmaANDCommonInput. * @throws IllegalArgumentException if the number of given inputs is different from the number of underlying verifier. */ private void checkInput(SigmaCommonInput in) { if (!(in instanceof SigmaANDCommonInput)){ throw new IllegalArgumentException("the given input must be an instance of SigmaANDCommonInput"); } SigmaANDCommonInput input = (SigmaANDCommonInput) in; int inputLen = input.getInputs().size(); // If number of inputs is not equal to number of verifiers, throw exception. if (inputLen != len) { throw new IllegalArgumentException("number of inputs is different from number of underlying verifiers."); } } /** * Samples the challenge of the protocol.<p> * "SAMPLE a random challenge e<-{0,1}^t". */ public void sampleChallenge(){ //Create a new byte array of size t/8, to get the required byte size. e = new byte[t/8]; //fills the byte array with random values. random.nextBytes(e); //Set all the other verifiers with the sampled challenge. for (int i = 0; i < len; i++){ verifiers.get(i).setChallenge(e); } } /** * Sets the given challenge. * @param challenge */ public void setChallenge(byte[] challenge){ //Set the challenge to all the underlying verifiers. for (int i = 0; i < len; i++){ verifiers.get(i).setChallenge(challenge); } } /** * Returns the sampled challenge. * @return the challenge. */ public byte[] getChallenge(){ return e; } /** * Computes the verification of the protocol.<p> * "ACC IFF all verifier checks are ACC". * @param in MUST be an instance of SigmaANDCommonInput. * @param a first message from prover * @param z second message from prover * @return true if the proof has been verified; false, otherwise. * @throws IllegalArgumentException if input is not an instance of SigmaANDCommonInput. * @throws IllegalArgumentException if the number of given inputs is different from the number of underlying verifier. * @throws IllegalArgumentException if the first or second message of the prover is not an instance of SigmaMultipleMsg */ public boolean verify(SigmaCommonInput in, SigmaProtocolMsg a, SigmaProtocolMsg z) { //Checks that the input is as expected. checkInput(in); ArrayList<SigmaCommonInput> verifiersInput = ((SigmaANDCommonInput) in).getInputs(); boolean verified = true; //If one of the messages is illegal, throw exception. if (!(a instanceof SigmaMultipleMsg)){ throw new IllegalArgumentException("first message must be an instance of SigmaMultipleMsg"); } if (!(z instanceof SigmaMultipleMsg)){ throw new IllegalArgumentException("second message must be an instance of SigmaMultipleMsg"); } SigmaMultipleMsg first = (SigmaMultipleMsg) a; SigmaMultipleMsg second = (SigmaMultipleMsg) z; ArrayList<SigmaProtocolMsg> firstMessages = first.getMessages(); ArrayList<SigmaProtocolMsg> secondMessages = second.getMessages(); //Compute all verifier checks. for (int i = 0; i < len; i++){ verified = verified && verifiers.get(i).verify(verifiersInput.get(i), firstMessages.get(i), secondMessages.get(i)); } //Return true if all verifiers returned true; false, otherwise. return verified; } }
e518fa90ea7439edf7c803ef485fbc2647f63a42
8ac0c0eb6f9fc52e6e1baed1cf57133ac48f5e33
/src/main/java/com/kodilla/carrental/dto/UserDto.java
8179e16b04eed22ea07bfb83a68b6f5c879846c9
[]
no_license
pszczepcio/car-rental
3cb4501387715631ef19731d4dd9f00a6a36106f
f398f759d2c5111cb2ad41ca50bfc6d58f9933d6
refs/heads/master
2020-06-16T20:31:20.813531
2019-11-04T12:08:57
2019-11-04T12:08:57
195,695,357
0
0
null
2019-07-07T23:36:58
2019-07-07T20:44:07
Java
UTF-8
Java
false
false
838
java
package com.kodilla.carrental.dto; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.util.ArrayList; import java.util.List; @Getter @Setter @AllArgsConstructor @NoArgsConstructor public class UserDto { private Long id; private String name; private String surname; private int phone; private String email; private boolean loginStatus; private List<Long> orderIdList = new ArrayList<>(); private List<Long> invoiceIdList = new ArrayList<>(); public UserDto(Long id, String name, String surname, int phone, String eamil, boolean loginStatus) { this.id = id; this.name = name; this.surname = surname; this.phone = phone; this.email = eamil; this.loginStatus = loginStatus; } }
eaea59019a1a4af60acb34030d7daa9ebae850aa
f63e372f6a3b333c3b39c1282f17820702f02d66
/src/main/java/com/ktds/board/vo/BoardSearchVO.java
e343724319e320ed5e79e6f0690b1a1f2b5385d0
[]
no_license
sun-ung-chang/ktds
b12b47a1ac31439470ebc4423141a392c3d94884
f4d73b879c57ecd0e794aa1449a22d8015e4b668
refs/heads/master
2020-03-29T08:38:59.373043
2018-09-21T06:58:37
2018-09-21T06:58:37
149,721,416
0
0
null
null
null
null
UTF-8
Java
false
false
809
java
package com.ktds.board.vo; import io.github.seccoding.web.pager.annotations.EndRow; import io.github.seccoding.web.pager.annotations.StartRow; public class BoardSearchVO { private int pageNo; private String searchKeyword; public String getSearchKeyword() { return searchKeyword; } public void setSearchKeyword(String searchKeyword) { this.searchKeyword = searchKeyword; } @StartRow private int startRow; @EndRow private int endRow; public int getPageNo() { return pageNo; } public void setPageNo(int pageNo) { this.pageNo = pageNo; } public int getStartRow() { return startRow; } public void setStartRow(int startRow) { this.startRow = startRow; } public int getEndRow() { return endRow; } public void setEndRow(int endRow) { this.endRow = endRow; } }
f2e2ad5d9620ffed06ef3322dbb61851454c7e23
f14ba7c69c2da636702702453bb01a3ca6654c12
/src/main/java/com/mark/domain/User.java
f4fbdf5170107caecb7ee2e539859fb2dcbad60d
[ "MIT" ]
permissive
ztmark/markmind
05157148c7e7abeec075c78495be2955ea8c987b
0f4f5de3bf05763df8b8acaf02a6188dbd4169fa
refs/heads/master
2021-01-09T21:55:42.302881
2015-09-19T12:51:04
2015-09-19T12:51:04
44,581,570
1
0
null
null
null
null
UTF-8
Java
false
false
1,537
java
package com.mark.domain; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Author: Mark * Date : 2015/2/16 * Time : 16:34 */ public class User { private int id; private String username; private String email; private String password; private String blogName; private String motto; private List<Article> articles; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getBlogName() { return blogName; } public void setBlogName(String blogName) { this.blogName = blogName; } public String getMotto() { return motto; } public void setMotto(String motto) { this.motto = motto; } public List<Article> getArticles() { return Collections.unmodifiableList(this.articles); } public void setArticles(List<Article> articles) { if (this.articles == null) { this.articles = new ArrayList<>(); } this.articles.addAll(articles); } }
ab2b2737559274f164d3b5631597696ee9e06cb3
8125af2b5449e3c33501560a0d2c863d15477fac
/java/src/main/java/org/seleniumhq/selenium/fluent/RetryAfterStaleElement.java
8328c90a193cb17940f550f1572e7ed3dd3bf874
[ "Apache-2.0" ]
permissive
SeleniumHQ/fluent-selenium
667723399e08c40ee4eafcbd8d188ed796910518
f10634d63788058f6ad432654b8adebe047890bd
refs/heads/master
2023-09-04T12:22:01.242872
2022-09-17T10:23:40
2022-09-17T10:23:40
2,221,963
140
75
Apache-2.0
2020-10-13T06:46:00
2011-08-17T13:43:48
Java
UTF-8
Java
false
false
1,360
java
/* Copyright 2011-2013 Software Freedom Conservancy Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.seleniumhq.selenium.fluent; public abstract class RetryAfterStaleElement { public abstract void toRetry(); public void stopAfter(Period period) { boolean again = true; long start = System.currentTimeMillis(); long endMillis = period.getEndMillis(start); FluentExecutionStopped.BecauseOfStaleElement ex = null; while (again && System.currentTimeMillis() < endMillis) { ex = null; try { toRetry(); again = false; } catch (FluentExecutionStopped.BecauseOfStaleElement e) { ex = e; } } if (ex != null) { ex.setDuration(System.currentTimeMillis() - start); throw ex; } } }
bc6ed93b1734aee704e068d91ef651ded2d498c3
9d58c81780a5ad879090c568e473152ffa2ea837
/PLATFORM MANAGER/MC_MANAGER_PLATFORM_OAUTH/src/java/mc/mariadb/manager/jsf/util/JsfUtil.java
cc0dc1064ba264cc2758472093300c031e75467b
[]
no_license
ingmanuelcespedes/ApplicationOauth
c441b41968bd6fa93a2d99d390f38aeec064007d
6eb83078c128f3e3df4dc96cb6cec336566d3d20
refs/heads/master
2021-05-05T06:20:34.148689
2018-02-03T00:21:43
2018-02-03T00:21:43
118,794,748
0
0
null
null
null
null
UTF-8
Java
false
false
2,330
java
package mc.mariadb.manager.jsf.util; import java.util.List; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.model.SelectItem; public class JsfUtil { public static SelectItem[] getSelectItems(List<?> entities, boolean selectOne) { int size = selectOne ? entities.size() + 1 : entities.size(); SelectItem[] items = new SelectItem[size]; int i = 0; if (selectOne) { items[0] = new SelectItem("", "---"); i++; } for (Object x : entities) { items[i++] = new SelectItem(x, x.toString()); } return items; } public static boolean isValidationFailed() { return FacesContext.getCurrentInstance().isValidationFailed(); } public static void addErrorMessage(Exception ex, String defaultMsg) { String msg = ex.getLocalizedMessage(); if (msg != null && msg.length() > 0) { addErrorMessage(msg); } else { addErrorMessage(defaultMsg); } } public static void addErrorMessages(List<String> messages) { for (String message : messages) { addErrorMessage(message); } } public static void addErrorMessage(String msg) { FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, msg); FacesContext.getCurrentInstance().addMessage(null, facesMsg); } public static void addSuccessMessage(String msg) { FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg); FacesContext.getCurrentInstance().addMessage("successInfo", facesMsg); } public static String getRequestParameter(String key) { return FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key); } public static Object getObjectFromRequestParameter(String requestParameterName, Converter converter, UIComponent component) { String theId = JsfUtil.getRequestParameter(requestParameterName); return converter.getAsObject(FacesContext.getCurrentInstance(), component, theId); } public static enum PersistAction { CREATE, DELETE, UPDATE } }
f54f0772a7058e69716c50af8895d61aed640548
09e4f4834490c89bf7f88325b22a080c8ed8bc44
/large-scale-programming/src/org/howard/edu/lsp/assignment7/tollbooth/Tollbooth.java
8d8ad31c955cdb0aa7ab1245155fcc953057a90a
[]
no_license
briafassler9/lsp-respository
9c83387be33018739adcd5445b6635aa3b42912a
d27239380601bd2af7a407615f376f1baf07080d
refs/heads/main
2023-04-08T20:33:22.545219
2021-04-23T15:33:02
2021-04-23T15:33:02
332,873,064
0
0
null
null
null
null
UTF-8
Java
false
false
3,091
java
package org.howard.edu.lsp.assignment7.tollbooth; /** * Program to simulate the operation of a tollbooth * @author bria * */ public class Tollbooth { /** * Truck class that establishes the general attributes of a truck * */ public abstract class Truck { public abstract int totalWeight(); public abstract int numOfAxles(); public abstract String makeOfTruck(); } /** * TollBooth interface that establishes the general behaviors of a tollbooth * */ public interface TollBooth { public void calculateToll(Truck truck); public void displayData(); public void reset(); } /** * Volvo truck that extends the attributes of a truck * */ public class Volvo extends Truck { int axles = 0; int weight = 0; String make = ""; /** * Volvo constructor to take in the make, axles, and weight * @param axles num of axles on truck * @param weight weight of truck * @param make brand/make of truck */ public Volvo (int axles, int weight, String make) { this.axles = axles; this.weight = weight; this.make = make; } @Override public int totalWeight() { return weight; } @Override public int numOfAxles() { return axles; } @Override public String makeOfTruck() { return make; } } /** * Kenworth truck that extends the attributes of a truck * */ public class Kenworth extends Truck { int axles = 0; int weight = 0; String make = ""; /** * Kenworth constructor to take in the make, axles, and weight * @param axles num of axles on truck * @param weight weight of truck * @param make brand/make of truck */ Kenworth (int axles, int weight, String make) { this.axles = axles; this.weight = weight; this.make = make; } @Override public int totalWeight() { return weight; } @Override public int numOfAxles() { return axles; } @Override public String makeOfTruck() { return make; } } /** * City tollbooth that implements the behaviors of a tollbooth * */ public class BaltimoreTollbooth implements TollBooth { int num_of_trucks; int total_receipts; public BaltimoreTollbooth(){ num_of_trucks = 0; total_receipts = 0; } @Override //Calculates the toll for each truck passing a tollbooth public void calculateToll(Truck truck) { int axles = truck.numOfAxles(); int weight = truck.totalWeight(); String make = truck.makeOfTruck(); System.out.println("Axles: " + axles); System.out.println("Total Weight: " + weight); System.out.println("Make of Truck: " + make); int toll = (axles * 5) + ((weight/1000)/2); num_of_trucks += 1; total_receipts += toll; System.out.println("Tolls Due: $" + toll); } @Override //Displays the booth's totals public void displayData() { System.out.println("Trucks: " + num_of_trucks); System.out.println("Receipts: " + total_receipts); } @Override //Resets the booth's totals public void reset() { num_of_trucks = 0; total_receipts = 0; } } }
[ "bria@localhost" ]
bria@localhost
63b1e907a73e78ce144a021846d6ff3084d5cd16
5a5295a55c726f2b14da3b6e94fc685b7f8035db
/src/Explorer.java
dcd312730cd990f08d9cdcc4d62f6525a2fb6c50
[]
no_license
DmAVasilyev/explorer
29d1e781bc50adb59ee59731fb1e0ba597e9e9d9
f7cdff35e97ea3f11deb2cea260caa02fa605752
refs/heads/master
2020-03-27T11:29:44.165680
2018-08-28T20:36:38
2018-08-28T20:36:38
146,490,446
0
0
null
null
null
null
UTF-8
Java
false
false
423
java
import java.io.File; public class Explorer { public static void main (String[] args) { java.io.File file = new java.io.File("C:\\Program Files"); String list[] = file.list(); for (String s : list) { System.out.println(s); } System.out.println(file.isDirectory()); System.out.println(file.toString()); } }
7153a5cb6fece024f1bf592a82501cc433fa5c0e
3aade8553e7a07134cf53e4e49b65360f58ba06a
/collection/cp/Algorithm_Collection-master/MianJing/PizzaBuilder.java
d279d30da1e08a69ce04ecbb66c936e601fc76fc
[ "Apache-2.0" ]
permissive
bruler/Notebook
beb529f027816abda776a88f36bfc5051fcc5880
a9880be9bd86955afd6b8f7352822bc18673eda3
refs/heads/master
2021-06-13T17:25:22.460991
2017-04-07T18:42:25
2017-04-07T18:42:25
73,064,126
1
1
null
null
null
null
UTF-8
Java
false
false
1,983
java
//https://sourcemaking.com/design_patterns/builder/java/2 /* "Product" */ class Pizza { private String dough = ""; private String sauce = ""; private String topping = ""; public void setDough(String dough) { this.dough = dough; } public void setSauce(String sauce) { this.sauce = sauce; } public void setTopping(String topping) { this.topping = topping; } } /* "Abstract Builder" */ abstract class PizzaBuilder { protected Pizza pizza; public Pizza getPizza() { return pizza; } public void createNewPizzaProduct() { pizza = new Pizza(); } public abstract void buildDough(); public abstract void buildSauce(); public abstract void buildTopping(); } /* "ConcreteBuilder" */ class HawaiianPizzaBuilder extends PizzaBuilder { public void buildDough() { pizza.setDough("cross"); } public void buildSauce() { pizza.setSauce("mild"); } public void buildTopping() { pizza.setTopping("ham+pineapple"); } } /* "ConcreteBuilder" */ class SpicyPizzaBuilder extends PizzaBuilder { public void buildDough() { pizza.setDough("pan baked"); } public void buildSauce() { pizza.setSauce("hot"); } public void buildTopping() { pizza.setTopping("pepperoni+salami"); } } /* "Director" */ class Waiter { private PizzaBuilder pizzaBuilder; public void setPizzaBuilder(PizzaBuilder pb) { pizzaBuilder = pb; } public Pizza getPizza() { return pizzaBuilder.getPizza(); } public void constructPizza() { pizzaBuilder.createNewPizzaProduct(); pizzaBuilder.buildDough(); pizzaBuilder.buildSauce(); pizzaBuilder.buildTopping(); } } /* A customer ordering a pizza. */ class BuilderExample { public static void main(String[] args) { Waiter waiter = new Waiter(); PizzaBuilder hawaiian_pizzabuilder = new HawaiianPizzaBuilder(); PizzaBuilder spicy_pizzabuilder = new SpicyPizzaBuilder(); waiter.setPizzaBuilder( hawaiian_pizzabuilder ); waiter.constructPizza(); Pizza pizza = waiter.getPizza(); } }
6c2b840a4b129e7d61aa1b638306d3fc4c5d70d6
96ff760b8aa7044ffaea2b7a39a51c55cf33d1de
/Spring_Core/src/main/java/com/bac/di/lookup/TestInterface.java
e593ae125d8aa31ad6d2743a3dd23a22104ed252
[]
no_license
Shahnawaz1985/SpringCore
8dca6e859abc2628e010d524482acb362af999e2
a42d6298ee03b7d1bfa6b2df4306fef1b22d4484
refs/heads/master
2021-04-06T11:01:55.684712
2018-03-11T13:55:27
2018-03-11T13:55:27
124,761,434
1
1
null
null
null
null
UTF-8
Java
false
false
122
java
package com.bac.di.lookup; public interface TestInterface { MyHelper getMyHelper(); void someOperation(); }
d81d07071d9acd6f4fa0bfcb3e839f74ff75af36
4e0249b8ddf23a1e76b9fadd311d2fce6b3c4ffb
/src/main/java/biblio/controller/LivreController.java
8d5700ec0d724bf8c7e4e9cd67bb4afcc36c6eda
[]
no_license
Gqueffelec/biblio-gq-ps
24c234f217bcf6d9336ff389a913afc6353e6da1
d36917587db7567b34398dea355ab3c16dd04004
refs/heads/main
2023-03-25T01:56:23.578534
2021-03-10T14:15:42
2021-03-10T14:15:42
343,803,506
0
0
null
null
null
null
UTF-8
Java
false
false
2,246
java
package biblio.controller; import java.sql.Date; import java.time.LocalDate; import java.util.Arrays; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import biblio.dto.CategorieDTO; import biblio.dto.LivreDTO; import biblio.service.impl.CategorieService; import biblio.service.impl.LivreService; @Controller public class LivreController { @Autowired LivreService livreService; @Autowired CategorieService categorieService; @PostMapping("/addLivre") public String add(@RequestParam("categorie") String categorieS, @RequestParam("stock") String stockS, @RequestParam("label") String label, @RequestParam("titre") String titre, @RequestParam("dateEdition") String dateEdition, @RequestParam("prix") String prixS) { String[] date = dateEdition.split("-"); Arrays.asList(date).stream().forEach(System.out::println); int annee = Integer.parseInt(date[0]); int mois = Integer.parseInt(date[1]); int jour = Integer.parseInt(date[2]); Double prix = Double.parseDouble(prixS); int stock = Integer.parseInt(stockS); CategorieDTO categorie = categorieService.getById(Integer.parseInt(categorieS)); this.livreService.add(LivreDTO.builder().categorie(categorie).titre(titre) .date_edition(Date.valueOf(LocalDate.of(annee, mois, jour))).prix(prix).label(label).stock(stock) .build()); return "redirect:index"; } @PostMapping("/updateLivre") public String update(@RequestParam("livre") String livre, @RequestParam("prix") String prix, @RequestParam("stock") String stock) { int livreModif = Integer.parseInt(livre); Double nouveauPrix = Double.parseDouble(prix); int nouveauStock = Integer.parseInt(stock); LivreDTO update = this.livreService.getById(livreModif); update.setPrix(nouveauPrix); update.setStock(nouveauStock); this.livreService.update(update); return "redirect:index"; } @PostMapping("/removeLivre") public String remove(@RequestParam("livre") String livre) { int livreSuppr = Integer.parseInt(livre); this.livreService.deleteById(livreSuppr); return "redirect:index"; } }
945c83378d1aa2904a1242a22844c936e19df6cb
1643e2311b42296dd753c6f0302953035f755f63
/src/test/java/com/bridgelabz/listener/FacebookListener.java
ce99e26db5934cf1f448fdad45cbb5e1bfca6c81
[]
no_license
blsonalib/FacebookTesting
e5888f32e387ba78bb5725788b227fb2fc1e95a1
94d18968bba45c5546956b1a4bf6d19df6a074de
refs/heads/master
2020-12-13T06:38:42.724446
2020-01-24T14:06:22
2020-01-24T14:06:22
234,337,926
0
0
null
null
null
null
UTF-8
Java
false
false
1,010
java
package com.bridgelabz.listener; import com.bridgelabz.facebooktest.BaseTest; import org.testng.ITestContext; import org.testng.ITestListener; import org.testng.ITestResult; import java.io.IOException; public class FacebookListener extends Utility implements ITestListener { @Override public void onTestStart(ITestResult result) { } @Override public void onTestSuccess(ITestResult result) { } @Override public void onTestFailure(ITestResult result) { System.out.println("Adddedddddddd"); try { screenShot(result.getMethod().getMethodName()); } catch (IOException e) { e.printStackTrace(); } } @Override public void onTestSkipped(ITestResult result) { } @Override public void onTestFailedButWithinSuccessPercentage(ITestResult result) { } @Override public void onStart(ITestContext context) { } @Override public void onFinish(ITestContext context) { } }
b7198d8f27facd5a272b50e06564737fd7ca5842
71fc3a953626c2e38c9149bd59f5ca45b0bd5156
/sobey-projects/cmdbuild/src/main/java/com/sobey/cmdbuild/webservice/BasicSoapSevcie.java
2f392c1e029a4a7d4f9224f166386df1b06ac6f8
[]
no_license
scottzf/sobey-zhangfan
dc3dd00b01a04b051f2ad8babcd5a3ccd8a9dfa1
7e7223b0ed52e2ae82c1fa55ba12df620feb49ae
refs/heads/master
2021-01-22T18:10:34.736514
2015-03-12T12:54:22
2015-03-12T12:54:22
26,618,087
0
0
null
null
null
null
UTF-8
Java
false
false
1,432
java
package com.sobey.cmdbuild.webservice; import javax.validation.Validator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import com.sobey.cmdbuild.service.CommonService; import com.sobey.cmdbuild.webservice.response.result.WSResult; /** * SoapSevcie的基本类. * * 包含公共service、validator的注入和错误的处理方法. * * @author Administrator * */ public class BasicSoapSevcie { protected static Logger logger = LoggerFactory.getLogger(BasicSoapSevcie.class); @Autowired protected CommonService comm; @Autowired protected Validator validator; protected <T extends WSResult> T handleGeneralError(T result, Exception e) { logger.error(e.getMessage()); result.setDefaultError(); return result; } protected <T extends WSResult> T handleGeneralError(T result, Exception e, String message) { logger.error(message, e.getMessage()); result.setError(WSResult.PARAMETER_ERROR, message); return result; } protected <T extends WSResult> T handleParameterError(T result, Exception e) { logger.error(e.getMessage()); result.setError(WSResult.PARAMETER_ERROR, e.getMessage()); return result; } protected <T extends WSResult> T handleParameterError(T result, Exception e, String message) { logger.error(message, e.getMessage()); result.setError(WSResult.PARAMETER_ERROR, message); return result; } }
8cfbb22084ea2737cc78cde71ee2d21ce38e2629
57af4e88673e1729998805e7725ec2b45bc64c81
/src/loose/oose/fis/ProcesorNou.java
fe04a207706f7d44edffaf55ac911e07d7a8e5f4
[ "MIT" ]
permissive
RobertIonita/fis
59ac2f95eb0e71b2d48b169a50e6e82917033336
2bee8bf9a14f4575c6bff0abe55c6349f3ddd93d
refs/heads/master
2021-04-05T19:06:21.972457
2020-03-19T20:23:35
2020-03-19T20:23:35
248,590,057
0
0
null
null
null
null
UTF-8
Java
false
false
207
java
package loose.oose.fis.processors; import loose.oose.fis.documents.Document; import java.util.ArrayList; public class ProcesorNou{ public void doSomething(){ System.out.prinln("123"); } }
9f68b1f398c471ef1a46251f0f858ac6a4bf66d6
8772f2d34b6e104534073b4bc99fa2c7ae4b3912
/src/main/no/systema/jservices/common/dao/Ffr03fDao.java
47d3fdfeb9292456f7a6ac59d73a30882b15827c
[]
no_license
SystemaAS/syjservicescommon
82a3c9f987c1617a3486c8fb64fe67760dd5e54a
e15312d44aa285bb8d23c6c52d1aa45687642b50
refs/heads/master
2022-11-01T19:17:53.878128
2022-10-18T14:33:51
2022-10-18T14:33:51
74,659,457
0
0
null
null
null
null
UTF-8
Java
false
false
1,195
java
package no.systema.jservices.common.dao; import java.util.HashMap; import java.util.Map; import java.math.BigDecimal; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; import lombok.Data; /** * Dao to Tradevision (flyeksport - flyfraktsbrev) FFR03F - child table for tradevision booking * * @author oscardelatorre * @date Jan, 2019 * */ @Data public class Ffr03fDao implements IDao { private Integer f03rec = 0; //9,0 PAKKET - Rec.no/Trans ID. private String f0311; //2 VARCHAR - Carrier Code private String f0312; //5 VARCHAR - Comp NE private Integer f0314 = 0; //2,0 PAKKET - Sced. dep. Day private String f0315; //3 VARCHAR - Sced. dep. Month private String f0331; //3 VARCHAR - Dep. Airport code private String f0332; //3 VARCHAR - Arr. Airport code private String f035; //2 VARCHAR - Space alloc. code private String f0362; //14 VARCHAR - Allotment ID. private Map<String, Object> keys = new HashMap<String, Object>(); @Override public Map<String, Object> getKeys() { keys.put("f03rec", f03rec); return keys; } @Override public String toString(){ return ReflectionToStringBuilder.toString(this); } }
c84e52379452484a08160117d8e70cc57669b608
dc819518deb507341577b45610403e547f1d23ef
/wenhua/app/src/test/java/com/wenhua/wenhua/ExampleUnitTest.java
58bb712f57090c5c50544862e86241d8db54e12f
[]
no_license
StormShadow612/StormShadow
9e3ac13e0edda6ece79870277a004a22839a905d
7603726751dffce81d1363a90ada102c2d88c6f3
refs/heads/master
2021-07-04T21:49:38.887470
2017-09-26T07:33:05
2017-09-26T07:33:05
104,533,077
0
0
null
null
null
null
UTF-8
Java
false
false
395
java
package com.wenhua.wenhua; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
05bb56125df198dd9daa303fa2fddffb43f2d331
4b43d17d44ed0484170c195867283cb37b3b000b
/lims/src/main/java/com/fh/controller/activiti/util/ManagerTaskHandler.java
9b1ca0e8c068f04db63e1573baa0c0b0d2058815
[]
no_license
qiankebear/limsRepository
d88fee326449abbe97337efa65df8219a8d4e638
c29d8569bebd89f3944e7c721421012749d50fef
refs/heads/master
2020-05-20T11:55:26.447861
2019-05-13T04:01:38
2019-05-13T04:01:38
185,561,242
1
1
null
null
null
null
UTF-8
Java
false
false
711
java
package com.fh.controller.activiti.util; import org.activiti.engine.delegate.DelegateTask; import org.activiti.engine.delegate.TaskListener; import org.apache.shiro.session.Session; import com.fh.util.Jurisdiction; /** * 名称:指定下一任务待办人 * @author :FH Admin fh313596790qq(青苔) * @date:2018年2月4日 * @version 1.0 */ @SuppressWarnings("serial") public class ManagerTaskHandler implements TaskListener { @Override public void notify(DelegateTask delegateTask) { Session session = Jurisdiction.getSession(); // 任务ID session.setAttribute("TASKID", delegateTask.getId()); // 默认待办人 session.setAttribute("YAssignee", delegateTask.getAssignee()); } }
f5eb16bf64be541976d553287085c975588c9727
b40d4c5264d17bc01783163dbb12746afdadc9c7
/src/main/java/org/statnlp/ui/visualize/type/HyperLink.java
73864b11fa063bdfd3843e6dbf09a0db25b05987
[]
no_license
allanj/dep-hybrid-tree
93ce1c3da27a91d8a36cca899a6f8b4706566a8b
bc1b607cabe7e28271dfa0b7179a63bbd5d380a8
refs/heads/master
2020-03-26T19:36:00.987465
2019-03-07T12:56:33
2019-03-07T12:56:33
145,274,165
7
4
null
null
null
null
UTF-8
Java
false
false
1,328
java
package org.statnlp.ui.visualize.type; import java.util.ArrayList; /** * Represents a hyperedge in the visualization graph */ public class HyperLink { public static int hyperEdgeCount = 0; public ArrayList<VLink> links = new ArrayList<VLink>(); public VNode parent; public int id; public int hyperid; public HyperLink(VNode parent, ArrayList<VNode> children){ this.id = hyperEdgeCount++; this.parent = parent; this.hyperid = parent.hyperlinks.size(); parent.hyperlinks.add(this); for(int i = 0; i < children.size(); i++){ links.add(new VLink(this.hyperid, children.get(i), this)); } } public HyperLink(VNode parent){ this.id = hyperEdgeCount++; this.parent = parent; this.hyperid = parent.hyperlinks.size(); parent.hyperlinks.add(this); } public void addLink(VLink link){ links.add(link); } public String toString(){ StringBuffer sb = new StringBuffer(); sb.append("[" + hyperid + "|" + parent.index + "]\n"); for(VLink link : links){ sb.append("\t" + link); } return sb.toString(); } public int getLinkCount(){ return this.links.size(); } public boolean removeLink(VLink link){ if (links.contains(link)){ links.remove(link); return true; } return false; } public ArrayList<VLink> getLinks(){ return this.links; } }
a079a4188c8cc4e21cb68259f802754cb2892445
83436380fe01acf30dd154294b3da930e58c5ceb
/BelejanorProject/src/com/belejanor/switcher/bimo/pacs/pacs_008_021/ContentsV01.java
76483062e57319c1c997ec1f8877887ea0d93dc1
[]
no_license
jmptrader/BelejanorSwitch
83e847ee3dc6a555a40e6347f40af4e106c9054f
ce11d46b5ed52b89d22b5890f1e4fad29730125a
refs/heads/master
2023-02-07T07:22:42.266465
2020-12-27T05:07:15
2020-12-27T05:07:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,994
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2018.02.15 at 01:12:59 PM COT // package com.belejanor.switcher.bimo.pacs.pacs_008_021; import java.io.Serializable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; /** * <p>Java class for ContentsV01 complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="ContentsV01"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="CustRef" type="{urn:iso:std:iso:20022:tech:xsd:pacs.008.001.06.021}Max35Text" minOccurs="0"/> * &lt;element name="ChanRef" type="{urn:iso:std:iso:20022:tech:xsd:pacs.008.001.06.021}Max35Text" minOccurs="0"/> * &lt;element name="AgtRef" type="{urn:iso:std:iso:20022:tech:xsd:pacs.008.001.06.021}Max35Text" minOccurs="0"/> * &lt;element name="OpeDesc" type="{urn:iso:std:iso:20022:tech:xsd:pacs.008.001.06.021}Max140Text" minOccurs="0"/> * &lt;element name="PhOptor" type="{urn:iso:std:iso:20022:tech:xsd:pacs.008.001.06.021}Max35Text" minOccurs="0"/> * &lt;element name="DbtCred" type="{urn:iso:std:iso:20022:tech:xsd:pacs.008.001.06.021}DebitCredit"/> * &lt;element name="SttlmDt" type="{urn:iso:std:iso:20022:tech:xsd:pacs.008.001.06.021}ISODate"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @SuppressWarnings("serial") @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ContentsV01", propOrder = { "custRef", "chanRef", "agtRef", "opeDesc", "phOptor", "dbtCred", "sttlmDt" }) public class ContentsV01 implements Serializable{ @XmlElement(name = "CustRef") protected String custRef; @XmlElement(name = "ChanRef") protected String chanRef; @XmlElement(name = "AgtRef") protected String agtRef; @XmlElement(name = "OpeDesc") protected String opeDesc; @XmlElement(name = "PhOptor") protected String phOptor; @XmlElement(name = "DbtCred", required = true) protected DebitCredit dbtCred; @XmlElement(name = "SttlmDt", required = true) protected XMLGregorianCalendar sttlmDt; /** * Gets the value of the custRef property. * * @return * possible object is * {@link String } * */ public String getCustRef() { return custRef; } /** * Sets the value of the custRef property. * * @param value * allowed object is * {@link String } * */ public void setCustRef(String value) { this.custRef = value; } /** * Gets the value of the chanRef property. * * @return * possible object is * {@link String } * */ public String getChanRef() { return chanRef; } /** * Sets the value of the chanRef property. * * @param value * allowed object is * {@link String } * */ public void setChanRef(String value) { this.chanRef = value; } /** * Gets the value of the agtRef property. * * @return * possible object is * {@link String } * */ public String getAgtRef() { return agtRef; } /** * Sets the value of the agtRef property. * * @param value * allowed object is * {@link String } * */ public void setAgtRef(String value) { this.agtRef = value; } /** * Gets the value of the opeDesc property. * * @return * possible object is * {@link String } * */ public String getOpeDesc() { return opeDesc; } /** * Sets the value of the opeDesc property. * * @param value * allowed object is * {@link String } * */ public void setOpeDesc(String value) { this.opeDesc = value; } /** * Gets the value of the phOptor property. * * @return * possible object is * {@link String } * */ public String getPhOptor() { return phOptor; } /** * Sets the value of the phOptor property. * * @param value * allowed object is * {@link String } * */ public void setPhOptor(String value) { this.phOptor = value; } /** * Gets the value of the dbtCred property. * * @return * possible object is * {@link DebitCredit } * */ public DebitCredit getDbtCred() { return dbtCred; } /** * Sets the value of the dbtCred property. * * @param value * allowed object is * {@link DebitCredit } * */ public void setDbtCred(DebitCredit value) { this.dbtCred = value; } /** * Gets the value of the sttlmDt property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getSttlmDt() { return sttlmDt; } /** * Sets the value of the sttlmDt property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setSttlmDt(XMLGregorianCalendar value) { this.sttlmDt = value; } }
677bddcfe1336a6d567ab236d69bbe7608dd5948
0d284f8c8f413911a010f346d1e5e77f816f48bc
/src/com/run/control/B1.java
a5e1fac8843c3a8aba90819d004831717dc24e6a
[]
no_license
snakesmell/a_workbench
dbc7ef3cdd02c81fc1a15b9a3186f827cc130d8c
1042c77f559874aa85b3315782c2c824b08ccdad
refs/heads/master
2021-07-05T13:45:29.612894
2020-05-22T08:16:59
2020-05-22T08:16:59
241,326,082
0
0
null
2021-06-04T02:38:56
2020-02-18T09:52:35
Java
UTF-8
Java
false
false
2,174
java
package com.run.control; import java.io.IOException; import java.io.InputStream; import java.util.Iterator; import java.util.Properties; import java.util.Set; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.run.b.Start; /** * Servlet implementation class B1 */ @WebServlet("/B1") public class B1 extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#HttpServlet() */ public B1() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub response.getWriter().append("Served at: ").append(request.getContextPath()); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub String id = request.getParameter("id"); String action = request.getParameter("action"); Start start = new Start(); /////begin///// Properties prop = new Properties(); InputStream in = this.getClass().getClassLoader().getResourceAsStream("server.properties"); prop.load(in); Set keyValue = prop.keySet(); StringBuffer sb=new StringBuffer(); for (Iterator it = keyValue.iterator(); it.hasNext();) { String key = (String) it.next(); if(key.equals(id)){ String value=prop.getProperty(key); //System.out.println(key+"-"+value);//配置文件值 if("1".equals(action)){//开启 start.startServer(value); } if("0".equals(action)){//关闭 start.stopServer(value); } } } /////end///// doGet(request, response); } }
76907c2e644d78a48ae186005d16da081108cf7f
1c68818ede3c7166f37124eda3ab679424f1aa4a
/EMS/src/trueInfo/appManage/UpdateManager.java
6ee9c169171bb442fd8a717e67c86c843b3591cf
[]
no_license
kuangshi/EMS
9a556fbf083af5cd8269fed67aaef3b370247691
66035e5724c6f8f146bf86b65cf5e5251142c8af
refs/heads/master
2016-09-10T00:17:44.602583
2013-11-21T09:22:22
2013-11-21T09:22:22
null
0
0
null
null
null
null
GB18030
Java
false
false
9,071
java
package trueInfo.appManage; import static trueInfo.appManage.Config.ProductID; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import org.json.JSONArray; import org.json.JSONObject; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import trueInfo.ems.R; import android.app.AlertDialog; import android.app.Dialog; import android.app.AlertDialog.Builder; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.DialogInterface.OnClickListener; import android.content.pm.PackageManager.NameNotFoundException; import android.net.Uri; import android.os.Environment; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.ProgressBar; import android.widget.Toast; public class UpdateManager { /* 下载中 */ private static final int GETVERTION_FINISH = 0; /* 下载中 */ private static final int DOWNLOAD = 1; /* 下载结束 */ private static final int DOWNLOAD_FINISH = 2; /* 获取自服务端的版本及更新信息 */ private int newVerCode = 0; private String newVerName = ""; private String newDescription = ""; /* 下载保存路径 */ private String mSavePath; /* 记录进度条数量 */ private int progress; /* 是否取消更新 */ private boolean cancelUpdate = false; private Context mContext; /* 更新进度条 */ private ProgressBar mProgress; private Dialog mDownloadDialog; private Handler mHandler = new Handler() { @Override public void handleMessage(Message msg) { switch (msg.what) { case GETVERTION_FINISH: checkUpdate(); break; // 正在下载 case DOWNLOAD: // 设置进度条位置 mProgress.setProgress(progress); break; case DOWNLOAD_FINISH: // 安装文件 installApk(); break; default: break; } super.handleMessage(msg); }; }; public UpdateManager(Context context) { this.mContext = context; } /* * 开始检查更新------准备工作 */ public void beginCheckUpdate() { // 启动线程获取最新版本信息 new getNewVersionInfoThread().start(); } /** * 检测软件更新 */ public void checkUpdate() { if (isUpdate()) { // 显示提示对话框 showNoticeDialog(); } else { Toast.makeText(mContext, R.string.soft_update_no, Toast.LENGTH_LONG) .show(); } } /** * 检查软件是否有更新版本 * * @return */ private boolean isUpdate() { // 获取当前软件版本 int versionCode = getVersionCode(mContext); Log.i("xymoa", "xymoa----------------"+String.valueOf(versionCode) ); // 版本判断 if (newVerCode > versionCode) { return true; } return false; } /** * 从服务器端获取最新版本信息 * */ private class getNewVersionInfoThread extends Thread { @Override public void run() { String retString = ""; SoapObject soapObject = new SoapObject(Config.NAMESPACE, Config.METHOD_NAME); soapObject.addProperty("ProductID", ProductID); soapObject.addProperty("SNum", "0394cb6d-2575-4f73-92e9-6d402c39e20c"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.setOutputSoapObject(soapObject); envelope.bodyOut = soapObject; envelope.dotNet = true; envelope.encodingStyle = SoapEnvelope.ENC; @SuppressWarnings("deprecation") HttpTransportSE httpTranstation = new HttpTransportSE(Config.URL); try { httpTranstation.call(Config.SOAP_ACTION, envelope); Object result = envelope.getResponse(); retString = String.valueOf(result); String str = "anyType{}"; Log.i("moa", "moa1111111:---------------" + retString); if (retString != null & !str.equalsIgnoreCase(retString)) { newVerCode = Integer.parseInt(retString); mHandler.sendEmptyMessage(GETVERTION_FINISH); } } catch (Exception e) { System.out.println("失败!"); System.out.println(e); e.printStackTrace(); } } }; /** * 获取软件版本号 * * @param context * @return */ private int getVersionCode(Context context) { int versionCode = 0; try { // 获取软件版本号,对应AndroidManifest.xml下android:versionCode versionCode = context.getPackageManager().getPackageInfo( "trueInfo.ems", 0).versionCode; } catch (NameNotFoundException e) { e.printStackTrace(); } return versionCode; } /** * 显示软件更新对话框 */ private void showNoticeDialog() { // 构造对话框 AlertDialog.Builder builder = new Builder(mContext); builder.setTitle(R.string.soft_update_title); builder.setMessage(R.string.soft_update_info); // 更新 builder.setPositiveButton(R.string.soft_update_updatebtn, new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); // 显示下载对话框 showDownloadDialog(); } }); // 稍后更新 builder.setNegativeButton(R.string.soft_update_later, new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); Dialog noticeDialog = builder.create(); noticeDialog.show(); } /** * 显示软件下载对话框 */ private void showDownloadDialog() { // 构造软件下载对话框 AlertDialog.Builder builder = new Builder(mContext); builder.setTitle(R.string.soft_updating); // 给下载对话框增加进度条 final LayoutInflater inflater = LayoutInflater.from(mContext); View v = inflater.inflate(R.layout.softupdate_progress, null); mProgress = (ProgressBar) v.findViewById(R.id.update_progress); builder.setView(v); // 取消更新 builder.setNegativeButton(R.string.soft_update_cancel, new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); // 设置取消状态 cancelUpdate = true; } }); mDownloadDialog = builder.create(); builder.setCancelable(true); mDownloadDialog.show(); // 现在文件 downloadApk(); } /** * 下载apk文件 */ private void downloadApk() { // 启动新线程下载软件 new downloadApkThread().start(); } /** * 下载文件线程 * */ private class downloadApkThread extends Thread { @Override public void run() { try { // 判断SD卡是否存在,并且是否具有读写权限 if (Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED)) { // 获得存储卡的路径 String sdpath = Environment.getExternalStorageDirectory() + "/"; mSavePath = sdpath + "download"; URL url = new URL(Config.SOFT_URL); // 创建连接 HttpURLConnection conn = (HttpURLConnection) url .openConnection(); conn.connect(); // 获取文件大小 int length = conn.getContentLength(); // 创建输入流 InputStream is = conn.getInputStream(); File file = new File(mSavePath); // 判断文件目录是否存在 if (!file.exists()) { file.mkdir(); } File apkFile = new File(mSavePath, "EMS_1_0_1.APK"); FileOutputStream fos = new FileOutputStream(apkFile); int count = 0; // 缓存 byte buf[] = new byte[1024]; // 写入到文件中 do { int numread = is.read(buf); count += numread; // 计算进度条位置 progress = (int) (((float) count / length) * 100); // 更新进度 mHandler.sendEmptyMessage(DOWNLOAD); if (numread <= 0) { // 下载完成 mHandler.sendEmptyMessage(DOWNLOAD_FINISH); break; } // 写入文件 fos.write(buf, 0, numread); } while (!cancelUpdate);// 点击取消就停止下载. fos.close(); is.close(); } } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } // 取消下载对话框显示 mDownloadDialog.dismiss(); } }; /** * 安装APK文件 */ private void installApk() { File apkfile = new File(mSavePath, "EMS_1_0_1.APK"); if (!apkfile.exists()) { return; } // 通过Intent安装APK文件 Intent i = new Intent(Intent.ACTION_VIEW); i.setDataAndType(Uri.parse("file://" + apkfile.toString()), "application/vnd.android.package-archive"); mContext.startActivity(i); } }
bdafa69b610222167c2afd6fc0300783b4d8dcd7
bdef56992d1fa65c6c995a6f6fd1b95407b034fd
/android/app/src/debug/gen/co/appbrewery/navigation_demo_starter/Manifest.java
39dc07df7b1302fdd241ca6c0ecebf44b1da3177
[]
no_license
Hoxtygen/Navigation-Flutter-Demo
33419d8d7e3714014c415269cd6ffa442f1abb4e
2595f4e42a4404e4bda1dc137107aae8877b12ee
refs/heads/master
2022-12-12T05:47:58.680478
2020-09-18T06:16:36
2020-09-18T06:16:36
296,521,257
0
0
null
2020-09-18T06:16:37
2020-09-18T05:19:53
null
UTF-8
Java
false
false
207
java
/*___Generated_by_IDEA___*/ package co.appbrewery.navigation_demo_starter; /* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ public final class Manifest { }
a4a7a140437eb28bb50f1187d2932e1454e6a1b7
7af4696e1be38e22025a9662ba9591ba7fc83965
/components/camel-aws2-msk/src/test/java/org/apache/camel/component/aws2/msk/MSKProducerTest.java
cb6581c59630e32f251d25143050940dde5fad71
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-unknown", "Apache-2.0" ]
permissive
aashnajena/camel
740249630a720ae81294a43452c8789cdbf7bc00
e03647b378e10c99b44aab2ef56e134289816dbf
refs/heads/master
2021-03-12T03:06:31.216298
2020-07-19T23:51:13
2020-07-19T23:51:13
251,257,144
1
1
Apache-2.0
2020-03-30T09:20:10
2020-03-30T09:20:09
null
UTF-8
Java
false
false
6,642
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.camel.component.aws2.msk; import org.apache.camel.BindToRegistry; import org.apache.camel.EndpointInject; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.test.junit5.CamelTestSupport; import org.junit.jupiter.api.Test; import software.amazon.awssdk.services.kafka.model.BrokerNodeGroupInfo; import software.amazon.awssdk.services.kafka.model.ClusterState; import software.amazon.awssdk.services.kafka.model.CreateClusterResponse; import software.amazon.awssdk.services.kafka.model.DeleteClusterResponse; import software.amazon.awssdk.services.kafka.model.DescribeClusterResponse; import software.amazon.awssdk.services.kafka.model.ListClustersRequest; import software.amazon.awssdk.services.kafka.model.ListClustersResponse; import static org.junit.jupiter.api.Assertions.assertEquals; public class MSKProducerTest extends CamelTestSupport { @BindToRegistry("amazonMskClient") AmazonMSKClientMock clientMock = new AmazonMSKClientMock(); @EndpointInject("mock:result") private MockEndpoint mock; @Test public void mskListKeysTest() throws Exception { mock.expectedMessageCount(1); Exchange exchange = template.request("direct:listClusters", new Processor() { @Override public void process(Exchange exchange) throws Exception { } }); assertMockEndpointsSatisfied(); ListClustersResponse resultGet = (ListClustersResponse)exchange.getIn().getBody(); assertEquals(1, resultGet.clusterInfoList().size()); assertEquals("test-kafka", resultGet.clusterInfoList().get(0).clusterName()); } @Test public void mskListKeysPojoTest() throws Exception { mock.expectedMessageCount(1); Exchange exchange = template.request("direct:listClustersPojo", new Processor() { @Override public void process(Exchange exchange) throws Exception { exchange.getIn().setBody(ListClustersRequest.builder().maxResults(10).build()); } }); assertMockEndpointsSatisfied(); ListClustersResponse resultGet = (ListClustersResponse)exchange.getIn().getBody(); assertEquals(1, resultGet.clusterInfoList().size()); assertEquals("test-kafka", resultGet.clusterInfoList().get(0).clusterName()); } @Test public void mskCreateClusterTest() throws Exception { mock.expectedMessageCount(1); Exchange exchange = template.request("direct:createCluster", new Processor() { @Override public void process(Exchange exchange) throws Exception { exchange.getIn().setHeader(MSK2Constants.CLUSTER_NAME, "test-kafka"); exchange.getIn().setHeader(MSK2Constants.CLUSTER_KAFKA_VERSION, "2.1.1"); exchange.getIn().setHeader(MSK2Constants.BROKER_NODES_NUMBER, 2); BrokerNodeGroupInfo groupInfo = BrokerNodeGroupInfo.builder().build(); exchange.getIn().setHeader(MSK2Constants.BROKER_NODES_GROUP_INFO, groupInfo); } }); assertMockEndpointsSatisfied(); CreateClusterResponse resultGet = (CreateClusterResponse)exchange.getIn().getBody(); assertEquals("test-kafka", resultGet.clusterName()); assertEquals(ClusterState.CREATING.name(), resultGet.state().toString()); } @Test public void mskDeleteClusterTest() throws Exception { mock.expectedMessageCount(1); Exchange exchange = template.request("direct:deleteCluster", new Processor() { @Override public void process(Exchange exchange) throws Exception { exchange.getIn().setHeader(MSK2Constants.CLUSTER_ARN, "test-kafka"); } }); assertMockEndpointsSatisfied(); DeleteClusterResponse resultGet = (DeleteClusterResponse)exchange.getIn().getBody(); assertEquals("test-kafka", resultGet.clusterArn()); assertEquals(ClusterState.DELETING.name(), resultGet.state().toString()); } @Test public void mskDescribeClusterTest() throws Exception { mock.expectedMessageCount(1); Exchange exchange = template.request("direct:describeCluster", new Processor() { @Override public void process(Exchange exchange) throws Exception { exchange.getIn().setHeader(MSK2Constants.CLUSTER_ARN, "test-kafka"); } }); assertMockEndpointsSatisfied(); DescribeClusterResponse resultGet = (DescribeClusterResponse)exchange.getIn().getBody(); assertEquals("test-kafka", resultGet.clusterInfo().clusterArn()); assertEquals(ClusterState.ACTIVE.name(), resultGet.clusterInfo().state().toString()); } @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void configure() throws Exception { from("direct:listClusters").to("aws2-msk://test?mskClient=#amazonMskClient&operation=listClusters").to("mock:result"); from("direct:listClustersPojo").to("aws2-msk://test?mskClient=#amazonMskClient&operation=listClusters&pojoRequest=true").to("mock:result"); from("direct:createCluster").to("aws2-msk://test?mskClient=#amazonMskClient&operation=createCluster").to("mock:result"); from("direct:deleteCluster").to("aws2-msk://test?mskClient=#amazonMskClient&operation=deleteCluster").to("mock:result"); from("direct:describeCluster").to("aws2-msk://test?mskClient=#amazonMskClient&operation=describeCluster").to("mock:result"); } }; } }
c3f158663e28cda5fefefd2cd8517535e4de29bd
ad3256c78f38468aae7b8ba09efa866018d027c5
/HelloWorld/src/Hello.java
df8089b5459fae7a861d0593442dd36c1923e0f2
[]
no_license
amsktp/javaking
16109f440acb6589e61ff9b10e2f16f37b32f8ea
e102cbd26e7b57200a401e8d42fe65af1d029d58
refs/heads/master
2021-01-03T05:24:31.541750
2020-03-18T09:46:37
2020-03-18T09:46:37
239,940,638
0
0
null
null
null
null
UTF-8
Java
false
false
247
java
//1일차 public class Hello { public static void main(String[] args) { // TODO Auto-generated method stub // 한줄 주석 /*여러줄 주석*/ /** * api 주석 */ System.out.printf("hello java"); } }
[ "TJ@DESKTOP-J2LIGQ3" ]
TJ@DESKTOP-J2LIGQ3
8378287b60b232fa328ead7c2e624b98bd5142fb
5bf764b1d39f820fc2e757b254b0382281f9dc65
/src/main/java/company/michaels/TestClass.java
d5036d5ab68e5a9146877ff9be3453a8f1b08aa4
[]
no_license
shakti2491/prep-2.0
582f13e7eed29c7f87978f1ca01b076411d3a008
94e8ab7300d12caefc1456ff1341d915bf565f2b
refs/heads/main
2023-03-19T18:41:31.053631
2021-02-28T04:15:59
2021-02-28T04:15:59
319,985,270
0
0
null
null
null
null
UTF-8
Java
false
false
614
java
package company.michaels; import java.util.Arrays; import java.util.Comparator; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; public class TestClass { public static void main(String[] args) { Scanner s = new Scanner(System.in); String nString = s.nextLine(); Integer N = Integer.parseInt(nString); String arrString = s.nextLine(); String[] arr = arrString.split(" "); Integer i = Arrays.stream(arr).map(str -> Integer.parseInt(str)).min(Comparator.comparingInt(a -> a)).get(); System.out.println(N); } }
06ebd2504d69ec4251b0fe0ef72b777333cea36b
59935c71d0d82263b16d58cde8ba7e89b162c0fa
/src/main/java/com/primeton/jiaorongguo/demo/config/Swagger2Config.java
6156ea79abc8c5df7f6bf6a6466641d65e802b77
[]
no_license
Jrg199287/jiaorongguo-demo
0a392025332dbb92d583a673203b980a2c8d8e65
0f5efffe7edf8911b1a396b63bff5a1789de16ff
refs/heads/master
2020-04-07T18:48:56.188039
2018-11-22T05:53:58
2018-11-22T05:53:58
158,624,462
1
0
null
null
null
null
UTF-8
Java
false
false
2,983
java
package com.primeton.jiaorongguo.demo.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.service.ApiKey; import springfox.documentation.service.AuthorizationScope; import springfox.documentation.service.SecurityReference; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spi.service.contexts.SecurityContext; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; import java.util.List; import static com.google.common.collect.Lists.newArrayList; /** * Swagger2配置类 * * @Description: Swagger2配置类 * @Author: 作者姓名 * @CreateDate: 2018/10/29 17:18 * @UpdateUser: jiaorongguo * @UpdateDate: 2018/10/29 17:18 * @Version: 1.0 * 身无彩凤双飞翼,心有灵犀一点通。 */ @Configuration @EnableSwagger2 public class Swagger2Config extends WebMvcConfigurerAdapter { @Bean public Docket createRestApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()) .select() .apis(RequestHandlerSelectors.basePackage("com.primeton.jiaorongguo.demo.controller")) .paths(PathSelectors.any()) .build(); // .securitySchemes(securitySchemes()) // .securityContexts(securityContexts()); } // // /** // * 配置认证模式 // */ // private List<ApiKey> securitySchemes() { // return newArrayList(new ApiKey("Authorization", "Authorization", "header")); // } // /** // * 配置认证上下文 // */ // private List<SecurityContext> securityContexts() { // return newArrayList(SecurityContext.builder() // .securityReferences(defaultAuth()) // .forPaths(PathSelectors.any()) // .build()); // } // // private List<SecurityReference> defaultAuth() { // AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything"); // AuthorizationScope[] authorizationScopes = new AuthorizationScope[1]; // authorizationScopes[0] = authorizationScope; // return newArrayList(new SecurityReference("Authorization", authorizationScopes)); // } /** * 项目信息 */ private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("jiaorongguo-demo") .description("springboot-demo接口") .version("1.0") .termsOfServiceUrl("swagger-ui.html") .build(); } }
036341bcf1e216a5964347c54327eaf1cb946497
55fbd6ca9318d3adac98050a069ca4ca826da46f
/src/main/java/com/dewpoint/rts/service/CandidateService.java
091fba429bb33282c20600afbe50d960befa85d2
[]
no_license
KartikShankarappa/rts-service
b86b6bc1eb7fd8288726d54c3c35272d4d0d430e
76d418a3f28b5b78b2372e1a6ea767d6eebb5bd0
refs/heads/master
2020-03-12T08:04:38.846705
2018-04-21T23:31:45
2018-04-21T23:31:45
130,519,685
0
0
null
null
null
null
UTF-8
Java
false
false
4,309
java
package com.dewpoint.rts.service; import com.dewpoint.rts.dao.CandidateDao; import com.dewpoint.rts.dto.CandidateDTO; import com.dewpoint.rts.dto.CandidateRequestDTO; import com.dewpoint.rts.dto.CandidateResponseDTO; import com.dewpoint.rts.dto.CandidateSearchRequestDTO; import com.dewpoint.rts.mapper.CandidateMapper; import com.dewpoint.rts.model.Candidate; import org.springframework.stereotype.Component; import java.security.Principal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @Component public class CandidateService { private CandidateMapper candidateMapper; private CandidateDao candidateDao; public CandidateService(CandidateDao candidateDao, CandidateMapper candidateMapper) { this.candidateDao = candidateDao; this.candidateMapper = candidateMapper; } public CandidateResponseDTO retrieveAllCandidates() { CandidateResponseDTO response = new CandidateResponseDTO(); List<Candidate> candidates = this.candidateDao.findAll(); if(!candidates.isEmpty()) { List<CandidateDTO> candidateList = new ArrayList<>(); for(Candidate aCandidate: candidates) { candidateList.add(candidateMapper.convertEntityToDTO(aCandidate)); } response.setCandidates(candidateList); } return response; } public void createCandidate(CandidateRequestDTO candidateRequestDTO, Principal principal) { Candidate searchCandidate = candidateMapper.formatSearchEntry(candidateRequestDTO); Integer avoidDuplicateUserId = null; List<Candidate> candidates = this.candidateDao.findByEntity(searchCandidate); if(candidates != null && !candidates.isEmpty() && candidates.size() > 0) { avoidDuplicateUserId = candidates.size(); } Candidate candidate = candidateMapper.formatCreateEntry(candidateRequestDTO, avoidDuplicateUserId, principal); this.candidateDao.create(candidate); } public void updateCandidate(CandidateRequestDTO candidateRequestDTO, Principal principal) { Candidate searchCandidate = candidateMapper.formatSearchEntry(candidateRequestDTO); List<Candidate> candidates = this.candidateDao.findByEntity(searchCandidate); if(!candidates.isEmpty()) { Candidate candidate = candidateMapper.formatUpdateEntry(candidates.get(0), candidateRequestDTO, principal); this.candidateDao.update(candidate); } } public CandidateResponseDTO searchCandidates(String candidateId) { CandidateResponseDTO response = new CandidateResponseDTO(); Map<String, String> params = new HashMap<>(); params.put("candidateId", candidateId); List<Candidate> candidates = this.candidateDao.findByNamedQueryAndNamedParams("Candidate.findSpecific", params); if(!candidates.isEmpty()) { List<CandidateDTO> candidatesList = new ArrayList<>(); for(Candidate aCandidate: candidates) { candidatesList.add(candidateMapper.convertEntityToDTO(aCandidate)); } response.setCandidates(candidatesList); } return response; } public CandidateResponseDTO searchCandidates(CandidateSearchRequestDTO requestDTO) { CandidateResponseDTO response = new CandidateResponseDTO(); Candidate searchEntity = new Candidate(); searchEntity.setStatus(requestDTO.getStatus()); searchEntity.setSource(requestDTO.getSource()); searchEntity.setSkills(requestDTO.getSkills()); searchEntity.setClientName(requestDTO.getClientName()); searchEntity.setClientCity(requestDTO.getClientCity()); searchEntity.setClientState(requestDTO.getClientState()); searchEntity.setClientZip(requestDTO.getClientZip()); List<Candidate> candidates = this.candidateDao.findByEntity(searchEntity); if(!candidates.isEmpty()) { List<CandidateDTO> candidatesList = new ArrayList<>(); for(Candidate aCandidate: candidates) { candidatesList.add(candidateMapper.convertEntityToDTO(aCandidate)); } response.setCandidates(candidatesList); } return response; } }
0a971c799591286d15fcf66369884f177ee39c28
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/31/31_05be0cf9c7c2d7241de41737fefd8aee15f57461/JGAAP_UI_MainForm/31_05be0cf9c7c2d7241de41737fefd8aee15f57461_JGAAP_UI_MainForm_t.java
525f75d0d7d15ed12501b4218e94e0f376d491f1
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
171,910
java
// Copyright (c) 2009, 2011 by Patrick Juola. All rights reserved. All unauthorized use prohibited. package com.jgaap.ui; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * JGAAP_UI_MainForm.java * * Created on Nov 2, 2010, 1:14:56 PM */ /** * * @author Patrick Brennan */ //Package Imports import java.util.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.File; import javax.swing.*; import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelListener; import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.TreeSelectionModel; import javax.swing.tree.TreePath; import javax.swing.table.DefaultTableModel; //import java.awt.event.*; import com.jgaap.generics.*; import com.jgaap.jgaapConstants; import com.jgaap.backend.API; import com.jgaap.backend.CSVIO; import java.awt.Color; import java.io.IOException; public class JGAAP_UI_MainForm extends javax.swing.JFrame { private static final long serialVersionUID = 1L; JGAAP_UI_NotesDialog NotesPage = new JGAAP_UI_NotesDialog(JGAAP_UI_MainForm.this, true); JGAAP_UI_ResultsDialog ResultsPage = new JGAAP_UI_ResultsDialog(JGAAP_UI_MainForm.this, false); String[] Notes = new String [5]; DefaultListModel AnalysisMethodListBox_Model = new DefaultListModel(); DefaultListModel SelectedAnalysisMethodListBox_Model = new DefaultListModel(); DefaultListModel CanonicizerListBox_Model = new DefaultListModel(); DefaultListModel SelectedCanonicizerListBox_Model = new DefaultListModel(); DefaultListModel EventCullingListBox_Model = new DefaultListModel(); DefaultListModel SelectedEventCullingListBox_Model = new DefaultListModel(); DefaultListModel EventSetsListBox_Model = new DefaultListModel(); DefaultListModel SelectedEventSetsListBox_Model = new DefaultListModel(); DefaultListModel DistanceFunctionsListBox_Model = new DefaultListModel(); DefaultComboBoxModel LanguageComboBox_Model = new DefaultComboBoxModel(); DefaultTreeModel KnownAuthorsTree_Model = new DefaultTreeModel(new DefaultMutableTreeNode("Authors")); DefaultTableModel UnknownAuthorDocumentsTable_Model = new DefaultTableModel() { private static final long serialVersionUID = 1L; @Override public boolean isCellEditable(int row, int column) { if (column == 0) { return true; } else { return false; } } }; DefaultTableModel DocumentsTable_Model = new DefaultTableModel() { private static final long serialVersionUID = 1L; @Override public boolean isCellEditable(int row, int column) { return false; } }; API JGAAP_API = new API(); JFileChooser FileChoser; String filepath = ".."; List<Canonicizer> CanonicizerMasterList = JGAAP_API.getAllCanonicizers(); List<EventDriver> EventDriverMasterList = JGAAP_API.getAllEventDrivers(); List<AnalysisDriver> AnalysisDriverMasterList = JGAAP_API.getAllAnalysisDrivers(); List<DistanceFunction> DistanceFunctionsMasterList = JGAAP_API.getAllDistanceFunctions(); List<EventCuller> EventCullersMasterList = JGAAP_API.getAllEventCullers(); List<Language> LanguagesMasterList = JGAAP_API.getAllLanguages(); List<EventDriver> SelectedEventDriverList = new ArrayList<EventDriver>(); List<EventCuller> SelectedEventCullersList = new ArrayList<EventCuller>(); List<AnalysisDriver> SelectedAnalysisDriverList = new ArrayList<AnalysisDriver>(); List<Canonicizer> SelectedCanonicizerList = new ArrayList<Canonicizer>(); List<Document> UnknownDocumentList = new ArrayList<Document>(); List<Document> KnownDocumentList = new ArrayList<Document>(); List<Document> DocumentList = new ArrayList<Document>(); List<String> AuthorList = new ArrayList<String>(); /** Creates new form JGAAP_UI_MainForm */ public JGAAP_UI_MainForm() { initComponents(); SanatizeMasterLists(); SetAnalysisMethodList(); SetDistanceFunctionList(); SetCanonicizerList(); SetEventSetList(); SetEventCullingList(); SetUnknownDocumentColumns(); SetKnownDocumentTree(); SetDocumentColumns(); SetLanguagesList(); SelectedEventDriverList.clear(); SelectedAnalysisDriverList.clear(); CheckMinimumRequirements(); // DefaultMutableTreeNode top = new DefaultMutableTreeNode("The Java Series"); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings({ "deprecation" }) // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { helpDialog = new javax.swing.JDialog(); helpCloseButton = new javax.swing.JButton(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel23 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jLabel26 = new javax.swing.JLabel(); JGAAP_TabbedPane = new javax.swing.JTabbedPane(); JGAAP_DocumentsPanel = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); DocumentsPanel_UnknownAuthorsTable = new javax.swing.JTable(); jScrollPane2 = new javax.swing.JScrollPane(); DocumentsPanel_KnownAuthorsTree = new javax.swing.JTree(); DocumentsPanel_AddDocumentsButton = new javax.swing.JButton(); DocumentsPanel_RemoveDocumentsButton = new javax.swing.JButton(); DocumentsPanel_AddAuthorButton = new javax.swing.JButton(); DocumentsPanel_EditAuthorButton = new javax.swing.JButton(); DocumentsPanel_RemoveAuthorButton = new javax.swing.JButton(); DocumentsPanel_NotesButton = new javax.swing.JButton(); jLabel10 = new javax.swing.JLabel(); DocumentsPanel_LanguageComboBox = new javax.swing.JComboBox(); JGAAP_CanonicizerPanel = new javax.swing.JPanel(); CanonicizersPanel_RemoveCanonicizerButton = new javax.swing.JButton(); jLabel27 = new javax.swing.JLabel(); CanonicizersPanel_NotesButton = new javax.swing.JButton(); jScrollPane11 = new javax.swing.JScrollPane(); CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox = new javax.swing.JTextArea(); CanonicizersPanel_AddCanonicizerButton = new javax.swing.JButton(); CanonicizersPanel_AddAllCanonicizersButton = new javax.swing.JButton(); jScrollPane12 = new javax.swing.JScrollPane(); CanonicizersPanel_CanonicizerListBox = new javax.swing.JList(); jScrollPane13 = new javax.swing.JScrollPane(); CanonicizersPanel_SelectedCanonicizerListBox = new javax.swing.JList(); CanonicizersPanel_RemoveAllCanonicizersButton = new javax.swing.JButton(); jLabel31 = new javax.swing.JLabel(); jScrollPane20 = new javax.swing.JScrollPane(); CanonicizersPanel_DocumentsTable = new javax.swing.JTable(); jScrollPane21 = new javax.swing.JScrollPane(); CanonicizersPanel_DocumentsCurrentCanonicizersTextBox = new javax.swing.JTextArea(); CanonicizersPanel_SetToDocumentButton = new javax.swing.JButton(); CanonicizersPanel_SetToDocumentTypeButton = new javax.swing.JButton(); CanonicizersPanel_SetToAllDocuments = new javax.swing.JButton(); jLabel29 = new javax.swing.JLabel(); jLabel30 = new javax.swing.JLabel(); jLabel32 = new javax.swing.JLabel(); jLabel33 = new javax.swing.JLabel(); jLabel34 = new javax.swing.JLabel(); JGAAP_EventSetsPanel = new javax.swing.JPanel(); EventSetsPanel_NotesButton = new javax.swing.JButton(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jScrollPane9 = new javax.swing.JScrollPane(); EventSetsPanel_EventSetListBox = new javax.swing.JList(); jScrollPane10 = new javax.swing.JScrollPane(); EventSetsPanel_SelectedEventSetListBox = new javax.swing.JList(); EventSetsPanel_ParametersPanel = new javax.swing.JPanel(); jScrollPane6 = new javax.swing.JScrollPane(); EventSetsPanel_EventSetDescriptionTextBox = new javax.swing.JTextArea(); EventSetsPanel_AddEventSetButton = new javax.swing.JButton(); EventSetsPanel_RemoveEventSetButton = new javax.swing.JButton(); EventSetsPanel_AddAllEventSetsButton = new javax.swing.JButton(); EventSetsPanel_RemoveAllEventSetsButton = new javax.swing.JButton(); JGAAP_EventCullingPanel = new javax.swing.JPanel(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); EventCullingPanel_NotesButton = new javax.swing.JButton(); jScrollPane14 = new javax.swing.JScrollPane(); EventCullingPanel_SelectedEventCullingListBox = new javax.swing.JList(); EventCullingPanel_AddEventCullingButton = new javax.swing.JButton(); EventCullingPanel_RemoveEventCullingButton = new javax.swing.JButton(); EventCullingPanel_AddAllEventCullingButton = new javax.swing.JButton(); EventCullingPanel_RemoveAllEventCullingButton = new javax.swing.JButton(); EventCullingPanel_ParametersPanel = new javax.swing.JPanel(); jScrollPane15 = new javax.swing.JScrollPane(); EventCullingPanel_EventCullingListBox = new javax.swing.JList(); jScrollPane16 = new javax.swing.JScrollPane(); EventCullingPanel_EventCullingDescriptionTextbox = new javax.swing.JTextArea(); jLabel18 = new javax.swing.JLabel(); JGAAP_AnalysisMethodPanel = new javax.swing.JPanel(); jLabel20 = new javax.swing.JLabel(); jLabel21 = new javax.swing.JLabel(); jLabel22 = new javax.swing.JLabel(); AnalysisMethodPanel_NotesButton = new javax.swing.JButton(); jScrollPane17 = new javax.swing.JScrollPane(); AnalysisMethodPanel_SelectedAnalysisMethodsListBox = new javax.swing.JList(); AnalysisMethodPanel_AddAnalysisMethodButton = new javax.swing.JButton(); AnalysisMethodPanel_RemoveAnalysisMethodsButton = new javax.swing.JButton(); AnalysisMethodPanel_AddAllAnalysisMethodsButton = new javax.swing.JButton(); AnalysisMethodPanel_RemoveAllAnalysisMethodsButton = new javax.swing.JButton(); AnalysisMethodPanel_AMParametersPanel = new javax.swing.JPanel(); jScrollPane18 = new javax.swing.JScrollPane(); AnalysisMethodPanel_AnalysisMethodsListBox = new javax.swing.JList(); jLabel28 = new javax.swing.JLabel(); jScrollPane19 = new javax.swing.JScrollPane(); AnalysisMethodPanel_AnalysisMethodDescriptionTextBox = new javax.swing.JTextArea(); jScrollPane22 = new javax.swing.JScrollPane(); AnalysisMethodPanel_DistanceFunctionsListBox = new javax.swing.JList(); jLabel35 = new javax.swing.JLabel(); jScrollPane23 = new javax.swing.JScrollPane(); AnalysisMethodPanel_DistanceFunctionDescriptionTextBox = new javax.swing.JTextArea(); jLabel36 = new javax.swing.JLabel(); AnalysisMethodPanel_DFParametersPanel = new javax.swing.JPanel(); jLabel37 = new javax.swing.JLabel(); JGAAP_ReviewPanel = new javax.swing.JPanel(); ReviewPanel_ProcessButton = new javax.swing.JButton(); ReviewPanel_DocumentsLabel = new javax.swing.JLabel(); jScrollPane24 = new javax.swing.JScrollPane(); ReviewPanel_DocumentsTable = new javax.swing.JTable(); ReviewPanel_SelectedEventSetLabel = new javax.swing.JLabel(); ReviewPanel_SelectedEventCullingLabel = new javax.swing.JLabel(); ReviewPanel_SelectedAnalysisMethodsLabel = new javax.swing.JLabel(); jScrollPane25 = new javax.swing.JScrollPane(); ReviewPanel_SelectedEventSetListBox = new javax.swing.JList(); jScrollPane26 = new javax.swing.JScrollPane(); ReviewPanel_SelectedEventCullingListBox = new javax.swing.JList(); jScrollPane27 = new javax.swing.JScrollPane(); ReviewPanel_SelectedAnalysisMethodsListBox = new javax.swing.JList(); Next_Button = new javax.swing.JButton(); Review_Button = new javax.swing.JButton(); JGAAP_MenuBar = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu4 = new javax.swing.JMenu(); BatchSaveMenuItem = new javax.swing.JMenuItem(); BatchLoadMenuItem = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); ProblemAMenuItem = new javax.swing.JMenuItem(); ProblemBMenuItem = new javax.swing.JMenuItem(); ProblemCMenuItem = new javax.swing.JMenuItem(); ProblemDMenuItem = new javax.swing.JMenuItem(); ProblemEMenuItem = new javax.swing.JMenuItem(); ProblemFMenuItem = new javax.swing.JMenuItem(); ProblemGMenuItem = new javax.swing.JMenuItem(); ProblemHMenuItem = new javax.swing.JMenuItem(); ProblemIMenuItem = new javax.swing.JMenuItem(); ProblemJMenuItem = new javax.swing.JMenuItem(); ProblemKMenuItem = new javax.swing.JMenuItem(); ProblemLMenuItem = new javax.swing.JMenuItem(); ProblemMMenuItem = new javax.swing.JMenuItem(); exitMenuItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); aboutMenuItem = new javax.swing.JMenuItem(); helpDialog.setTitle("About"); helpDialog.setMinimumSize(new java.awt.Dimension(520, 300)); helpDialog.setResizable(false); helpCloseButton.setText("close"); helpCloseButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { helpCloseButtonActionPerformed(evt); } }); jLabel11.setFont(new java.awt.Font("Lucida Grande", 0, 24)); jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel11.setText("JGAAP 5.0"); jLabel12.setText("<html> JGAAP, the Java Graphical Authorship Attribution Program, <br/>is an opensource author attribution / text classification tool <br/>Developed by the EVL lab (Evaluating Variation in Language Labratory) <br/> Released by Patrick Juola under the GPL v3.0"); jLabel13.setText("2011 EVL lab"); jLabel23.setForeground(new java.awt.Color(0, 0, 255)); jLabel23.setText("http://evllabs.com"); jLabel23.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel23MouseClicked(evt); } }); jLabel24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jgaap/ui/resources/jgaap_icon.png"))); // NOI18N jLabel25.setForeground(new java.awt.Color(0, 0, 255)); jLabel25.setText("http://jgaap.com"); jLabel25.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel25MouseClicked(evt); } }); jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jgaap/ui/resources/EVLlab_icon.png"))); // NOI18N javax.swing.GroupLayout helpDialogLayout = new javax.swing.GroupLayout(helpDialog.getContentPane()); helpDialog.getContentPane().setLayout(helpDialogLayout); helpDialogLayout.setHorizontalGroup( helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(helpDialogLayout.createSequentialGroup() .addGroup(helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(helpDialogLayout.createSequentialGroup() .addContainerGap() .addGroup(helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(helpDialogLayout.createSequentialGroup() .addComponent(jLabel24) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel26)) .addComponent(helpCloseButton, javax.swing.GroupLayout.Alignment.TRAILING))) .addGroup(helpDialogLayout.createSequentialGroup() .addGap(199, 199, 199) .addGroup(helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel23) .addGroup(helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel13) .addComponent(jLabel25)))) .addGroup(helpDialogLayout.createSequentialGroup() .addGap(58, 58, 58) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 452, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); helpDialogLayout.setVerticalGroup( helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(helpDialogLayout.createSequentialGroup() .addGroup(helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(helpDialogLayout.createSequentialGroup() .addGroup(helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel24) .addGroup(helpDialogLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, helpDialogLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel11) .addGap(44, 44, 44))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel23) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel25) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE) .addGroup(helpDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(helpCloseButton) .addComponent(jLabel13)) .addContainerGap()) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("JGAAP"); JGAAP_TabbedPane.setName("JGAAP_TabbedPane"); // NOI18N jLabel1.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel1.setText("Unknown Authors"); jLabel2.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel2.setText("Known Authors"); DocumentsPanel_UnknownAuthorsTable.setModel(UnknownAuthorDocumentsTable_Model); DocumentsPanel_UnknownAuthorsTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_LAST_COLUMN); DocumentsPanel_UnknownAuthorsTable.setColumnSelectionAllowed(true); DocumentsPanel_UnknownAuthorsTable.getTableHeader().setReorderingAllowed(false); jScrollPane1.setViewportView(DocumentsPanel_UnknownAuthorsTable); DocumentsPanel_UnknownAuthorsTable.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); DocumentsPanel_KnownAuthorsTree.setModel(KnownAuthorsTree_Model); DocumentsPanel_KnownAuthorsTree.setShowsRootHandles(true); jScrollPane2.setViewportView(DocumentsPanel_KnownAuthorsTree); DocumentsPanel_AddDocumentsButton.setText("Add Document"); DocumentsPanel_AddDocumentsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DocumentsPanel_AddDocumentsButtonActionPerformed(evt); } }); DocumentsPanel_RemoveDocumentsButton.setText("Remove Document"); DocumentsPanel_RemoveDocumentsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DocumentsPanel_RemoveDocumentsButtonActionPerformed(evt); } }); DocumentsPanel_AddAuthorButton.setLabel("Add Author"); DocumentsPanel_AddAuthorButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DocumentsPanel_AddAuthorButtonActionPerformed(evt); } }); DocumentsPanel_EditAuthorButton.setLabel("Edit Author"); DocumentsPanel_EditAuthorButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DocumentsPanel_EditAuthorButtonActionPerformed(evt); } }); DocumentsPanel_RemoveAuthorButton.setLabel("Remove Author"); DocumentsPanel_RemoveAuthorButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DocumentsPanel_RemoveAuthorButtonActionPerformed(evt); } }); DocumentsPanel_NotesButton.setLabel("Notes"); DocumentsPanel_NotesButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DocumentsPanel_NotesButtonActionPerformed(evt); } }); jLabel10.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel10.setText("Language"); DocumentsPanel_LanguageComboBox.setModel(LanguageComboBox_Model); DocumentsPanel_LanguageComboBox.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { DocumentsPanel_LanguageComboBoxActionPerformed(evt); } }); javax.swing.GroupLayout JGAAP_DocumentsPanelLayout = new javax.swing.GroupLayout(JGAAP_DocumentsPanel); JGAAP_DocumentsPanel.setLayout(JGAAP_DocumentsPanelLayout); JGAAP_DocumentsPanelLayout.setHorizontalGroup( JGAAP_DocumentsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_DocumentsPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_DocumentsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 824, Short.MAX_VALUE) .addGroup(JGAAP_DocumentsPanelLayout.createSequentialGroup() .addGroup(JGAAP_DocumentsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel10) .addComponent(DocumentsPanel_LanguageComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 656, Short.MAX_VALUE) .addComponent(DocumentsPanel_NotesButton)) .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 824, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, JGAAP_DocumentsPanelLayout.createSequentialGroup() .addGroup(JGAAP_DocumentsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addGroup(JGAAP_DocumentsPanelLayout.createSequentialGroup() .addComponent(DocumentsPanel_AddDocumentsButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DocumentsPanel_RemoveDocumentsButton)) .addComponent(jLabel2)) .addGap(512, 512, 512)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, JGAAP_DocumentsPanelLayout.createSequentialGroup() .addComponent(DocumentsPanel_AddAuthorButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DocumentsPanel_EditAuthorButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DocumentsPanel_RemoveAuthorButton))) .addContainerGap()) ); JGAAP_DocumentsPanelLayout.setVerticalGroup( JGAAP_DocumentsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_DocumentsPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_DocumentsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(DocumentsPanel_NotesButton) .addGroup(JGAAP_DocumentsPanelLayout.createSequentialGroup() .addComponent(jLabel10) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DocumentsPanel_LanguageComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_DocumentsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(DocumentsPanel_RemoveDocumentsButton) .addComponent(DocumentsPanel_AddDocumentsButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_DocumentsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(DocumentsPanel_RemoveAuthorButton) .addComponent(DocumentsPanel_EditAuthorButton) .addComponent(DocumentsPanel_AddAuthorButton)) .addContainerGap()) ); JGAAP_TabbedPane.addTab("Documents", JGAAP_DocumentsPanel); CanonicizersPanel_RemoveCanonicizerButton.setText("<"); CanonicizersPanel_RemoveCanonicizerButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CanonicizersPanel_RemoveCanonicizerButtonActionPerformed(evt); } }); jLabel27.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N jLabel27.setText("Documents"); CanonicizersPanel_NotesButton.setLabel("Notes"); CanonicizersPanel_NotesButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CanonicizersPanel_NotesButtonActionPerformed(evt); } }); CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox.setColumns(20); CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox.setLineWrap(true); CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox.setRows(5); CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox.setWrapStyleWord(true); jScrollPane11.setViewportView(CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox); CanonicizersPanel_AddCanonicizerButton.setText(">"); CanonicizersPanel_AddCanonicizerButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CanonicizersPanel_AddCanonicizerButtonActionPerformed(evt); } }); CanonicizersPanel_AddAllCanonicizersButton.setText("All"); CanonicizersPanel_AddAllCanonicizersButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CanonicizersPanel_AddAllCanonicizersButtonActionPerformed(evt); } }); CanonicizersPanel_CanonicizerListBox.setModel(CanonicizerListBox_Model); CanonicizersPanel_CanonicizerListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); CanonicizersPanel_CanonicizerListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { CanonicizersPanel_CanonicizerListBoxMouseClicked(evt); } }); CanonicizersPanel_CanonicizerListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { CanonicizersPanel_CanonicizerListBoxMouseMoved(evt); } }); jScrollPane12.setViewportView(CanonicizersPanel_CanonicizerListBox); CanonicizersPanel_SelectedCanonicizerListBox.setModel(SelectedCanonicizerListBox_Model); CanonicizersPanel_SelectedCanonicizerListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); CanonicizersPanel_SelectedCanonicizerListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { CanonicizersPanel_SelectedCanonicizerListBoxMouseClicked(evt); } }); CanonicizersPanel_SelectedCanonicizerListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { CanonicizersPanel_SelectedCanonicizerListBoxMouseMoved(evt); } }); jScrollPane13.setViewportView(CanonicizersPanel_SelectedCanonicizerListBox); CanonicizersPanel_RemoveAllCanonicizersButton.setText("Clear"); CanonicizersPanel_RemoveAllCanonicizersButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CanonicizersPanel_RemoveAllCanonicizersButtonActionPerformed(evt); } }); jLabel31.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel31.setText("Document's Current Canonicizers"); CanonicizersPanel_DocumentsTable.setModel(DocumentsTable_Model); jScrollPane20.setViewportView(CanonicizersPanel_DocumentsTable); CanonicizersPanel_DocumentsCurrentCanonicizersTextBox.setColumns(20); CanonicizersPanel_DocumentsCurrentCanonicizersTextBox.setLineWrap(true); CanonicizersPanel_DocumentsCurrentCanonicizersTextBox.setRows(5); CanonicizersPanel_DocumentsCurrentCanonicizersTextBox.setWrapStyleWord(true); jScrollPane21.setViewportView(CanonicizersPanel_DocumentsCurrentCanonicizersTextBox); CanonicizersPanel_SetToDocumentButton.setText("Set to Doc"); CanonicizersPanel_SetToDocumentButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CanonicizersPanel_SetToDocumentButtonActionPerformed(evt); } }); CanonicizersPanel_SetToDocumentTypeButton.setText("Set to Doc Type"); CanonicizersPanel_SetToDocumentTypeButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CanonicizersPanel_SetToDocumentTypeButtonActionPerformed(evt); } }); CanonicizersPanel_SetToAllDocuments.setText("Set to All Docs"); CanonicizersPanel_SetToAllDocuments.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CanonicizersPanel_SetToAllDocumentsActionPerformed(evt); } }); jLabel29.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel29.setText("Selected"); jLabel30.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel30.setText("Canonicizers"); jLabel32.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel32.setText("Canonicizer Description"); jLabel33.setText("Note: These buttons are used to add"); jLabel34.setText("selected canonicizers to documents."); javax.swing.GroupLayout JGAAP_CanonicizerPanelLayout = new javax.swing.GroupLayout(JGAAP_CanonicizerPanel); JGAAP_CanonicizerPanel.setLayout(JGAAP_CanonicizerPanelLayout); JGAAP_CanonicizerPanelLayout.setHorizontalGroup( JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel30) .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(CanonicizersPanel_AddCanonicizerButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CanonicizersPanel_RemoveCanonicizerButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CanonicizersPanel_AddAllCanonicizersButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CanonicizersPanel_RemoveAllCanonicizersButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)) .addComponent(jLabel33) .addComponent(jLabel34)) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(CanonicizersPanel_SetToDocumentTypeButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE) .addComponent(jLabel29) .addComponent(CanonicizersPanel_SetToDocumentButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE) .addComponent(jScrollPane13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE) .addComponent(CanonicizersPanel_SetToAllDocuments, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane20, javax.swing.GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addComponent(jLabel27) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 255, Short.MAX_VALUE) .addComponent(CanonicizersPanel_NotesButton)))) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPane21, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel31, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel32) .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)))) .addContainerGap()) ); JGAAP_CanonicizerPanelLayout.setVerticalGroup( JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel27) .addComponent(jLabel30) .addComponent(jLabel29)) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addGap(5, 5, 5) .addComponent(CanonicizersPanel_NotesButton))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane20, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addComponent(CanonicizersPanel_AddCanonicizerButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(CanonicizersPanel_RemoveCanonicizerButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(CanonicizersPanel_AddAllCanonicizersButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(CanonicizersPanel_RemoveAllCanonicizersButton)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE) .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(CanonicizersPanel_SetToDocumentButton))) .addGap(6, 6, 6) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addComponent(jLabel33) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel34) .addGap(18, 18, 18)) .addGroup(JGAAP_CanonicizerPanelLayout.createSequentialGroup() .addComponent(CanonicizersPanel_SetToDocumentTypeButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CanonicizersPanel_SetToAllDocuments))))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel31) .addComponent(jLabel32)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_CanonicizerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane21, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); JGAAP_TabbedPane.addTab("Canonicizers", JGAAP_CanonicizerPanel); EventSetsPanel_NotesButton.setLabel("Notes"); EventSetsPanel_NotesButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventSetsPanel_NotesButtonActionPerformed(evt); } }); jLabel6.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N jLabel6.setText("Event Drivers"); jLabel7.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel7.setText("Parameters"); jLabel8.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel8.setText("Event Driver Description"); jLabel9.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel9.setText("Selected"); EventSetsPanel_EventSetListBox.setModel(EventSetsListBox_Model); EventSetsPanel_EventSetListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); EventSetsPanel_EventSetListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { EventSetsPanel_EventSetListBoxMouseClicked(evt); } }); EventSetsPanel_EventSetListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { EventSetsPanel_EventSetListBoxMouseMoved(evt); } }); jScrollPane9.setViewportView(EventSetsPanel_EventSetListBox); EventSetsPanel_SelectedEventSetListBox.setModel(SelectedEventSetsListBox_Model); EventSetsPanel_SelectedEventSetListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); EventSetsPanel_SelectedEventSetListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { EventSetsPanel_SelectedEventSetListBoxMouseClicked(evt); } }); EventSetsPanel_SelectedEventSetListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { EventSetsPanel_SelectedEventSetListBoxMouseMoved(evt); } }); jScrollPane10.setViewportView(EventSetsPanel_SelectedEventSetListBox); EventSetsPanel_ParametersPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); javax.swing.GroupLayout EventSetsPanel_ParametersPanelLayout = new javax.swing.GroupLayout(EventSetsPanel_ParametersPanel); EventSetsPanel_ParametersPanel.setLayout(EventSetsPanel_ParametersPanelLayout); EventSetsPanel_ParametersPanelLayout.setHorizontalGroup( EventSetsPanel_ParametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 344, Short.MAX_VALUE) ); EventSetsPanel_ParametersPanelLayout.setVerticalGroup( EventSetsPanel_ParametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); EventSetsPanel_EventSetDescriptionTextBox.setColumns(20); EventSetsPanel_EventSetDescriptionTextBox.setLineWrap(true); EventSetsPanel_EventSetDescriptionTextBox.setRows(5); EventSetsPanel_EventSetDescriptionTextBox.setWrapStyleWord(true); jScrollPane6.setViewportView(EventSetsPanel_EventSetDescriptionTextBox); EventSetsPanel_AddEventSetButton.setText(">"); EventSetsPanel_AddEventSetButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventSetsPanel_AddEventSetButtonActionPerformed(evt); } }); EventSetsPanel_RemoveEventSetButton.setText("<"); EventSetsPanel_RemoveEventSetButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventSetsPanel_RemoveEventSetButtonActionPerformed(evt); } }); EventSetsPanel_AddAllEventSetsButton.setText("All"); EventSetsPanel_AddAllEventSetsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventSetsPanel_AddAllEventSetsButtonActionPerformed(evt); } }); EventSetsPanel_RemoveAllEventSetsButton.setText("Clear"); EventSetsPanel_RemoveAllEventSetsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventSetsPanel_RemoveAllEventSetsButtonActionPerformed(evt); } }); javax.swing.GroupLayout JGAAP_EventSetsPanelLayout = new javax.swing.GroupLayout(JGAAP_EventSetsPanel); JGAAP_EventSetsPanel.setLayout(JGAAP_EventSetsPanelLayout); JGAAP_EventSetsPanelLayout.setHorizontalGroup( JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_EventSetsPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 824, Short.MAX_VALUE) .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_EventSetsPanelLayout.createSequentialGroup() .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(EventSetsPanel_RemoveEventSetButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(EventSetsPanel_AddAllEventSetsButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(EventSetsPanel_AddEventSetButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(EventSetsPanel_RemoveAllEventSetsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel9) .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_EventSetsPanelLayout.createSequentialGroup() .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 163, Short.MAX_VALUE) .addComponent(EventSetsPanel_NotesButton)) .addComponent(EventSetsPanel_ParametersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap()) ); JGAAP_EventSetsPanelLayout.setVerticalGroup( JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_EventSetsPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jLabel9)) .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(EventSetsPanel_NotesButton) .addComponent(jLabel7))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_EventSetsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(EventSetsPanel_ParametersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE) .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE) .addGroup(JGAAP_EventSetsPanelLayout.createSequentialGroup() .addComponent(EventSetsPanel_AddEventSetButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(EventSetsPanel_RemoveEventSetButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(EventSetsPanel_AddAllEventSetsButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(EventSetsPanel_RemoveAllEventSetsButton))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); JGAAP_TabbedPane.addTab("Event Drivers", JGAAP_EventSetsPanel); jLabel15.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N jLabel15.setText("Event Culling"); jLabel16.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel16.setText("Parameters"); jLabel17.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel17.setText("Selected"); EventCullingPanel_NotesButton.setLabel("Notes"); EventCullingPanel_NotesButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventCullingPanel_NotesButtonActionPerformed(evt); } }); EventCullingPanel_SelectedEventCullingListBox.setModel(SelectedEventCullingListBox_Model); EventCullingPanel_SelectedEventCullingListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); EventCullingPanel_SelectedEventCullingListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { EventCullingPanel_SelectedEventCullingListBoxMouseClicked(evt); } }); EventCullingPanel_SelectedEventCullingListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { EventCullingPanel_SelectedEventCullingListBoxMouseMoved(evt); } }); jScrollPane14.setViewportView(EventCullingPanel_SelectedEventCullingListBox); EventCullingPanel_AddEventCullingButton.setText(">"); EventCullingPanel_AddEventCullingButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventCullingPanel_AddEventCullingButtonActionPerformed(evt); } }); EventCullingPanel_RemoveEventCullingButton.setText("<"); EventCullingPanel_RemoveEventCullingButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventCullingPanel_RemoveEventCullingButtonActionPerformed(evt); } }); EventCullingPanel_AddAllEventCullingButton.setText("All"); EventCullingPanel_AddAllEventCullingButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventCullingPanel_AddAllEventCullingButtonActionPerformed(evt); } }); EventCullingPanel_RemoveAllEventCullingButton.setText("Clear"); EventCullingPanel_RemoveAllEventCullingButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { EventCullingPanel_RemoveAllEventCullingButtonActionPerformed(evt); } }); EventCullingPanel_ParametersPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); javax.swing.GroupLayout EventCullingPanel_ParametersPanelLayout = new javax.swing.GroupLayout(EventCullingPanel_ParametersPanel); EventCullingPanel_ParametersPanel.setLayout(EventCullingPanel_ParametersPanelLayout); EventCullingPanel_ParametersPanelLayout.setHorizontalGroup( EventCullingPanel_ParametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 343, Short.MAX_VALUE) ); EventCullingPanel_ParametersPanelLayout.setVerticalGroup( EventCullingPanel_ParametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); EventCullingPanel_EventCullingListBox.setModel(EventCullingListBox_Model); EventCullingPanel_EventCullingListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); EventCullingPanel_EventCullingListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { EventCullingPanel_EventCullingListBoxMouseClicked(evt); } }); EventCullingPanel_EventCullingListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { EventCullingPanel_EventCullingListBoxMouseMoved(evt); } }); jScrollPane15.setViewportView(EventCullingPanel_EventCullingListBox); EventCullingPanel_EventCullingDescriptionTextbox.setColumns(20); EventCullingPanel_EventCullingDescriptionTextbox.setLineWrap(true); EventCullingPanel_EventCullingDescriptionTextbox.setRows(5); EventCullingPanel_EventCullingDescriptionTextbox.setWrapStyleWord(true); jScrollPane16.setViewportView(EventCullingPanel_EventCullingDescriptionTextbox); jLabel18.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel18.setText("Event Culling Description"); javax.swing.GroupLayout JGAAP_EventCullingPanelLayout = new javax.swing.GroupLayout(JGAAP_EventCullingPanel); JGAAP_EventCullingPanel.setLayout(JGAAP_EventCullingPanelLayout); JGAAP_EventCullingPanelLayout.setHorizontalGroup( JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_EventCullingPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 824, Short.MAX_VALUE) .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_EventCullingPanelLayout.createSequentialGroup() .addGroup(JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel15)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(EventCullingPanel_RemoveEventCullingButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(EventCullingPanel_AddAllEventCullingButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(EventCullingPanel_AddEventCullingButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(EventCullingPanel_RemoveAllEventCullingButton, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel17) .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(JGAAP_EventCullingPanelLayout.createSequentialGroup() .addComponent(jLabel16) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 162, Short.MAX_VALUE) .addComponent(EventCullingPanel_NotesButton)) .addComponent(EventCullingPanel_ParametersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap()) ); JGAAP_EventCullingPanelLayout.setVerticalGroup( JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_EventCullingPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel15) .addComponent(jLabel17) .addComponent(jLabel16)) .addComponent(EventCullingPanel_NotesButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_EventCullingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE) .addComponent(EventCullingPanel_ParametersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE) .addGroup(JGAAP_EventCullingPanelLayout.createSequentialGroup() .addComponent(EventCullingPanel_AddEventCullingButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(EventCullingPanel_RemoveEventCullingButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(EventCullingPanel_AddAllEventCullingButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(EventCullingPanel_RemoveAllEventCullingButton) .addGap(107, 107, 107))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel18) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); JGAAP_TabbedPane.addTab("Event Culling", JGAAP_EventCullingPanel); jLabel20.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N jLabel20.setText("Analysis Methods"); jLabel21.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel21.setText("AM Parameters"); jLabel22.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel22.setText("Selected"); AnalysisMethodPanel_NotesButton.setLabel("Notes"); AnalysisMethodPanel_NotesButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AnalysisMethodPanel_NotesButtonActionPerformed(evt); } }); AnalysisMethodPanel_SelectedAnalysisMethodsListBox.setModel(SelectedAnalysisMethodListBox_Model); AnalysisMethodPanel_SelectedAnalysisMethodsListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); AnalysisMethodPanel_SelectedAnalysisMethodsListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseClicked(evt); } }); AnalysisMethodPanel_SelectedAnalysisMethodsListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseMoved(evt); } }); jScrollPane17.setViewportView(AnalysisMethodPanel_SelectedAnalysisMethodsListBox); AnalysisMethodPanel_AddAnalysisMethodButton.setText(">"); AnalysisMethodPanel_AddAnalysisMethodButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AnalysisMethodPanel_AddAnalysisMethodButtonActionPerformed(evt); } }); AnalysisMethodPanel_RemoveAnalysisMethodsButton.setText("<"); AnalysisMethodPanel_RemoveAnalysisMethodsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AnalysisMethodPanel_RemoveAnalysisMethodsButtonActionPerformed(evt); } }); AnalysisMethodPanel_AddAllAnalysisMethodsButton.setText("All"); AnalysisMethodPanel_AddAllAnalysisMethodsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AnalysisMethodPanel_AddAllAnalysisMethodsButtonActionPerformed(evt); } }); AnalysisMethodPanel_RemoveAllAnalysisMethodsButton.setText("Clear"); AnalysisMethodPanel_RemoveAllAnalysisMethodsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AnalysisMethodPanel_RemoveAllAnalysisMethodsButtonActionPerformed(evt); } }); AnalysisMethodPanel_AMParametersPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); javax.swing.GroupLayout AnalysisMethodPanel_AMParametersPanelLayout = new javax.swing.GroupLayout(AnalysisMethodPanel_AMParametersPanel); AnalysisMethodPanel_AMParametersPanel.setLayout(AnalysisMethodPanel_AMParametersPanelLayout); AnalysisMethodPanel_AMParametersPanelLayout.setHorizontalGroup( AnalysisMethodPanel_AMParametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 355, Short.MAX_VALUE) ); AnalysisMethodPanel_AMParametersPanelLayout.setVerticalGroup( AnalysisMethodPanel_AMParametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 125, Short.MAX_VALUE) ); AnalysisMethodPanel_AnalysisMethodsListBox.setModel(AnalysisMethodListBox_Model); AnalysisMethodPanel_AnalysisMethodsListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); AnalysisMethodPanel_AnalysisMethodsListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { AnalysisMethodPanel_AnalysisMethodsListBoxMouseClicked(evt); } }); AnalysisMethodPanel_AnalysisMethodsListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { AnalysisMethodPanel_AnalysisMethodsListBoxMouseMoved(evt); } }); jScrollPane18.setViewportView(AnalysisMethodPanel_AnalysisMethodsListBox); jLabel28.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N jLabel28.setText("Distance Function Description"); AnalysisMethodPanel_AnalysisMethodDescriptionTextBox.setColumns(20); AnalysisMethodPanel_AnalysisMethodDescriptionTextBox.setLineWrap(true); AnalysisMethodPanel_AnalysisMethodDescriptionTextBox.setRows(5); AnalysisMethodPanel_AnalysisMethodDescriptionTextBox.setWrapStyleWord(true); jScrollPane19.setViewportView(AnalysisMethodPanel_AnalysisMethodDescriptionTextBox); AnalysisMethodPanel_DistanceFunctionsListBox.setModel(DistanceFunctionsListBox_Model); AnalysisMethodPanel_DistanceFunctionsListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); AnalysisMethodPanel_DistanceFunctionsListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { AnalysisMethodPanel_DistanceFunctionsListBoxMouseClicked(evt); } }); AnalysisMethodPanel_DistanceFunctionsListBox.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseMoved(java.awt.event.MouseEvent evt) { AnalysisMethodPanel_DistanceFunctionsListBoxMouseMoved(evt); } }); jScrollPane22.setViewportView(AnalysisMethodPanel_DistanceFunctionsListBox); jLabel35.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N jLabel35.setText("Distance Functions"); AnalysisMethodPanel_DistanceFunctionDescriptionTextBox.setColumns(20); AnalysisMethodPanel_DistanceFunctionDescriptionTextBox.setLineWrap(true); AnalysisMethodPanel_DistanceFunctionDescriptionTextBox.setRows(5); AnalysisMethodPanel_DistanceFunctionDescriptionTextBox.setWrapStyleWord(true); jScrollPane23.setViewportView(AnalysisMethodPanel_DistanceFunctionDescriptionTextBox); jLabel36.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N jLabel36.setText("Analysis Method Description"); AnalysisMethodPanel_DFParametersPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); javax.swing.GroupLayout AnalysisMethodPanel_DFParametersPanelLayout = new javax.swing.GroupLayout(AnalysisMethodPanel_DFParametersPanel); AnalysisMethodPanel_DFParametersPanel.setLayout(AnalysisMethodPanel_DFParametersPanelLayout); AnalysisMethodPanel_DFParametersPanelLayout.setHorizontalGroup( AnalysisMethodPanel_DFParametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 355, Short.MAX_VALUE) ); AnalysisMethodPanel_DFParametersPanelLayout.setVerticalGroup( AnalysisMethodPanel_DFParametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 128, Short.MAX_VALUE) ); jLabel37.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); jLabel37.setText("DF Parameters"); javax.swing.GroupLayout JGAAP_AnalysisMethodPanelLayout = new javax.swing.GroupLayout(JGAAP_AnalysisMethodPanel); JGAAP_AnalysisMethodPanel.setLayout(JGAAP_AnalysisMethodPanelLayout); JGAAP_AnalysisMethodPanelLayout.setHorizontalGroup( JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel35, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane22, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE) .addComponent(jScrollPane18, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE) .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(AnalysisMethodPanel_RemoveAnalysisMethodsButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(AnalysisMethodPanel_AddAllAnalysisMethodsButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(AnalysisMethodPanel_AddAnalysisMethodButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(AnalysisMethodPanel_RemoveAllAnalysisMethodsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel22) .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(AnalysisMethodPanel_DFParametersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(AnalysisMethodPanel_AMParametersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addComponent(jLabel21) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 133, Short.MAX_VALUE) .addComponent(AnalysisMethodPanel_NotesButton)) .addComponent(jLabel37))) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane19, javax.swing.GroupLayout.PREFERRED_SIZE, 405, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel36)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel28) .addComponent(jScrollPane23, javax.swing.GroupLayout.DEFAULT_SIZE, 413, Short.MAX_VALUE)))) .addContainerGap()) ); JGAAP_AnalysisMethodPanelLayout.setVerticalGroup( JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel20) .addComponent(jLabel21) .addComponent(jLabel22) .addComponent(AnalysisMethodPanel_NotesButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane17, javax.swing.GroupLayout.DEFAULT_SIZE, 301, Short.MAX_VALUE) .addGroup(JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addComponent(AnalysisMethodPanel_AMParametersPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel37) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(AnalysisMethodPanel_DFParametersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_AnalysisMethodPanelLayout.createSequentialGroup() .addComponent(AnalysisMethodPanel_AddAnalysisMethodButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(AnalysisMethodPanel_RemoveAnalysisMethodsButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(AnalysisMethodPanel_AddAllAnalysisMethodsButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(AnalysisMethodPanel_RemoveAllAnalysisMethodsButton)) .addComponent(jScrollPane18, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel35) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane22, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel28) .addComponent(jLabel36)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_AnalysisMethodPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane19, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane23, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); JGAAP_TabbedPane.addTab("Analysis Methods", JGAAP_AnalysisMethodPanel); ReviewPanel_ProcessButton.setLabel("Process"); ReviewPanel_ProcessButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ReviewPanel_ProcessButtonActionPerformed(evt); } }); ReviewPanel_DocumentsLabel.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N ReviewPanel_DocumentsLabel.setText("Documents"); ReviewPanel_DocumentsLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ReviewPanel_DocumentsLabelMouseClicked(evt); } }); ReviewPanel_DocumentsTable.setModel(DocumentsTable_Model); ReviewPanel_DocumentsTable.setEnabled(false); ReviewPanel_DocumentsTable.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ReviewPanel_DocumentsTableMouseClicked(evt); } }); jScrollPane24.setViewportView(ReviewPanel_DocumentsTable); ReviewPanel_SelectedEventSetLabel.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N ReviewPanel_SelectedEventSetLabel.setText("Event Driver"); ReviewPanel_SelectedEventSetLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ReviewPanel_SelectedEventSetLabelMouseClicked(evt); } }); ReviewPanel_SelectedEventCullingLabel.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N ReviewPanel_SelectedEventCullingLabel.setText("Event Culling"); ReviewPanel_SelectedEventCullingLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ReviewPanel_SelectedEventCullingLabelMouseClicked(evt); } }); ReviewPanel_SelectedAnalysisMethodsLabel.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 24)); // NOI18N ReviewPanel_SelectedAnalysisMethodsLabel.setText("Analysis Methods"); ReviewPanel_SelectedAnalysisMethodsLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ReviewPanel_SelectedAnalysisMethodsLabelMouseClicked(evt); } }); ReviewPanel_SelectedEventSetListBox.setModel(SelectedEventSetsListBox_Model); ReviewPanel_SelectedEventSetListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); ReviewPanel_SelectedEventSetListBox.setEnabled(false); ReviewPanel_SelectedEventSetListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ReviewPanel_SelectedEventSetListBoxMouseClicked(evt); } }); jScrollPane25.setViewportView(ReviewPanel_SelectedEventSetListBox); ReviewPanel_SelectedEventCullingListBox.setModel(SelectedEventCullingListBox_Model); ReviewPanel_SelectedEventCullingListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); ReviewPanel_SelectedEventCullingListBox.setEnabled(false); ReviewPanel_SelectedEventCullingListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ReviewPanel_SelectedEventCullingListBoxMouseClicked(evt); } }); jScrollPane26.setViewportView(ReviewPanel_SelectedEventCullingListBox); ReviewPanel_SelectedAnalysisMethodsListBox.setModel(SelectedAnalysisMethodListBox_Model); ReviewPanel_SelectedAnalysisMethodsListBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); ReviewPanel_SelectedAnalysisMethodsListBox.setEnabled(false); ReviewPanel_SelectedAnalysisMethodsListBox.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ReviewPanel_SelectedAnalysisMethodsListBoxMouseClicked(evt); } }); jScrollPane27.setViewportView(ReviewPanel_SelectedAnalysisMethodsListBox); javax.swing.GroupLayout JGAAP_ReviewPanelLayout = new javax.swing.GroupLayout(JGAAP_ReviewPanel); JGAAP_ReviewPanel.setLayout(JGAAP_ReviewPanelLayout); JGAAP_ReviewPanelLayout.setHorizontalGroup( JGAAP_ReviewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JGAAP_ReviewPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(JGAAP_ReviewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane24, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 824, Short.MAX_VALUE) .addComponent(ReviewPanel_DocumentsLabel, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ReviewPanel_ProcessButton) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, JGAAP_ReviewPanelLayout.createSequentialGroup() .addGroup(JGAAP_ReviewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane25, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ReviewPanel_SelectedEventSetLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_ReviewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ReviewPanel_SelectedEventCullingLabel) .addComponent(jScrollPane26, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_ReviewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ReviewPanel_SelectedAnalysisMethodsLabel) .addComponent(jScrollPane27, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)))) .addContainerGap()) ); JGAAP_ReviewPanelLayout.setVerticalGroup( JGAAP_ReviewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(JGAAP_ReviewPanelLayout.createSequentialGroup() .addContainerGap() .addComponent(ReviewPanel_DocumentsLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane24, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_ReviewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ReviewPanel_SelectedEventSetLabel) .addComponent(ReviewPanel_SelectedEventCullingLabel) .addComponent(ReviewPanel_SelectedAnalysisMethodsLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(JGAAP_ReviewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane27, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE) .addComponent(jScrollPane26, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE) .addComponent(jScrollPane25, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ReviewPanel_ProcessButton) .addContainerGap()) ); JGAAP_TabbedPane.addTab("Review & Process", JGAAP_ReviewPanel); Next_Button.setText("Next >"); Next_Button.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Next_ButtonActionPerformed(evt); } }); Review_Button.setText("Finish & Review"); Review_Button.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Review_ButtonActionPerformed(evt); } }); jMenu1.setText("File"); jMenu4.setText("Batch Documents"); BatchSaveMenuItem.setText("Save Documents"); BatchSaveMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BatchSaveMenuItemActionPerformed(evt); } }); jMenu4.add(BatchSaveMenuItem); BatchLoadMenuItem.setText("Load Documents"); BatchLoadMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BatchLoadMenuItemActionPerformed(evt); } }); jMenu4.add(BatchLoadMenuItem); jMenu1.add(jMenu4); jMenu2.setText("AAAC Problems"); ProblemAMenuItem.setText("Problem A"); ProblemAMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemAMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemAMenuItem); ProblemBMenuItem.setText("Problem B"); ProblemBMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemBMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemBMenuItem); ProblemCMenuItem.setText("Problem C"); ProblemCMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemCMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemCMenuItem); ProblemDMenuItem.setText("Problem D"); ProblemDMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemDMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemDMenuItem); ProblemEMenuItem.setText("Problem E"); ProblemEMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemEMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemEMenuItem); ProblemFMenuItem.setText("Problem F"); ProblemFMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemFMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemFMenuItem); ProblemGMenuItem.setText("Problem G"); ProblemGMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemGMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemGMenuItem); ProblemHMenuItem.setText("Problem H"); ProblemHMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemHMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemHMenuItem); ProblemIMenuItem.setText("Problem I"); ProblemIMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemIMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemIMenuItem); ProblemJMenuItem.setText("Problem J"); ProblemJMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemJMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemJMenuItem); ProblemKMenuItem.setText("Problem K"); ProblemKMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemKMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemKMenuItem); ProblemLMenuItem.setText("Problem L"); ProblemLMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemLMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemLMenuItem); ProblemMMenuItem.setText("Problem M"); ProblemMMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProblemMMenuItemActionPerformed(evt); } }); jMenu2.add(ProblemMMenuItem); jMenu1.add(jMenu2); exitMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q, java.awt.event.InputEvent.CTRL_MASK)); exitMenuItem.setText("Exit"); exitMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitMenuItemActionPerformed(evt); } }); jMenu1.add(exitMenuItem); JGAAP_MenuBar.add(jMenu1); helpMenu.setText("Help"); aboutMenuItem.setText("About.."); aboutMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutMenuItemActionPerformed(evt); } }); helpMenu.add(aboutMenuItem); JGAAP_MenuBar.add(helpMenu); setJMenuBar(JGAAP_MenuBar); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(JGAAP_TabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 849, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(Review_Button) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Next_Button))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(JGAAP_TabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 529, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Next_Button) .addComponent(Review_Button)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void ReviewPanel_ProcessButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ReviewPanel_ProcessButtonActionPerformed try { JGAAP_API.clearResults(); JGAAP_API.execute(); List<Document> unknowns = JGAAP_API.getUnknownDocuments(); StringBuffer buffer = new StringBuffer(); for (Document unknown : unknowns) { buffer.append(unknown.getResult()); } //ResultsPage.DisplayResults(buffer.toString()); ResultsPage.AddResults(buffer.toString()); ResultsPage.setVisible(true); } catch (Exception e){ } }//GEN-LAST:event_ReviewPanel_ProcessButtonActionPerformed private void LoadProblemMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LoadProblemMenuItemActionPerformed // TODO add your handling code here: }//GEN-LAST:event_LoadProblemMenuItemActionPerformed private void BatchLoadMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BatchLoadMenuItemActionPerformed FileChoser = new JFileChooser(filepath); int choice = FileChoser.showOpenDialog(JGAAP_UI_MainForm.this); if (choice == JFileChooser.APPROVE_OPTION) { try { filepath = FileChoser.getSelectedFile().getCanonicalPath(); List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } } }//GEN-LAST:event_BatchLoadMenuItemActionPerformed private void BatchSaveMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BatchSaveMenuItemActionPerformed FileChoser = new JFileChooser(filepath); int choice = FileChoser.showSaveDialog(JGAAP_UI_MainForm.this); if (choice == JFileChooser.APPROVE_OPTION) { try { filepath = FileChoser.getSelectedFile().getCanonicalPath(); List<List<String>> DocumentCSVs = new ArrayList<List<String>>(); DocumentList = JGAAP_API.getDocuments(); for (int i = 0; i < DocumentList.size(); i++) { List<String> doc = new ArrayList<String>(); if (DocumentList.get(i).getAuthor() != null) { doc.add(DocumentList.get(i).getAuthor()); } else { doc.add(""); } doc.add(DocumentList.get(i).getFilePath()); doc.add(DocumentList.get(i).getTitle()); DocumentCSVs.add(doc); } CSVIO.writeCSV(DocumentCSVs, filepath); } catch (Exception e) { } } }//GEN-LAST:event_BatchSaveMenuItemActionPerformed private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed dispose(); System.exit(0); }//GEN-LAST:event_exitMenuItemActionPerformed private void helpCloseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpCloseButtonActionPerformed toggleHelpDialog(); }//GEN-LAST:event_helpCloseButtonActionPerformed private void jLabel23MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel23MouseClicked browseToURL("http://evllabs.com"); }//GEN-LAST:event_jLabel23MouseClicked private void jLabel25MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel25MouseClicked if(!browseToURL("http://jgaap.com")){ browseToURL("http://server8.mathcomp.duq.edu/jgaap/w"); } }//GEN-LAST:event_jLabel25MouseClicked private void aboutMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutMenuItemActionPerformed toggleHelpDialog(); }//GEN-LAST:event_aboutMenuItemActionPerformed private void AnalysisMethodPanel_AnalysisMethodsListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_AnalysisMethodsListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = AnalysisDriverMasterList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_AnalysisMethodPanel_AnalysisMethodsListBoxMouseMoved private void AnalysisMethodPanel_AnalysisMethodsListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_AnalysisMethodsListBoxMouseClicked AnalysisMethodPanel_AnalysisMethodDescriptionTextBox.setText(AnalysisDriverMasterList.get(AnalysisMethodPanel_AnalysisMethodsListBox.getSelectedIndex()).longDescription()); if (evt.getClickCount() == 2) { AddAnalysisMethodSelection(); } }//GEN-LAST:event_AnalysisMethodPanel_AnalysisMethodsListBoxMouseClicked private void AnalysisMethodPanel_RemoveAllAnalysisMethodsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_RemoveAllAnalysisMethodsButtonActionPerformed JGAAP_API.removeAllAnalysisDrivers(); UpdateSelectedAnalysisMethodListBox(); }//GEN-LAST:event_AnalysisMethodPanel_RemoveAllAnalysisMethodsButtonActionPerformed private void AnalysisMethodPanel_AddAllAnalysisMethodsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_AddAllAnalysisMethodsButtonActionPerformed try{ for (int i = 0; i < AnalysisDriverMasterList.size(); i++) { JGAAP_API.addAnalysisDriver(AnalysisDriverMasterList.get(i).displayName()); } UpdateSelectedAnalysisMethodListBox(); } catch (Exception e){ System.out.println(e.getMessage()); } }//GEN-LAST:event_AnalysisMethodPanel_AddAllAnalysisMethodsButtonActionPerformed private void AnalysisMethodPanel_RemoveAnalysisMethodsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_RemoveAnalysisMethodsButtonActionPerformed RemoveAnalysisMethodSelection(); }//GEN-LAST:event_AnalysisMethodPanel_RemoveAnalysisMethodsButtonActionPerformed private void RemoveAnalysisMethodSelection() { SelectedAnalysisDriverList = JGAAP_API.getAnalysisDrivers(); JGAAP_API.removeAnalysisDriver(SelectedAnalysisDriverList.get(AnalysisMethodPanel_SelectedAnalysisMethodsListBox.getSelectedIndex())); UpdateSelectedAnalysisMethodListBox(); } private void AnalysisMethodPanel_AddAnalysisMethodButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_AddAnalysisMethodButtonActionPerformed AddAnalysisMethodSelection(); }//GEN-LAST:event_AnalysisMethodPanel_AddAnalysisMethodButtonActionPerformed private void CheckMinimumRequirements() { boolean OK = true; if (DocumentList.isEmpty()) { OK = false; ReviewPanel_DocumentsLabel.setForeground(Color.RED); } else { ReviewPanel_DocumentsLabel.setForeground(Color.GREEN); } if (SelectedEventDriverList.isEmpty()) { OK = false; ReviewPanel_SelectedEventSetLabel.setForeground(Color.RED); } else { ReviewPanel_SelectedEventSetLabel.setForeground(Color.GREEN); } ReviewPanel_SelectedEventCullingLabel.setForeground(Color.GREEN); if (SelectedAnalysisDriverList.isEmpty()) { OK = false; ReviewPanel_SelectedAnalysisMethodsLabel.setForeground(Color.RED); } else { ReviewPanel_SelectedAnalysisMethodsLabel.setForeground(Color.GREEN); } ReviewPanel_ProcessButton.setEnabled(OK); } private void AddAnalysisMethodSelection() { try{ AnalysisDriver temp = JGAAP_API.addAnalysisDriver(AnalysisMethodPanel_AnalysisMethodsListBox.getSelectedValue().toString()); if (temp instanceof NeighborAnalysisDriver) { JGAAP_API.addDistanceFunction(AnalysisMethodPanel_DistanceFunctionsListBox.getSelectedValue().toString(), temp); } UpdateSelectedAnalysisMethodListBox(); } catch (Exception e){ System.out.println(e.getMessage()); } } private void AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = SelectedAnalysisDriverList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseMoved private void AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseClicked AnalysisDriver temp = SelectedAnalysisDriverList.get(AnalysisMethodPanel_SelectedAnalysisMethodsListBox.getSelectedIndex()); AnalysisMethodPanel_AMParametersPanel.removeAll(); AnalysisMethodPanel_DFParametersPanel.removeAll(); AnalysisMethodPanel_AMParametersPanel.setLayout(temp.getGUILayout(AnalysisMethodPanel_AMParametersPanel)); if (temp instanceof NeighborAnalysisDriver) { AnalysisMethodPanel_DFParametersPanel.setLayout(((NeighborAnalysisDriver)temp).getDistanceFunction().getGUILayout(AnalysisMethodPanel_DFParametersPanel)); } AnalysisMethodPanel_AnalysisMethodDescriptionTextBox.setText(temp.longDescription()); if (temp instanceof NeighborAnalysisDriver) { AnalysisMethodPanel_DistanceFunctionDescriptionTextBox.setText(((NeighborAnalysisDriver)temp).getDistanceFunction().longDescription()); } if (evt!=null && evt.getClickCount() == 2) { RemoveAnalysisMethodSelection(); } }//GEN-LAST:event_AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseClicked private void EventCullingPanel_EventCullingListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EventCullingPanel_EventCullingListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = EventCullersMasterList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_EventCullingPanel_EventCullingListBoxMouseMoved private void EventCullingPanel_EventCullingListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EventCullingPanel_EventCullingListBoxMouseClicked EventCullingPanel_EventCullingDescriptionTextbox.setText(EventCullersMasterList.get(EventCullingPanel_EventCullingListBox.getSelectedIndex()).longDescription()); if (evt.getClickCount() == 2) { AddEventCullerSelection(); } }//GEN-LAST:event_EventCullingPanel_EventCullingListBoxMouseClicked private void EventCullingPanel_RemoveAllEventCullingButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventCullingPanel_RemoveAllEventCullingButtonActionPerformed JGAAP_API.removeAllEventCullers(); UpdateSelectedEventCullingListBox(); }//GEN-LAST:event_EventCullingPanel_RemoveAllEventCullingButtonActionPerformed private void EventCullingPanel_AddAllEventCullingButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventCullingPanel_AddAllEventCullingButtonActionPerformed try{ for (int i = 0; i < EventCullersMasterList.size(); i++) { JGAAP_API.addEventCuller(EventCullersMasterList.get(i).displayName()); } UpdateSelectedEventCullingListBox(); } catch (Exception e){ System.out.println(e.getMessage()); } // TODO add your handling code here: }//GEN-LAST:event_EventCullingPanel_AddAllEventCullingButtonActionPerformed private void EventCullingPanel_RemoveEventCullingButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventCullingPanel_RemoveEventCullingButtonActionPerformed RemoveEventCullerSelection(); }//GEN-LAST:event_EventCullingPanel_RemoveEventCullingButtonActionPerformed private void RemoveEventCullerSelection() { SelectedEventCullersList = JGAAP_API.getEventCullers(); JGAAP_API.removeEventCuller(SelectedEventCullersList.get(EventCullingPanel_SelectedEventCullingListBox.getSelectedIndex())); UpdateSelectedEventCullingListBox(); } private void EventCullingPanel_AddEventCullingButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventCullingPanel_AddEventCullingButtonActionPerformed AddEventCullerSelection(); }//GEN-LAST:event_EventCullingPanel_AddEventCullingButtonActionPerformed private void AddEventCullerSelection() { try{ JGAAP_API.addEventCuller(EventCullingPanel_EventCullingListBox.getSelectedValue().toString()); UpdateSelectedEventCullingListBox(); } catch (Exception e){ System.out.println(e.getMessage()); } } private void EventCullingPanel_SelectedEventCullingListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EventCullingPanel_SelectedEventCullingListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = SelectedEventCullersList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_EventCullingPanel_SelectedEventCullingListBoxMouseMoved private void EventCullingPanel_SelectedEventCullingListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EventCullingPanel_SelectedEventCullingListBoxMouseClicked EventCullingPanel_ParametersPanel.removeAll(); EventCullingPanel_ParametersPanel.setLayout(SelectedEventCullersList.get(EventCullingPanel_SelectedEventCullingListBox.getSelectedIndex()).getGUILayout(EventCullingPanel_ParametersPanel)); EventCullingPanel_EventCullingDescriptionTextbox.setText(SelectedEventCullersList.get(EventCullingPanel_SelectedEventCullingListBox.getSelectedIndex()).longDescription()); if (evt!=null && evt.getClickCount() == 2) { RemoveEventCullerSelection(); } }//GEN-LAST:event_EventCullingPanel_SelectedEventCullingListBoxMouseClicked private void EventSetsPanel_RemoveAllEventSetsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventSetsPanel_RemoveAllEventSetsButtonActionPerformed JGAAP_API.removeAllEventDrivers(); UpdateSelectedEventSetListBox(); }//GEN-LAST:event_EventSetsPanel_RemoveAllEventSetsButtonActionPerformed private void EventSetsPanel_AddAllEventSetsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventSetsPanel_AddAllEventSetsButtonActionPerformed try{ for (int i = 0; i < EventDriverMasterList.size(); i++) { JGAAP_API.addEventDriver(EventDriverMasterList.get(i).displayName()); } UpdateSelectedEventSetListBox(); } catch (Exception e){ System.out.println(e.getMessage()); } }//GEN-LAST:event_EventSetsPanel_AddAllEventSetsButtonActionPerformed private void EventSetsPanel_RemoveEventSetButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventSetsPanel_RemoveEventSetButtonActionPerformed RemoveEventSetSelection(); }//GEN-LAST:event_EventSetsPanel_RemoveEventSetButtonActionPerformed private void RemoveEventSetSelection() { SelectedEventDriverList = JGAAP_API.getEventDrivers(); JGAAP_API.removeEventDriver(SelectedEventDriverList.get(EventSetsPanel_SelectedEventSetListBox.getSelectedIndex())); UpdateSelectedEventSetListBox(); } private void EventSetsPanel_AddEventSetButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventSetsPanel_AddEventSetButtonActionPerformed AddEventSetSelection(); }//GEN-LAST:event_EventSetsPanel_AddEventSetButtonActionPerformed private void AddEventSetSelection() { try{ JGAAP_API.addEventDriver(EventSetsPanel_EventSetListBox.getSelectedValue().toString()); UpdateSelectedEventSetListBox(); } catch (Exception e){ System.out.println(e.getMessage()); } } private void EventSetsPanel_SelectedEventSetListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EventSetsPanel_SelectedEventSetListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = SelectedEventDriverList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_EventSetsPanel_SelectedEventSetListBoxMouseMoved private void EventSetsPanel_SelectedEventSetListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EventSetsPanel_SelectedEventSetListBoxMouseClicked EventSetsPanel_ParametersPanel.removeAll(); EventSetsPanel_ParametersPanel.setLayout(SelectedEventDriverList.get(EventSetsPanel_SelectedEventSetListBox.getSelectedIndex()).getGUILayout(EventSetsPanel_ParametersPanel)); EventSetsPanel_EventSetDescriptionTextBox.setText(SelectedEventDriverList.get(EventSetsPanel_SelectedEventSetListBox.getSelectedIndex()).longDescription()); if (evt != null && evt.getClickCount() == 2) { RemoveEventSetSelection(); } }//GEN-LAST:event_EventSetsPanel_SelectedEventSetListBoxMouseClicked private void EventSetsPanel_EventSetListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EventSetsPanel_EventSetListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = EventDriverMasterList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_EventSetsPanel_EventSetListBoxMouseMoved private void EventSetsPanel_EventSetListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EventSetsPanel_EventSetListBoxMouseClicked EventSetsPanel_EventSetDescriptionTextBox.setText(EventDriverMasterList.get(EventSetsPanel_EventSetListBox.getSelectedIndex()).longDescription()); if (evt.getClickCount() == 2) { AddEventSetSelection(); } }//GEN-LAST:event_EventSetsPanel_EventSetListBoxMouseClicked private void CanonicizersPanel_RemoveAllCanonicizersButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CanonicizersPanel_RemoveAllCanonicizersButtonActionPerformed SelectedCanonicizerList.clear(); UpdateSelectedCanonicizerListBox(); }//GEN-LAST:event_CanonicizersPanel_RemoveAllCanonicizersButtonActionPerformed private void CanonicizersPanel_AddAllCanonicizersButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CanonicizersPanel_AddAllCanonicizersButtonActionPerformed try{ for (int i = 0; i < CanonicizerMasterList.size(); i++){ Canonicizer temp = CanonicizerMasterList.get(i).getClass().newInstance(); SelectedCanonicizerList.add(temp); } UpdateSelectedCanonicizerListBox(); } catch (Exception e){ System.out.println(e.getMessage()); } }//GEN-LAST:event_CanonicizersPanel_AddAllCanonicizersButtonActionPerformed private void CanonicizersPanel_RemoveCanonicizerButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CanonicizersPanel_RemoveCanonicizerButtonActionPerformed RemoveCanonicizerSelection(); }//GEN-LAST:event_CanonicizersPanel_RemoveCanonicizerButtonActionPerformed private void RemoveCanonicizerSelection() { SelectedCanonicizerList.remove(CanonicizersPanel_SelectedCanonicizerListBox.getSelectedIndex()); UpdateSelectedCanonicizerListBox(); } private void CanonicizersPanel_AddCanonicizerButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CanonicizersPanel_AddCanonicizerButtonActionPerformed AddCanonicizerSelection(); }//GEN-LAST:event_CanonicizersPanel_AddCanonicizerButtonActionPerformed private void AddCanonicizerSelection() { try{ for (int i = 0; i < CanonicizerMasterList.size(); i++){ if (CanonicizerMasterList.get(i).displayName().equals(CanonicizersPanel_CanonicizerListBox.getSelectedValue().toString())){ Canonicizer temp = CanonicizerMasterList.get(i).getClass().newInstance(); SelectedCanonicizerList.add(temp); UpdateSelectedCanonicizerListBox(); } } } catch (Exception e){ System.out.println(e.getMessage()); } } private void CanonicizersPanel_SelectedCanonicizerListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CanonicizersPanel_SelectedCanonicizerListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = SelectedCanonicizerList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_CanonicizersPanel_SelectedCanonicizerListBoxMouseMoved private void CanonicizersPanel_SelectedCanonicizerListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CanonicizersPanel_SelectedCanonicizerListBoxMouseClicked CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox.setText(SelectedCanonicizerList.get(CanonicizersPanel_SelectedCanonicizerListBox.getSelectedIndex()).longDescription()); if (evt != null && evt.getClickCount() == 2) { RemoveCanonicizerSelection(); } }//GEN-LAST:event_CanonicizersPanel_SelectedCanonicizerListBoxMouseClicked private void CanonicizersPanel_CanonicizerListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CanonicizersPanel_CanonicizerListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = CanonicizerMasterList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_CanonicizersPanel_CanonicizerListBoxMouseMoved private void CanonicizersPanel_CanonicizerListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CanonicizersPanel_CanonicizerListBoxMouseClicked CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox.setText(CanonicizerMasterList.get(CanonicizersPanel_CanonicizerListBox.getSelectedIndex()).longDescription()); if (evt.getClickCount() == 2) { AddCanonicizerSelection(); } }//GEN-LAST:event_CanonicizersPanel_CanonicizerListBoxMouseClicked private void DocumentsPanel_LanguageComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DocumentsPanel_LanguageComboBoxActionPerformed try { JGAAP_API.setLanguage(DocumentsPanel_LanguageComboBox.getSelectedItem().toString()); } catch (Exception e) { } }//GEN-LAST:event_DocumentsPanel_LanguageComboBoxActionPerformed private void DocumentsPanel_RemoveAuthorButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DocumentsPanel_RemoveAuthorButtonActionPerformed TreePath Path = DocumentsPanel_KnownAuthorsTree.getSelectionPath(); String AuthorName; if(Path.getPathCount() != 1) { AuthorName = Path.getPathComponent(1).toString(); KnownDocumentList = JGAAP_API.getDocumentsByAuthor(AuthorName); for (int i = KnownDocumentList.size() - 1; i >= 0; i--) { JGAAP_API.removeDocument(KnownDocumentList.get(i)); } UpdateKnownDocumentsTree(); } else { } }//GEN-LAST:event_DocumentsPanel_RemoveAuthorButtonActionPerformed private void DocumentsPanel_EditAuthorButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DocumentsPanel_EditAuthorButtonActionPerformed TreePath Path = DocumentsPanel_KnownAuthorsTree.getSelectionPath(); String AuthorName; if(Path.getPathCount() != 1) { AuthorName = Path.getPathComponent(1).toString(); JGAAP_UI_AddAuthorDialog AddAuthorDialog= new JGAAP_UI_AddAuthorDialog(JGAAP_UI_MainForm.this, true, JGAAP_API, AuthorName, filepath); AddAuthorDialog.setVisible(true); UpdateKnownDocumentsTree(); } else { } }//GEN-LAST:event_DocumentsPanel_EditAuthorButtonActionPerformed private void DocumentsPanel_AddAuthorButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DocumentsPanel_AddAuthorButtonActionPerformed JGAAP_UI_AddAuthorDialog AddAuthorDialog= new JGAAP_UI_AddAuthorDialog(JGAAP_UI_MainForm.this, true, JGAAP_API,"",filepath); AddAuthorDialog.setVisible(true); filepath = AddAuthorDialog.getFilePath(); UpdateKnownDocumentsTree(); }//GEN-LAST:event_DocumentsPanel_AddAuthorButtonActionPerformed private void DocumentsPanel_RemoveDocumentsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DocumentsPanel_RemoveDocumentsButtonActionPerformed UnknownDocumentList = JGAAP_API.getUnknownDocuments(); JGAAP_API.removeDocument(UnknownDocumentList.get(DocumentsPanel_UnknownAuthorsTable.getSelectedRow())); UpdateUnknownDocumentsTable(); }//GEN-LAST:event_DocumentsPanel_RemoveDocumentsButtonActionPerformed private void DocumentsPanel_AddDocumentsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DocumentsPanel_AddDocumentsButtonActionPerformed FileChoser = new JFileChooser(filepath); FileChoser.setMultiSelectionEnabled(true); int choice = FileChoser.showOpenDialog(JGAAP_UI_MainForm.this); if (choice == JFileChooser.APPROVE_OPTION) { for(File file : FileChoser.getSelectedFiles()){ try { JGAAP_API.addDocument(file.getCanonicalPath(), "",""); filepath = file.getCanonicalPath(); } catch (Exception e) { //TODO: add error dialog here } UpdateUnknownDocumentsTable(); } } }//GEN-LAST:event_DocumentsPanel_AddDocumentsButtonActionPerformed private void CanonicizersPanel_SetToDocumentButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CanonicizersPanel_SetToDocumentButtonActionPerformed int row = CanonicizersPanel_DocumentsTable.getSelectedRow(); if (row >= 0) { DocumentList = JGAAP_API.getDocuments(); Document temp = DocumentList.get(row); temp.clearCanonicizers(); for (int i = 0; i < SelectedCanonicizerList.size(); i++) { try { JGAAP_API.addCanonicizer(SelectedCanonicizerList.get(i).displayName(),temp); } catch (Exception e) { } } UpdateCurrentCanonicizerBox(); UpdateDocumentsTable(); } }//GEN-LAST:event_CanonicizersPanel_SetToDocumentButtonActionPerformed private void CanonicizersPanel_SetToDocumentTypeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CanonicizersPanel_SetToDocumentTypeButtonActionPerformed int row = CanonicizersPanel_DocumentsTable.getSelectedRow(); if (row >= 0) { DocumentList = JGAAP_API.getDocuments(); Document temp = DocumentList.get(row); temp.clearCanonicizers(); for (int i = 0; i < SelectedCanonicizerList.size(); i++) { try { JGAAP_API.addCanonicizer(SelectedCanonicizerList.get(i).displayName(),temp); } catch (Exception e) { } } UpdateCurrentCanonicizerBox(); UpdateDocumentsTable(); } }//GEN-LAST:event_CanonicizersPanel_SetToDocumentTypeButtonActionPerformed private void CanonicizersPanel_SetToAllDocumentsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CanonicizersPanel_SetToAllDocumentsActionPerformed JGAAP_API.removeAllCanonicizers(); for (int i = 0; i < SelectedCanonicizerList.size(); i++) { try { JGAAP_API.addCanonicizer(SelectedCanonicizerList.get(i).displayName()); } catch (Exception e) { } } UpdateCurrentCanonicizerBox(); UpdateDocumentsTable(); }//GEN-LAST:event_CanonicizersPanel_SetToAllDocumentsActionPerformed private void DocumentsPanel_NotesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DocumentsPanel_NotesButtonActionPerformed try { NotesPage.DisplayNote(Notes[0]); NotesPage.setVisible(true); if (NotesPage.SavedNote != null) { Notes[0] = NotesPage.SavedNote; } } catch (Exception e){ } }//GEN-LAST:event_DocumentsPanel_NotesButtonActionPerformed private void CanonicizersPanel_NotesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CanonicizersPanel_NotesButtonActionPerformed try { NotesPage.DisplayNote(Notes[1]); NotesPage.setVisible(true); if (NotesPage.SavedNote != null) { Notes[1] = NotesPage.SavedNote; } } catch (Exception e){ } }//GEN-LAST:event_CanonicizersPanel_NotesButtonActionPerformed private void EventSetsPanel_NotesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventSetsPanel_NotesButtonActionPerformed try { NotesPage.DisplayNote(Notes[2]); NotesPage.setVisible(true); if (NotesPage.SavedNote != null) { Notes[2] = NotesPage.SavedNote; } } catch (Exception e){ } }//GEN-LAST:event_EventSetsPanel_NotesButtonActionPerformed private void EventCullingPanel_NotesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventCullingPanel_NotesButtonActionPerformed try { NotesPage.DisplayNote(Notes[3]); NotesPage.setVisible(true); if (NotesPage.SavedNote != null) { Notes[3] = NotesPage.SavedNote; } } catch (Exception e){ } }//GEN-LAST:event_EventCullingPanel_NotesButtonActionPerformed private void AnalysisMethodPanel_NotesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_NotesButtonActionPerformed try { NotesPage.DisplayNote(Notes[4]); NotesPage.setVisible(true); if (NotesPage.SavedNote != null) { Notes[4] = NotesPage.SavedNote; } } catch (Exception e){ } }//GEN-LAST:event_AnalysisMethodPanel_NotesButtonActionPerformed private void AnalysisMethodPanel_DistanceFunctionsListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_DistanceFunctionsListBoxMouseClicked AnalysisMethodPanel_DistanceFunctionDescriptionTextBox.setText(DistanceFunctionsMasterList.get(AnalysisMethodPanel_DistanceFunctionsListBox.getSelectedIndex()).longDescription()); if (evt.getClickCount() == 2) { AddAnalysisMethodSelection(); } }//GEN-LAST:event_AnalysisMethodPanel_DistanceFunctionsListBoxMouseClicked private void AnalysisMethodPanel_DistanceFunctionsListBoxMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AnalysisMethodPanel_DistanceFunctionsListBoxMouseMoved JList theList = (JList) evt.getSource(); int index = theList.locationToIndex(evt.getPoint()); if (index > -1) { String text = DistanceFunctionsMasterList.get(index).tooltipText(); theList.setToolTipText(text); } }//GEN-LAST:event_AnalysisMethodPanel_DistanceFunctionsListBoxMouseMoved private void Next_ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Next_ButtonActionPerformed int count = JGAAP_TabbedPane.getSelectedIndex(); if (count < 5) { JGAAP_TabbedPane.setSelectedIndex(count + 1); } }//GEN-LAST:event_Next_ButtonActionPerformed private void Review_ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Review_ButtonActionPerformed JGAAP_TabbedPane.setSelectedIndex(5); }//GEN-LAST:event_Review_ButtonActionPerformed private void ProblemAMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemAMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadA.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemAMenuItemActionPerformed private void ProblemBMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemBMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadB.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemBMenuItemActionPerformed private void ProblemCMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemCMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadC.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemCMenuItemActionPerformed private void ProblemDMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemDMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadD.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemDMenuItemActionPerformed private void ProblemEMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemEMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadE.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemEMenuItemActionPerformed private void ProblemFMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemFMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadF.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemFMenuItemActionPerformed private void ProblemGMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemGMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadG.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemGMenuItemActionPerformed private void ProblemHMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemHMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadH.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemHMenuItemActionPerformed private void ProblemIMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemIMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadI.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemIMenuItemActionPerformed private void ProblemJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemJMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadJ.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemJMenuItemActionPerformed private void ProblemKMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemKMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadK.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemKMenuItemActionPerformed private void ProblemLMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemLMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadL.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemLMenuItemActionPerformed private void ProblemMMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProblemMMenuItemActionPerformed try { filepath = jgaapConstants.docsDir()+"aaac/Demos/loadM.csv"; List<List<String>> DocumentCSVs = CSVIO.readCSV(filepath); for (int i = 0; i < DocumentCSVs.size(); i++) { JGAAP_API.addDocument(DocumentCSVs.get(i).get(1),DocumentCSVs.get(i).get(0),(DocumentCSVs.get(i).size()>2?DocumentCSVs.get(i).get(2):null)); } UpdateKnownDocumentsTree(); UpdateUnknownDocumentsTable(); } catch (Exception e) { } }//GEN-LAST:event_ProblemMMenuItemActionPerformed private void ReviewPanel_DocumentsLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReviewPanel_DocumentsLabelMouseClicked JGAAP_TabbedPane.setSelectedIndex(0); }//GEN-LAST:event_ReviewPanel_DocumentsLabelMouseClicked private void ReviewPanel_DocumentsTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReviewPanel_DocumentsTableMouseClicked JGAAP_TabbedPane.setSelectedIndex(0); }//GEN-LAST:event_ReviewPanel_DocumentsTableMouseClicked private void ReviewPanel_SelectedEventSetLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReviewPanel_SelectedEventSetLabelMouseClicked JGAAP_TabbedPane.setSelectedIndex(2); }//GEN-LAST:event_ReviewPanel_SelectedEventSetLabelMouseClicked private void ReviewPanel_SelectedEventSetListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReviewPanel_SelectedEventSetListBoxMouseClicked JGAAP_TabbedPane.setSelectedIndex(2); }//GEN-LAST:event_ReviewPanel_SelectedEventSetListBoxMouseClicked private void ReviewPanel_SelectedEventCullingLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReviewPanel_SelectedEventCullingLabelMouseClicked JGAAP_TabbedPane.setSelectedIndex(3); }//GEN-LAST:event_ReviewPanel_SelectedEventCullingLabelMouseClicked private void ReviewPanel_SelectedEventCullingListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReviewPanel_SelectedEventCullingListBoxMouseClicked JGAAP_TabbedPane.setSelectedIndex(3); }//GEN-LAST:event_ReviewPanel_SelectedEventCullingListBoxMouseClicked private void ReviewPanel_SelectedAnalysisMethodsLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReviewPanel_SelectedAnalysisMethodsLabelMouseClicked JGAAP_TabbedPane.setSelectedIndex(4); }//GEN-LAST:event_ReviewPanel_SelectedAnalysisMethodsLabelMouseClicked private void ReviewPanel_SelectedAnalysisMethodsListBoxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReviewPanel_SelectedAnalysisMethodsListBoxMouseClicked JGAAP_TabbedPane.setSelectedIndex(4); }//GEN-LAST:event_ReviewPanel_SelectedAnalysisMethodsListBoxMouseClicked private void toggleHelpDialog(){ helpDialog.setVisible(!helpDialog.isVisible()); } public boolean browseToURL(String url){ boolean succees = false; try { java.awt.Desktop.getDesktop().browse(java.net.URI.create(url)); succees = true; } catch (IOException ex) { ex.printStackTrace(); } return succees; } private void UpdateSelectedAnalysisMethodListBox() { SelectedAnalysisMethodListBox_Model.clear(); SelectedAnalysisDriverList = JGAAP_API.getAnalysisDrivers(); for (int i = 0; i < SelectedAnalysisDriverList.size(); i++) { SelectedAnalysisMethodListBox_Model.addElement(SelectedAnalysisDriverList.get(i).displayName()); } CheckMinimumRequirements(); if(!SelectedAnalysisDriverList.isEmpty()){ AnalysisMethodPanel_SelectedAnalysisMethodsListBox.setSelectedIndex(SelectedAnalysisDriverList.size()-1); AnalysisMethodPanel_SelectedAnalysisMethodsListBoxMouseClicked(null); } } private void UpdateSelectedEventSetListBox() { SelectedEventSetsListBox_Model.clear(); SelectedEventDriverList = JGAAP_API.getEventDrivers(); for (int i = 0; i < SelectedEventDriverList.size(); i++) { SelectedEventSetsListBox_Model.addElement(SelectedEventDriverList.get(i).displayName()); } CheckMinimumRequirements(); if(!SelectedEventDriverList.isEmpty()){ EventSetsPanel_SelectedEventSetListBox.setSelectedIndex(SelectedEventDriverList.size()-1); EventSetsPanel_SelectedEventSetListBoxMouseClicked(null); } } private void UpdateSelectedEventCullingListBox() { SelectedEventCullingListBox_Model.clear(); SelectedEventCullersList = JGAAP_API.getEventCullers(); for (int i = 0; i < SelectedEventCullersList.size(); i++) { SelectedEventCullingListBox_Model.addElement(SelectedEventCullersList.get(i).displayName()); } if(!SelectedEventCullersList.isEmpty()){ EventCullingPanel_SelectedEventCullingListBox.setSelectedIndex(SelectedEventCullersList.size()-1); EventCullingPanel_SelectedEventCullingListBoxMouseClicked(null); } } private void UpdateSelectedCanonicizerListBox() { SelectedCanonicizerListBox_Model.clear(); for (int i = 0; i < SelectedCanonicizerList.size(); i++) { SelectedCanonicizerListBox_Model.addElement(SelectedCanonicizerList.get(i).displayName()); } if(!SelectedCanonicizerList.isEmpty()){ CanonicizersPanel_SelectedCanonicizerListBox.setSelectedIndex(SelectedCanonicizerList.size()-1); CanonicizersPanel_SelectedCanonicizerListBoxMouseClicked(null); } } private void UpdateUnknownDocumentsTable() { UnknownAuthorDocumentsTable_Model.setRowCount(0); UnknownDocumentList = JGAAP_API.getUnknownDocuments(); for (int i = 0; i < UnknownDocumentList.size(); i++) { Object RowData[] = {UnknownDocumentList.get(i).getTitle(), UnknownDocumentList.get(i).getFilePath()}; UnknownAuthorDocumentsTable_Model.addRow(RowData); } UpdateDocumentsTable(); } private void UpdateKnownDocumentsTree() { DefaultMutableTreeNode root = (DefaultMutableTreeNode) KnownAuthorsTree_Model.getRoot(); for (int i = root.getChildCount() - 1; i >= 0; i--) { KnownAuthorsTree_Model.removeNodeFromParent((DefaultMutableTreeNode)root.getChildAt(i)); } AuthorList = JGAAP_API.getAuthors(); for (int i = 0; i < AuthorList.size(); i++) { String AuthorName = AuthorList.get(i); DefaultMutableTreeNode author = new DefaultMutableTreeNode(AuthorName); KnownAuthorsTree_Model.insertNodeInto(author, root, i); //root.add(author); KnownDocumentList = JGAAP_API.getDocumentsByAuthor(AuthorName); for (int j = 0; j < KnownDocumentList.size(); j++) { //author.add(new DefaultMutableTreeNode(KnownDocumentList.get(j).getTitle() + " - " + KnownDocumentList.get(j).getFilePath())); DefaultMutableTreeNode temp = new DefaultMutableTreeNode(KnownDocumentList.get(j).getTitle() + " - " + KnownDocumentList.get(j).getFilePath()); KnownAuthorsTree_Model.insertNodeInto(temp, author, j); } } UpdateDocumentsTable(); } private void UpdateDocumentsTable() { String CanonPresent = "No"; DocumentsTable_Model.setRowCount(0); DocumentList = JGAAP_API.getDocuments(); for (int i = 0; i < DocumentList.size(); i++) { if (DocumentList.get(i).getCanonicizers().isEmpty()) { CanonPresent = "No"; } else { CanonPresent = "Yes"; } Object RowData[] = {DocumentList.get(i).getTitle(), DocumentList.get(i).isAuthorKnown(), DocumentList.get(i).getAuthor(), DocumentList.get(i).getDocType(), CanonPresent}; DocumentsTable_Model.addRow(RowData); } CheckMinimumRequirements(); } private void UpdateCurrentCanonicizerBox() { int row = CanonicizersPanel_DocumentsTable.getSelectedRow(); if (row >= 0) { DocumentList = JGAAP_API.getDocuments(); List<Canonicizer> tempList = DocumentList.get(row).getCanonicizers(); String tempString = ""; for (int i = 0; i < tempList.size(); i++) { tempString = tempString + tempList.get(i).displayName() + "\r\n"; } CanonicizersPanel_DocumentsCurrentCanonicizersTextBox.setText(tempString); } } private void SanatizeMasterLists() { for (int i = AnalysisDriverMasterList.size() - 1; i >= 0; i--) { if (!AnalysisDriverMasterList.get(i).showInGUI()) { AnalysisDriverMasterList.remove(i); } } for (int i = CanonicizerMasterList.size() - 1; i >= 0; i--) { if (!CanonicizerMasterList.get(i).showInGUI()) { CanonicizerMasterList.remove(i); } } for (int i = EventDriverMasterList.size() - 1; i >= 0; i--) { if (!EventDriverMasterList.get(i).showInGUI()) { EventDriverMasterList.remove(i); } } for (int i = EventCullersMasterList.size() - 1; i >= 0; i--) { if (!EventCullersMasterList.get(i).showInGUI()) { EventCullersMasterList.remove(i); } } for (int i = DistanceFunctionsMasterList.size() - 1; i >= 0; i--) { if (!DistanceFunctionsMasterList.get(i).showInGUI()) { DistanceFunctionsMasterList.remove(i); } } for (int i = LanguagesMasterList.size() - 1; i >= 0; i--) { if (!LanguagesMasterList.get(i).showInGUI()) { LanguagesMasterList.remove(i); } } } private void SetAnalysisMethodList() { for (int i = 0; i < AnalysisDriverMasterList.size(); i++) { AnalysisMethodListBox_Model.addElement(AnalysisDriverMasterList.get(i).displayName()); } if (!AnalysisDriverMasterList.isEmpty()) { AnalysisMethodPanel_AnalysisMethodsListBox.setSelectedIndex(0); AnalysisMethodPanel_AnalysisMethodDescriptionTextBox.setText(AnalysisDriverMasterList.get(0).longDescription()); } } private void SetDistanceFunctionList() { for (int i = 0; i < DistanceFunctionsMasterList.size(); i++) { DistanceFunctionsListBox_Model.addElement(DistanceFunctionsMasterList.get(i).displayName()); } if (!DistanceFunctionsMasterList.isEmpty()) { AnalysisMethodPanel_DistanceFunctionsListBox.setSelectedIndex(0); AnalysisMethodPanel_DistanceFunctionDescriptionTextBox.setText(DistanceFunctionsMasterList.get(0).longDescription()); } } private void SetCanonicizerList() { for (int i = 0; i < CanonicizerMasterList.size(); i++) { CanonicizerListBox_Model.addElement(CanonicizerMasterList.get(i).displayName()); } if (!CanonicizerMasterList.isEmpty()) { CanonicizersPanel_CanonicizerListBox.setSelectedIndex(0); CanonicizersPanel_DocumentsCurrentCanonicizersTextBox.setText(CanonicizerMasterList.get(0).longDescription()); } } private void SetEventCullingList() { for (int i = 0; i < EventCullersMasterList.size(); i++) { EventCullingListBox_Model.addElement(EventCullersMasterList.get(i).displayName()); } if (!EventCullersMasterList.isEmpty()) { EventCullingPanel_EventCullingListBox.setSelectedIndex(0); EventCullingPanel_EventCullingDescriptionTextbox.setText(EventCullersMasterList.get(0).longDescription()); } } private void SetLanguagesList() { int englishIndex = -1; for (int i = 0; i < LanguagesMasterList.size(); i++) { LanguageComboBox_Model.addElement(LanguagesMasterList.get(i).displayName()); if (LanguagesMasterList.get(i).displayName().equalsIgnoreCase("English")) { englishIndex = i; } } if (englishIndex > -1) { DocumentsPanel_LanguageComboBox.setSelectedIndex(englishIndex); } } private void SetEventSetList() { for (int i = 0; i < EventDriverMasterList.size(); i++) { EventSetsListBox_Model.addElement(EventDriverMasterList.get(i).displayName()); } if (!EventDriverMasterList.isEmpty()) { EventSetsPanel_EventSetListBox.setSelectedIndex(0); EventSetsPanel_EventSetDescriptionTextBox.setText(EventDriverMasterList.get(0).longDescription()); } } private void SetUnknownDocumentColumns() { UnknownAuthorDocumentsTable_Model.addColumn("Title"); UnknownAuthorDocumentsTable_Model.addColumn("Filepath"); DocumentsPanel_UnknownAuthorsTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); DocumentsPanel_UnknownAuthorsTable.setColumnSelectionAllowed(false); DocumentsPanel_UnknownAuthorsTable.setRowSelectionAllowed(true); DocumentsPanel_UnknownAuthorsTable.getModel().addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { System.out.println("Unknown Documents Table Row: " + e.getFirstRow() + ", Column: " + e.getColumn()); if ((e.getColumn() >= 0) && (e.getFirstRow() >= 0)) { UnknownDocumentList = JGAAP_API.getUnknownDocuments(); if (e.getColumn() == 0) { UnknownDocumentList.get(e.getFirstRow()).setTitle((String)DocumentsPanel_UnknownAuthorsTable.getValueAt(e.getFirstRow(), 0)); } UpdateDocumentsTable(); } } }); } private void SetKnownDocumentTree() { DocumentsPanel_KnownAuthorsTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); DocumentsPanel_KnownAuthorsTree.setShowsRootHandles(true); } private void SetDocumentColumns() { DocumentsTable_Model.addColumn("Title"); DocumentsTable_Model.addColumn("Known"); DocumentsTable_Model.addColumn("Author"); DocumentsTable_Model.addColumn("Doc Type"); DocumentsTable_Model.addColumn("Canonicizers?"); CanonicizersPanel_DocumentsTable.setColumnSelectionAllowed(false); CanonicizersPanel_DocumentsTable.setRowSelectionAllowed(true); CanonicizersPanel_DocumentsTable.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { UpdateCurrentCanonicizerBox(); } }); } /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new JGAAP_UI_MainForm().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JPanel AnalysisMethodPanel_AMParametersPanel; private javax.swing.JButton AnalysisMethodPanel_AddAllAnalysisMethodsButton; private javax.swing.JButton AnalysisMethodPanel_AddAnalysisMethodButton; private javax.swing.JTextArea AnalysisMethodPanel_AnalysisMethodDescriptionTextBox; private javax.swing.JList AnalysisMethodPanel_AnalysisMethodsListBox; private javax.swing.JPanel AnalysisMethodPanel_DFParametersPanel; private javax.swing.JTextArea AnalysisMethodPanel_DistanceFunctionDescriptionTextBox; private javax.swing.JList AnalysisMethodPanel_DistanceFunctionsListBox; private javax.swing.JButton AnalysisMethodPanel_NotesButton; private javax.swing.JButton AnalysisMethodPanel_RemoveAllAnalysisMethodsButton; private javax.swing.JButton AnalysisMethodPanel_RemoveAnalysisMethodsButton; private javax.swing.JList AnalysisMethodPanel_SelectedAnalysisMethodsListBox; private javax.swing.JMenuItem BatchLoadMenuItem; private javax.swing.JMenuItem BatchSaveMenuItem; private javax.swing.JButton CanonicizersPanel_AddAllCanonicizersButton; private javax.swing.JButton CanonicizersPanel_AddCanonicizerButton; private javax.swing.JList CanonicizersPanel_CanonicizerListBox; private javax.swing.JTextArea CanonicizersPanel_DocumentsCanonicizerDescriptionTextBox; private javax.swing.JTextArea CanonicizersPanel_DocumentsCurrentCanonicizersTextBox; private javax.swing.JTable CanonicizersPanel_DocumentsTable; private javax.swing.JButton CanonicizersPanel_NotesButton; private javax.swing.JButton CanonicizersPanel_RemoveAllCanonicizersButton; private javax.swing.JButton CanonicizersPanel_RemoveCanonicizerButton; private javax.swing.JList CanonicizersPanel_SelectedCanonicizerListBox; private javax.swing.JButton CanonicizersPanel_SetToAllDocuments; private javax.swing.JButton CanonicizersPanel_SetToDocumentButton; private javax.swing.JButton CanonicizersPanel_SetToDocumentTypeButton; private javax.swing.JButton DocumentsPanel_AddAuthorButton; private javax.swing.JButton DocumentsPanel_AddDocumentsButton; private javax.swing.JButton DocumentsPanel_EditAuthorButton; private javax.swing.JTree DocumentsPanel_KnownAuthorsTree; private javax.swing.JComboBox DocumentsPanel_LanguageComboBox; private javax.swing.JButton DocumentsPanel_NotesButton; private javax.swing.JButton DocumentsPanel_RemoveAuthorButton; private javax.swing.JButton DocumentsPanel_RemoveDocumentsButton; private javax.swing.JTable DocumentsPanel_UnknownAuthorsTable; private javax.swing.JButton EventCullingPanel_AddAllEventCullingButton; private javax.swing.JButton EventCullingPanel_AddEventCullingButton; private javax.swing.JTextArea EventCullingPanel_EventCullingDescriptionTextbox; private javax.swing.JList EventCullingPanel_EventCullingListBox; private javax.swing.JButton EventCullingPanel_NotesButton; private javax.swing.JPanel EventCullingPanel_ParametersPanel; private javax.swing.JButton EventCullingPanel_RemoveAllEventCullingButton; private javax.swing.JButton EventCullingPanel_RemoveEventCullingButton; private javax.swing.JList EventCullingPanel_SelectedEventCullingListBox; private javax.swing.JButton EventSetsPanel_AddAllEventSetsButton; private javax.swing.JButton EventSetsPanel_AddEventSetButton; private javax.swing.JTextArea EventSetsPanel_EventSetDescriptionTextBox; private javax.swing.JList EventSetsPanel_EventSetListBox; private javax.swing.JButton EventSetsPanel_NotesButton; private javax.swing.JPanel EventSetsPanel_ParametersPanel; private javax.swing.JButton EventSetsPanel_RemoveAllEventSetsButton; private javax.swing.JButton EventSetsPanel_RemoveEventSetButton; private javax.swing.JList EventSetsPanel_SelectedEventSetListBox; private javax.swing.JPanel JGAAP_AnalysisMethodPanel; private javax.swing.JPanel JGAAP_CanonicizerPanel; private javax.swing.JPanel JGAAP_DocumentsPanel; private javax.swing.JPanel JGAAP_EventCullingPanel; private javax.swing.JPanel JGAAP_EventSetsPanel; private javax.swing.JMenuBar JGAAP_MenuBar; private javax.swing.JPanel JGAAP_ReviewPanel; private javax.swing.JTabbedPane JGAAP_TabbedPane; private javax.swing.JButton Next_Button; private javax.swing.JMenuItem ProblemAMenuItem; private javax.swing.JMenuItem ProblemBMenuItem; private javax.swing.JMenuItem ProblemCMenuItem; private javax.swing.JMenuItem ProblemDMenuItem; private javax.swing.JMenuItem ProblemEMenuItem; private javax.swing.JMenuItem ProblemFMenuItem; private javax.swing.JMenuItem ProblemGMenuItem; private javax.swing.JMenuItem ProblemHMenuItem; private javax.swing.JMenuItem ProblemIMenuItem; private javax.swing.JMenuItem ProblemJMenuItem; private javax.swing.JMenuItem ProblemKMenuItem; private javax.swing.JMenuItem ProblemLMenuItem; private javax.swing.JMenuItem ProblemMMenuItem; private javax.swing.JLabel ReviewPanel_DocumentsLabel; private javax.swing.JTable ReviewPanel_DocumentsTable; private javax.swing.JButton ReviewPanel_ProcessButton; private javax.swing.JLabel ReviewPanel_SelectedAnalysisMethodsLabel; private javax.swing.JList ReviewPanel_SelectedAnalysisMethodsListBox; private javax.swing.JLabel ReviewPanel_SelectedEventCullingLabel; private javax.swing.JList ReviewPanel_SelectedEventCullingListBox; private javax.swing.JLabel ReviewPanel_SelectedEventSetLabel; private javax.swing.JList ReviewPanel_SelectedEventSetListBox; private javax.swing.JButton Review_Button; private javax.swing.JMenuItem aboutMenuItem; private javax.swing.JMenuItem exitMenuItem; private javax.swing.JButton helpCloseButton; private javax.swing.JDialog helpDialog; private javax.swing.JMenu helpMenu; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel12; private javax.swing.JLabel jLabel13; private javax.swing.JLabel jLabel15; private javax.swing.JLabel jLabel16; private javax.swing.JLabel jLabel17; private javax.swing.JLabel jLabel18; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel20; private javax.swing.JLabel jLabel21; private javax.swing.JLabel jLabel22; private javax.swing.JLabel jLabel23; private javax.swing.JLabel jLabel24; private javax.swing.JLabel jLabel25; private javax.swing.JLabel jLabel26; private javax.swing.JLabel jLabel27; private javax.swing.JLabel jLabel28; private javax.swing.JLabel jLabel29; private javax.swing.JLabel jLabel30; private javax.swing.JLabel jLabel31; private javax.swing.JLabel jLabel32; private javax.swing.JLabel jLabel33; private javax.swing.JLabel jLabel34; private javax.swing.JLabel jLabel35; private javax.swing.JLabel jLabel36; private javax.swing.JLabel jLabel37; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JMenu jMenu1; private javax.swing.JMenu jMenu2; private javax.swing.JMenu jMenu4; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane10; private javax.swing.JScrollPane jScrollPane11; private javax.swing.JScrollPane jScrollPane12; private javax.swing.JScrollPane jScrollPane13; private javax.swing.JScrollPane jScrollPane14; private javax.swing.JScrollPane jScrollPane15; private javax.swing.JScrollPane jScrollPane16; private javax.swing.JScrollPane jScrollPane17; private javax.swing.JScrollPane jScrollPane18; private javax.swing.JScrollPane jScrollPane19; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JScrollPane jScrollPane20; private javax.swing.JScrollPane jScrollPane21; private javax.swing.JScrollPane jScrollPane22; private javax.swing.JScrollPane jScrollPane23; private javax.swing.JScrollPane jScrollPane24; private javax.swing.JScrollPane jScrollPane25; private javax.swing.JScrollPane jScrollPane26; private javax.swing.JScrollPane jScrollPane27; private javax.swing.JScrollPane jScrollPane6; private javax.swing.JScrollPane jScrollPane9; // End of variables declaration//GEN-END:variables }
4471df8165350f117f6543b712b82edcee8dd0ee
a54d534ffb53525ce9c2ca6bceed8899d23789b9
/src/Prog11.java
3ef81472bb8ad19fca2a20e0b720d05baabd1c76
[]
no_license
abhiMishka/codingPractice
51c736d3455fec19f4a65d442de71e36df76900b
88202acec076283e2a79e6052cc9a0beddd6e4e5
refs/heads/master
2020-12-06T00:46:34.704555
2020-05-10T14:15:43
2020-05-10T14:15:43
232,291,429
0
0
null
null
null
null
UTF-8
Java
false
false
916
java
public class Prog11 extends BaseTestClass { public static int[] getArray1() { return new int[]{1,8,6,2,5,4,8,3,7}; } private static int[] getArray2() { return new int[]{3,4}; } public static void main(String... args) { int ans = maxArea(getArray1()); print(String.valueOf(ans)); } public static int maxArea(int[] height) { int maxWater = 0; int currentMax = 0; int i=0;int j=1; if(height.length==1) return 0; while (i<height.length && j<height.length){ if(height[j]>=height[i]){ if(maxWater<(j-i)){ maxWater = j-i; } i = j; currentMax = j++; }else{ j++; } print("i : " +i+ " , j " +j +" , max ; " +maxWater+"\n"); } return maxWater*maxWater; } }
bd56bfa5155ef68e7c64432004864a1ffee46f2c
2fa20077227c0b73c220243be6bd25b3fa0234ef
/src/main/java/br/com/zupacademy/proposta/repository/BiometriaRepository.java
ac42a7aa87da057bf765a51f888de171e09ce0b9
[ "Apache-2.0" ]
permissive
sergio-ads/orange-talents-05-template-proposta
741cbc89378117824c8ece07c5a1b7f3eb27e525
589641edc1c9e2ca80ae4cdecf8aad96404f1f26
refs/heads/main
2023-06-01T22:50:23.984606
2021-06-18T23:15:18
2021-06-18T23:15:18
375,009,306
0
0
Apache-2.0
2021-06-08T12:56:23
2021-06-08T12:56:22
null
UTF-8
Java
false
false
246
java
package br.com.zupacademy.proposta.repository; import org.springframework.data.jpa.repository.JpaRepository; import br.com.zupacademy.proposta.model.Biometria; public interface BiometriaRepository extends JpaRepository<Biometria, String> { }
7926a87c4583617e63b827c8a64b34355afa5164
cc0c02e916bd2570300d48dd7356ee26244fc9c9
/src/algorithm/Main.java
d20f2b659000560b81e31978d58d095590134a07
[]
no_license
neoalwayz/Plagiarism_detector
f909be5ef7eddc9ccb6be107db63dbd441cda89a
cca226f62f8dd0d792a01a2999283ed71ad59421
refs/heads/master
2021-01-12T01:53:22.538637
2017-01-09T16:01:05
2017-01-09T16:01:05
78,441,082
1
0
null
null
null
null
UTF-8
Java
false
false
4,635
java
/** * */ package algorithm; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.BitSet; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import com.google.common.base.Charsets; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import com.google.common.io.Files; /** * @author shubham * */ public class Main { /** * @param args */ public Main(){ } public int init(String[] args) throws Exception { if (args.length != 3) { System.err.println("Usage: inputfile outputfile compareFile"); return 0; } long start = System.nanoTime(); // Creates SimHash object. Simhash simHash = new Simhash(new BinaryWordSeg()); // DocHashes is a list that will contain all of the calculated hashes. ArrayList<Long> docHashes = Lists.newArrayList(); // Maps 12-bit key with the documents matching the partial hash Map<BitSet, HashSet<Integer>> hashIndex = Maps.newHashMap(); // Read the documents. (Each line represents a document). String[] docs = getNgrams(args[0]); int idx = 0; System.out.println("Start to build index..."); for (String doc : docs) { // Calculate the document hash. long docHash = simHash.simhash64(doc); // System.out.println("Document=[" + doc + "] Hash=[" + docHash + "]"); // Store the document hash in a list. docHashes.add(docHash); // StringBuilder keyBuilder = new StringBuilder(12); BitSet key = new BitSet(12); int step = 0; for (int i = 0; i < 64; ++i) { key.set(step, ((docHash >> i) & 1) == 1); if (step++ == 12) { /* * a) Separates the hash in 12-bit keys. b) This value will * be a key in hashIndex. c) hashIndex will contain sets of * documents matching each key (12-bits). */ if (hashIndex.containsKey(key)) { hashIndex.get(key).add(idx); } else { HashSet<Integer> vector = new HashSet<Integer>(); vector.add(idx); hashIndex.put(key, vector); } step = 0; key = new BitSet(12); // reset key holder. } } ++idx; } System.out.println("Index has been built."); File output = new File(args[1]); idx = 0; BitSet bits = new BitSet(docs.length); int ans=0; String[] docs2 = getNgrams(args[2]); for (String doc : docs2) { // For each document. if (bits.get(idx)) { ++idx; continue; } // Calculates document hash. long docHash = simHash.simhash64(doc); BitSet key = new BitSet(12); int step = 0; HashSet<Integer> docSimilarCandidates = Sets.newHashSet(); for (int i = 0; i < 64; ++i) { key.set(step, ((docHash >> i) & 1) == 1); if (step++ == 12) { /* * a) Separates the hash in 12-bit keys. b) This value will * be a key in hashIndex. c) hashIndex will contain sets of * documents matching each key (12-bits). */ if (hashIndex.containsKey(key)) { docSimilarCandidates.addAll(hashIndex.get(key)); } step = 0; key = new BitSet(12); } } List<Integer> similarDocs = Lists.newLinkedList(); Map<Integer, Integer> docDistances = Maps.newHashMap(); for (Integer i : docSimilarCandidates) { int dist = simHash.hammingDistance(docHash, docHashes.get(i)); if (dist <= 3) { similarDocs.add(i); bits.set(i); docDistances.put(i, dist); } } if (!similarDocs.isEmpty()) { Files.append("Documents similar as [" + doc + "]:\n", output, Charsets.UTF_8); ans++; for (int i : similarDocs) { // if (i == idx) // continue; Files.append("[" + docs[i] + "]\tDistance=[" + docDistances.get(i) + "]\n", output, Charsets.UTF_8); } Files.append("End\n", output, Charsets.UTF_8); } bits.set(idx); ++idx; } System.out.println("Elapsed time: " + TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - start)); return ans; } private static List<String> readDocs(String[] args) throws IOException { return Files.readLines(new File(args[0]), Charsets.UTF_8); } private static String[] readDocs2(String text){ String[] split = new String[text.length()]; return split; } public String[] getNgrams(String str){ String[] ans = str.split("\\s+"); String[] grams = new String[ans.length+1]; int count=0; for(int i=4;i<ans.length;i++){ grams[count++] = ans[i-4] + " " + ans[i-3] + " " + ans[i-2] + " " + ans[i-1] + " " + ans[i]; } String[] ans2 = new String[count]; for(int i=0;i<count;i++){ ans2[i] = grams[i]; } return ans2; } }
9d476cee9940f759be18fcddf75f6380e43f4756
32f38cd53372ba374c6dab6cc27af78f0a1b0190
/app/src/main/java/com/googlecode/androidannotations/annotations/AfterInject.java
064e43b932a1682dba797e2349b39f5319f44c6e
[]
no_license
shuixi2013/AmapCode
9ea7aefb42e0413f348f238f0721c93245f4eac6
1a3a8d4dddfcc5439df8df570000cca12b15186a
refs/heads/master
2023-06-06T23:08:57.391040
2019-08-29T04:36:02
2019-08-29T04:36:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
316
java
package com.googlecode.androidannotations.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ElementType.METHOD}) @Retention(RetentionPolicy.CLASS) public @interface AfterInject { }
529002f6f3bbb933f5c968a8b921a1a10adc8887
0eb05cd1a6b2a05f0bca57773f67df0ef34eff24
/Graph/src/ru/academits/khoroshunov/main/Main.java
5a729e463b3bf83bbad1d7a85b8259c3ee8379c7
[]
no_license
kh11884/Khoroshunov_AcademItSchool
3b8c77c769fee75d7156c6f2db7f57bd84fa5c4e
160832a086378f5fc5fc182079b061005a0e05b3
refs/heads/master
2020-06-02T15:32:33.881240
2019-09-29T09:27:44
2019-09-29T09:27:44
191,209,634
0
0
null
null
null
null
UTF-8
Java
false
false
1,144
java
package ru.academits.khoroshunov.main; import ru.academits.khoroshunov.graph.Graph; import java.util.function.Consumer; public class Main { public static void main(String[] args) { Graph graph = new Graph(new int[][]{{0, 1, 0, 0, 0, 0, 0}, {1, 0, 1, 1, 1, 1, 0}, {0, 1, 0, 0, 0, 0, 1}, {0, 1, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 1, 0}, {0, 1, 0, 0, 1, 0, 1}, {0, 0, 1, 0, 0, 1, 0} }); Consumer<Integer> printData = element -> System.out.print(element + ", "); System.out.println("Проверка метода \"Обход в ширину\"."); graph.widthGoRound(printData); System.out.println(); System.out.println(); System.out.println("Проверка метода \"Обход в глубину\"."); graph.deepGoRound(printData); System.out.println(); System.out.println(); System.out.println("Проверка метода \"Обход в глубину с рекурсией\"."); graph.recursionDeepGoRound(printData); } }
0dd9495151148464a3a1d7c5336b3d261bfa41de
435a532fb5d375a8442312bbff40f0d9577384d2
/CS4001_OffensiveSecurity/assignment2/Target/sources/android/support/v4/view/ViewConfigurationCompat.java
aac70de80d61d5be84d7e50592029f84dbb69c88
[]
no_license
MCAR43/School-Work
96e687971d7a18cb8b526623424ce1d9eba09f75
63369c1111072f61c59501e5877ab783be42678f
refs/heads/main
2023-03-24T11:55:45.723844
2021-03-18T17:00:28
2021-03-18T17:00:28
349,144,761
0
0
null
null
null
null
UTF-8
Java
false
false
2,393
java
package android.support.v4.view; import android.os.Build; import android.view.ViewConfiguration; public class ViewConfigurationCompat { static final ViewConfigurationVersionImpl IMPL; interface ViewConfigurationVersionImpl { int getScaledPagingTouchSlop(ViewConfiguration viewConfiguration); boolean hasPermanentMenuKey(ViewConfiguration viewConfiguration); } static class BaseViewConfigurationVersionImpl implements ViewConfigurationVersionImpl { BaseViewConfigurationVersionImpl() { } public int getScaledPagingTouchSlop(ViewConfiguration config) { return config.getScaledTouchSlop(); } public boolean hasPermanentMenuKey(ViewConfiguration config) { return true; } } static class FroyoViewConfigurationVersionImpl extends BaseViewConfigurationVersionImpl { FroyoViewConfigurationVersionImpl() { } public int getScaledPagingTouchSlop(ViewConfiguration config) { return ViewConfigurationCompatFroyo.getScaledPagingTouchSlop(config); } } static class HoneycombViewConfigurationVersionImpl extends FroyoViewConfigurationVersionImpl { HoneycombViewConfigurationVersionImpl() { } public boolean hasPermanentMenuKey(ViewConfiguration config) { return false; } } static class IcsViewConfigurationVersionImpl extends HoneycombViewConfigurationVersionImpl { IcsViewConfigurationVersionImpl() { } public boolean hasPermanentMenuKey(ViewConfiguration config) { return ViewConfigurationCompatICS.hasPermanentMenuKey(config); } } static { if (Build.VERSION.SDK_INT >= 14) { IMPL = new IcsViewConfigurationVersionImpl(); } else if (Build.VERSION.SDK_INT >= 11) { IMPL = new HoneycombViewConfigurationVersionImpl(); } else if (Build.VERSION.SDK_INT >= 8) { IMPL = new FroyoViewConfigurationVersionImpl(); } else { IMPL = new BaseViewConfigurationVersionImpl(); } } public static int getScaledPagingTouchSlop(ViewConfiguration config) { return IMPL.getScaledPagingTouchSlop(config); } public static boolean hasPermanentMenuKey(ViewConfiguration config) { return IMPL.hasPermanentMenuKey(config); } }
89af49135ddd9d4ebf2e1cf2f121ab72670826c6
d13c5ca1dc597d95e640f7eff6c157b0a3f676eb
/dubbo-demo/dubbo-study/Adpative/ThreadPool_Adpative.java
5616db373f69e830c9f4691fe131a12165cb29de
[]
no_license
angelwsin/dubbox
6a4ce1fc474302dc090b193d4b669e4043fdb026
54015cde7c58e27ddfaa13ca4a4a6966be0930fe
refs/heads/master
2020-07-14T23:35:22.694028
2017-06-14T07:17:57
2017-06-14T07:17:57
94,300,225
0
0
null
null
null
null
UTF-8
Java
false
false
882
java
package javaTest.javaTest; public class ThreadPool_Adpative implements com.alibaba.dubbo.common.threadpool.ThreadPool { public java.util.concurrent.Executor getExecutor(com.alibaba.dubbo.common.URL arg0) { if (arg0 == null) throw new IllegalArgumentException("url == null"); com.alibaba.dubbo.common.URL url = arg0; String extName = url.getParameter("threadpool", "fixed"); if(extName == null) throw new IllegalStateException("Fail to get extension(com.alibaba.dubbo.common.threadpool.ThreadPool) name from url(" + url.toString() + ") use keys([threadpool])"); com.alibaba.dubbo.common.threadpool.ThreadPool extension = (com.alibaba.dubbo.common.threadpool.ThreadPool)ExtensionLoader.getExtensionLoader(com.alibaba.dubbo.common.threadpool.ThreadPool.class).getExtension(extName); return extension.getExecutor(arg0); } }
c83833b52673742b3977d75c3e785a5cd755ea3e
b95775590d7e4114bc33da2bd539ee841ff57639
/src/items/SuperLaser.java
89394595386f1135f381d40889abf31c86f09c9c
[ "MIT" ]
permissive
Avantol13/Improved-Classic-Snake-Game
ebb6572bdc5960c1bc438a98dcb8e32c27731790
3f56f7589b3196b83c55bf959160b0e242380fea
refs/heads/master
2021-01-17T04:48:48.114958
2016-03-27T03:30:59
2016-03-27T03:30:59
34,519,577
1
0
null
null
null
null
UTF-8
Java
false
false
3,992
java
/* * |<><><><><><><><><><><><><><><><><><><><><><>| * | E-Destroyer McSnake 1325.2 (The Beginning) | * |<><><><><><><><><><><><><><><><><><><><><><>| * * []-------A game by Tiger Festival-------[] */ package items; import java.awt.*; import java.io.IOException; import java.awt.Graphics2D; import javax.imageio.ImageIO; import core.Snake; // TODO: Auto-generated Javadoc /** * The Class SuperLaser. */ public class SuperLaser extends Item{ /** The x snake. */ private int xSnake; /** The y snake. */ private int ySnake; /** The direction. */ private Projectile.Direction direction; /** The laser bolt3. */ private Projectile laserBolt1, laserBolt2, laserBolt3; /** The item image. */ private static Image itemImage; /** The image_ r. */ protected Image image_U, image_D, image_L, image_R; //images for projectiles /** The g2d. */ public Graphics2D g2d; // Default constructor. /** * Instantiates a new super laser. */ public SuperLaser() { super(); try { //image for item image = ImageIO.read(getClass().getResource("images/Super Laser.png")); itemImage = image; //projectile images image_U = ImageIO.read(getClass().getResource("images/Laser Bolt - UD.png")); image_D = ImageIO.read(getClass().getResource("images/Laser Bolt - UD.png")); image_L = ImageIO.read(getClass().getResource("images/Laser Bolt - LR.png")); image_R = ImageIO.read(getClass().getResource("images/Laser Bolt - LR.png")); } catch (IOException e) { } numUses = 1; } /* (non-Javadoc) * @see items.Item#use(core.Snake) */ public void use(Snake snake) { if (snake.getDirection() == Snake.Direction.UP) { direction = Projectile.Direction.UP; xSnake = snake.getHeadX(); ySnake = snake.getHeadY() - 1; laserBolt1 = new LaserBolt(xSnake - 2, ySnake, 1, direction, 0, 25, image_U, image_D, image_L, image_R); laserBolt2 = new LaserBolt(xSnake, ySnake, 1, direction, 0, 25, image_U, image_D, image_L, image_R); laserBolt3 = new LaserBolt(xSnake + 2, ySnake, 1, direction, 0, 25, image_U, image_D, image_L, image_R); } else if (snake.getDirection() == Snake.Direction.LEFT) { direction = Projectile.Direction.LEFT; xSnake = snake.getHeadX() - 1; ySnake = snake.getHeadY(); laserBolt1 = new LaserBolt(xSnake, ySnake - 2, 1, direction, 0, 25, image_U, image_D, image_L, image_R); laserBolt2 = new LaserBolt(xSnake, ySnake, 1, direction, 0, 25, image_U, image_D, image_L, image_R); laserBolt3 = new LaserBolt(xSnake, ySnake + 2, 1, direction, 0, 25, image_U, image_D, image_L, image_R); } else if (snake.getDirection() == Snake.Direction.RIGHT) { direction = Projectile.Direction.RIGHT; xSnake = snake.getHeadX() + 1; ySnake = snake.getHeadY(); laserBolt1 = new LaserBolt(xSnake, ySnake - 2, 1, direction, 0, 25, image_U, image_D, image_L, image_R); laserBolt2 = new LaserBolt(xSnake, ySnake, 1, direction, 0, 25, image_U, image_D, image_L, image_R); laserBolt3 = new LaserBolt(xSnake, ySnake + 2, 1, direction, 0, 25, image_U, image_D, image_L, image_R); } else { direction = Projectile.Direction.DOWN; xSnake = snake.getHeadX(); ySnake = snake.getHeadY() + 1; laserBolt1 = new LaserBolt(xSnake - 2, ySnake, 1, direction, 0, 25, image_U, image_D, image_L, image_R); laserBolt2 = new LaserBolt(xSnake, ySnake, 1, direction, 0, 25, image_U, image_D, image_L, image_R); laserBolt3 = new LaserBolt(xSnake + 2, ySnake, 1, direction, 0, 25, image_U, image_D, image_L, image_R); } //add projectiles to game game.getProjectiles().add(laserBolt1); game.getProjectiles().add(laserBolt2); game.getProjectiles().add(laserBolt3); numUses--; } //** /** * Gets the item image. * * @return the item image */ public static Image getItemImage() { return itemImage; } }
812561bd08218b0872ddafafc8b294f59c757842
4df56bcdc06bd5e1dfe788b9b337a50911abfe75
/chrome/android/java/src/org/chromium/chrome/browser/autofill/SaveUpdateAddressProfilePrompt.java
2110a22a10e77a7bf3deaefa8e39b3ff8f944d7f
[ "BSD-3-Clause" ]
permissive
Dr3xler/chromium
54f33430525cec0e6da9efc45a2cbc60b4197b40
268e816f13aa8e06dbdb4f6b9a6d465b4d99480c
refs/heads/main
2023-06-22T19:31:10.411169
2021-07-15T12:47:46
2021-07-15T12:47:46
386,290,191
0
0
BSD-3-Clause
2021-07-15T12:56:21
2021-07-15T12:56:21
null
UTF-8
Java
false
false
9,089
java
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.autofill; import android.app.Activity; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.widget.TextView; import androidx.annotation.Nullable; import org.chromium.base.annotations.CalledByNative; import org.chromium.base.annotations.JNIAdditionalImport; import org.chromium.base.annotations.JNINamespace; import org.chromium.chrome.R; import org.chromium.chrome.browser.autofill.prefeditor.EditorDialog; import org.chromium.chrome.browser.autofill.settings.AddressEditor; import org.chromium.chrome.browser.payments.AutofillAddress; import org.chromium.chrome.browser.profiles.Profile; import org.chromium.ui.base.WindowAndroid; import org.chromium.ui.modaldialog.DialogDismissalCause; import org.chromium.ui.modaldialog.ModalDialogManager; import org.chromium.ui.modaldialog.ModalDialogProperties; import org.chromium.ui.modaldialog.SimpleModalDialogController; import org.chromium.ui.modelutil.PropertyModel; /** * Prompt that asks users to confirm saving an address profile imported from a form submission. */ @JNINamespace("autofill") @JNIAdditionalImport(PersonalDataManager.class) public class SaveUpdateAddressProfilePrompt { private final SaveUpdateAddressProfilePromptController mController; private final ModalDialogManager mModalDialogManager; private final PropertyModel mDialogModel; private final View mDialogView; private final EditorDialog mEditorDialog; private final AddressEditor mAddressEditor; private boolean mEditorClosingPending; /** * Save prompt to confirm saving an address profile imported from a form submission. */ public SaveUpdateAddressProfilePrompt(SaveUpdateAddressProfilePromptController controller, ModalDialogManager modalDialogManager, Activity activity, Profile browserProfile, PersonalDataManager.AutofillProfile autofillProfile, boolean isUpdate) { mController = controller; mModalDialogManager = modalDialogManager; LayoutInflater inflater = LayoutInflater.from(activity); mDialogView = inflater.inflate(isUpdate ? R.layout.autofill_update_address_profile_prompt : R.layout.autofill_save_address_profile_prompt, null); PropertyModel.Builder builder = new PropertyModel.Builder(ModalDialogProperties.ALL_KEYS) .with(ModalDialogProperties.CONTROLLER, new SimpleModalDialogController( modalDialogManager, this::onDismiss)) .with(ModalDialogProperties.PRIMARY_BUTTON_FILLED, true) .with(ModalDialogProperties.CUSTOM_VIEW, mDialogView); mDialogModel = builder.build(); mEditorDialog = new EditorDialog(activity, /*deleteRunnable=*/null, browserProfile); mEditorDialog.setShouldTriggerDoneCallbackBeforeCloseAnimation(true); mAddressEditor = new AddressEditor(AddressEditor.Purpose.AUTOFILL_SETTINGS, /*saveToDisk=*/false); mAddressEditor.setEditorDialog(mEditorDialog); AutofillAddress autofillAddress = new AutofillAddress(activity, autofillProfile); mDialogView.findViewById(R.id.edit_button).setOnClickListener(v -> { mAddressEditor.edit(autofillAddress, /*doneCallback=*/this::onEdited, /*cancelCallback=*/unused -> {}); }); } /** * Shows the dialog for saving an address. */ @CalledByNative private void show() { mModalDialogManager.showDialog(mDialogModel, ModalDialogManager.ModalDialogType.APP); } /** * Creates the prompt for saving an address. * * @param windowAndroid the window to supply Android dependencies. * @param controller the controller to handle the interaction. * @param browserProfile the Chrome profile being used. * @param autofillProfile the address data to be saved. * @param isUpdate true if there's an existing profile which will be updated, false otherwise. * @return instance of the SaveUpdateAddressProfilePrompt or null if the call failed. */ @CalledByNative @Nullable private static SaveUpdateAddressProfilePrompt create(WindowAndroid windowAndroid, SaveUpdateAddressProfilePromptController controller, Profile browserProfile, PersonalDataManager.AutofillProfile autofillProfile, boolean isUpdate) { Activity activity = windowAndroid.getActivity().get(); ModalDialogManager modalDialogManager = windowAndroid.getModalDialogManager(); if (activity == null || modalDialogManager == null) return null; return new SaveUpdateAddressProfilePrompt(controller, modalDialogManager, activity, browserProfile, autofillProfile, isUpdate); } /** * Displays the dialog-specific properties. * * @param title the title of the dialog. * @param positiveButtonText the text on the positive button. * @param negativeButtonText the text on the negative button. */ @CalledByNative private void setDialogDetails( String title, String positiveButtonText, String negativeButtonText) { mDialogModel.set(ModalDialogProperties.TITLE, title); mDialogModel.set(ModalDialogProperties.POSITIVE_BUTTON_TEXT, positiveButtonText); mDialogModel.set(ModalDialogProperties.NEGATIVE_BUTTON_TEXT, negativeButtonText); // The text in the editor should match the text in the dialog. mAddressEditor.setCustomDoneButtonText(positiveButtonText); } /** * Displays the details in case a new address to be saved. * * @param address the address details to be saved. * @param email the email to be saved. * @param phone the phone to be saved. */ @CalledByNative private void setSaveDetails(String address, String email, String phone) { showTextIfNotEmpty(mDialogView.findViewById(R.id.address), address); showTextIfNotEmpty(mDialogView.findViewById(R.id.email), email); showTextIfNotEmpty(mDialogView.findViewById(R.id.phone), phone); } /** * Displays the details in case an existing address to be updated. If oldDetails are empty, only * newDetails are shown. * * @param subtitle the text to display below the title. * @param oldDetails details in the existing profile that differ. * @param newDetails details in the new profile that differ. */ @CalledByNative private void setUpdateDetails(String subtitle, String oldDetails, String newDetails) { showTextIfNotEmpty(mDialogView.findViewById(R.id.subtitle), subtitle); showHeaders(!TextUtils.isEmpty(oldDetails)); showTextIfNotEmpty(mDialogView.findViewById(R.id.details_old), oldDetails); showTextIfNotEmpty(mDialogView.findViewById(R.id.details_new), newDetails); } /** * Dismisses the prompt without returning any user response. */ @CalledByNative private void dismiss() { // Do not dismiss the editor if closing is pending to not abort the animation. if (!mEditorClosingPending && mEditorDialog.isShowing()) mEditorDialog.dismiss(); mModalDialogManager.dismissDialog(mDialogModel, DialogDismissalCause.DISMISSED_BY_NATIVE); } private void onEdited(AutofillAddress autofillAddress) { mEditorClosingPending = true; mController.onUserEdited(autofillAddress.getProfile()); mModalDialogManager.dismissDialog(mDialogModel, DialogDismissalCause.ACTION_ON_CONTENT); } private void onDismiss(@DialogDismissalCause int dismissalCause) { switch (dismissalCause) { case DialogDismissalCause.POSITIVE_BUTTON_CLICKED: mController.onUserAccepted(); break; case DialogDismissalCause.NEGATIVE_BUTTON_CLICKED: mController.onUserDeclined(); break; case DialogDismissalCause.ACTION_ON_CONTENT: default: // No explicit user decision. break; } mController.onPromptDismissed(); } private void showTextIfNotEmpty(TextView textView, String text) { if (TextUtils.isEmpty(text)) { textView.setVisibility(View.GONE); } else { textView.setVisibility(View.VISIBLE); textView.setText(text); } } private void showHeaders(boolean show) { mDialogView.findViewById(R.id.header_new).setVisibility(show ? View.VISIBLE : View.GONE); mDialogView.findViewById(R.id.header_old).setVisibility(show ? View.VISIBLE : View.GONE); mDialogView.findViewById(R.id.no_header_space) .setVisibility(show ? View.GONE : View.VISIBLE); } }
af915ca8902bf9a9c906176465a894e101b16711
2e7f02876699f4fb0c9fc3a05bdecddb9a14b571
/src/main/java/com/learning/design/statemachine/core/StateMachineExecutor.java
b4cece744e52d901570abf4b4c20fb33822942cb
[]
no_license
YoungDriverOfTech/learning-note
15bd8b553d1839a785dd02cc490b9cbeda615480
cb68a83e528ff0b0bc0032ebe8eb3d7432d0408f
refs/heads/master
2023-09-06T06:44:28.930311
2021-11-22T16:07:45
2021-11-22T16:07:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
370
java
package com.learning.design.statemachine.core; public interface StateMachineExecutor<S extends Enum<S>, A extends Enum<A>, E extends Enum<E>, T, C extends StateMachineContext<S,T>> { EventTrigger<E> execute(Action<A> action, final C executionContext); EventTrigger<E> doExecute(Action<A> action, final T payload); boolean initPayload(C executionContext); }
c08dd3d9d2f4ca1920ec684f0789bf3a7871728a
8f9f8da461dd04268b7225f9583708f682d03f8f
/ejbs/refdata/src/main/java/org/sola/cs/services/ejb/refdata/entities/FieldConstraintType.java
1190f890508024defbf1dc2bdf8bc4b842be5e41
[]
no_license
OT-ANGOLA/services
f8057b541eb64ecca8bccc40c99fe9e1f6085408
058d227887a11431b36f1ae110d9539704ccabd4
refs/heads/master
2021-04-12T07:56:03.109624
2017-10-23T11:45:52
2017-10-23T11:45:52
94,512,141
0
0
null
null
null
null
UTF-8
Java
false
false
902
java
package org.sola.cs.services.ejb.refdata.entities; import javax.persistence.Table; import org.sola.services.common.repository.DefaultSorter; import org.sola.services.common.repository.entities.AbstractCodeEntity; @Table(name = "field_constraint_type", schema = "opentenure") @DefaultSorter(sortString="display_value") public class FieldConstraintType extends AbstractCodeEntity { public static final String TYPE_DATETIME = "DATETIME"; public static final String TYPE_DOUBLE_RANGE = "DOUBLE_RANGE"; public static final String TYPE_INTEGER = "INTEGER"; public static final String TYPE_INTEGER_RANGE = "INTEGER_RANGE"; public static final String TYPE_LENGTH = "LENGTH"; public static final String TYPE_NOT_NULL = "NOT_NULL"; public static final String TYPE_OPTION = "OPTION"; public static final String TYPE_REGEXP = "REGEXP"; public FieldConstraintType() { } }
f7d99286067507088ec59b91f845946dd66bb0c7
b24ae0c9b172fa983999d97af44ae15f88f832dc
/src/main/java/com/liraryyi/labRecordProject/settings/domain/VerificationCode.java
3ff0dc27c29526f77bb5fe52897fd175fb4c07fe
[]
no_license
liraryyi/LabRecordProject
8c526d1c0417520e2feeb38e393735ef586998d5
e1ac780c697ccf00a7209bead31b873ed4514a14
refs/heads/master
2023-06-26T13:39:27.132927
2021-07-29T09:45:31
2021-07-29T09:45:31
381,713,392
0
0
null
null
null
null
UTF-8
Java
false
false
291
java
package com.liraryyi.labRecordProject.settings.domain; import lombok.Getter; import lombok.Setter; @Getter @Setter public class VerificationCode { private String id; private String userId; private String code; private String createTime; private String expiredTime; }